<script>
$(function() {
var chart = new Highcharts.Chart({
chart: {
renderTo: 'container',
type: 'funnel',
marginRight: 100
},
title: {
text: 'Sales funnel'
},
plotArea: {
shadow: null,
borderWidth: null,
backgroundColor: null
},
plotOptions: {
series: {
dataLabels: {
enabled: true,
format: '<b>{point.name}</b> ({point.y:,.0f})',
color: 'black',
softConnector: true
},
neckWidth: '30%',
neckHeight: '25%'
//-- Other available options
// height: pixels or percent
// width: pixels or percent
}
},
legend: {
enabled: false
},
series: [{
name: 'Unique users',
data: [
['Website visits', 15654],
['Downloads', 4064],
['Requested price list', 1987],
['Invoice sent', 976],
['Finalized', 846]
]
}]
});
// Add the jQuery UI resizin
var container = $('#container')[0];
$('#resizer').resizable({
// On resize, set the chart size to that of the
// resizer minus padding. If your chart has a lot of data or other
// content, the redrawing might be slow. In that case, we recommend
// that you use the 'stop' event instead of 'resize'.
resize: function() {
chart.setSize(
this.offsetWidth - 20,
this.offsetHeight - 20,
false
);
}
});
});
</script>
하이 차트를 사용하여 샘플 깔때기 형 차트를 만들었으므로 하이 차트 내보내기 기능을 사용하고 싶지 않습니다. div id를 사용하여 아래 차트의 svg를 가져와야합니다.
아래 코드는이 div의 차트를 렌더링하는 차트의 div 부분입니다. div id를 사용하여 하이 차트 svg를 얻는 방법은 무엇입니까?
<div id="container" style="height: 400px;">
</div>
using div id "container" i need to get svg of the chart.
을 누군가가, 당신은 아마 Highcharts가 getSVG 기능이 없기 때문에 오류가있어 놓치고받을 경우 [ 수출 모듈] (http://www.highcharts.com/docs/export-module/export-module-overview). –