phantomjs - Highcharts convert: not showing pie chart data labels -
i'm using phantomjs highcharts , highcharts convert render charts on server. i'm attempting render pie chart data labels enabled. configuration json works fine when run in browser, same json phantomjs omits data labels. else rendered correct.
here json:
{ chart: { height:500, type: 'pie', }, legend: { margin: 30 }, plotoptions: { pie: { showinlegend: true, datalabels: { enabled: true, format: '<b>{point.name}</b>: {point.y} ({point.percentage:.1f}%)', }, } }, series: [{ name: 'count', data: [ ['a', 12 ] , ['b', 500 ] , ['c', 50 ] ] }] }
here's link jsfiddle same json, works correctly:
https://jsfiddle.net/j2nb72l7/
here image output phantomjs:
this bug in version of highcharts being used. using v4.0.1, upgrading v4.2.5 fixed it.
Comments
Post a Comment