0
votes

We are using highcharts as our charting library. It's great and exporting works well in all scenarios except one. We have a donut chart with two levels. When it is rendered in the browser it shows up fine:

in browser

If you now export this chart using the default highcharts service it shows a bit like this: exported image

Anyone know why this is happening and if there is any way we can fix this?

2

2 Answers

0
votes

I would recommend creating a fiddle of your problem, and emailing HighCharts support about it (or link the fiddle here), they are very helpful and usually respond quickly.

Your problem does however seem to be related to your code as I also generate and export donut charts with no problems

0
votes

My mistake in the configuration was when I was dynamically updating the colour:

chart.series[0].data[s].update({color: "#FFFFFF")}, false);

This didn't just mean I was updating the color but also the whole point. This meant that by running the above I was running y to nothing! Although the chart displayed ok the data sent to the exporting service was with unset values for the slices.. hence the empty slices in the chart. to fix it I had to do something like:

chart.series[0].data[s].update({
              color: "#FFFFFF",
              y: chart.series[0].data[s].y,
              name: chart.series[0].data[s].name,
)}, false);