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:

enter image description here

this bug in version of highcharts being used. using v4.0.1, upgrading v4.2.5 fixed it.


Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -