jquery - cant reproduce pie chart in jsfiddle -
i reproducing piechart on jsfiddle here :
i have took reference illustration :
http://jsfiddle.net/z3fzv/
this js code :
$(function () { var chart; $(document).ready(function () { highoptions1 = { chart: { plotbackgroundcolor: null, plotborderwidth: null, plotshadow: false, renderto: "container4" type: 'pie' }, title: { text: "test" }, yaxis: { title: { text: '' } }, plotoptions: { pie: { shadow: false, datalabels: { enabled: true, distance: 16, color: '#000000', connectorcolor: '#000000', formatter: function () { var val = 240012; if (val == 0) { homecoming ''; } homecoming "2%'"; } } } }, series: [{ name: 'repairs', data: [] }; highoptions1.series[0].data = []; chart = new highcharts.chart(highoptions1); }); }); somehow not reproducing ...any suggestion helpful
you forgot add together jquery file, missed comma afer renderto
renderto: 'container4', type: 'pie' updated fiddle here http://jsfiddle.net/xzmk4/4/
jquery highcharts pie-chart
No comments:
Post a Comment