bwvoss
bwvoss

Reputation: 110

How to add negative area or background for a specific bar or pie chart in highcharts?

Using highcharts, how would I put a default grey bar under my column charts, for example, like this?

And how would I do something similar for a pie chart (if my data takes up 30% of the chart, show the remaining 70% as light grey or something similar to denote unused space of the pie chart)

Upvotes: 0

Views: 485

Answers (1)

wergeld
wergeld

Reputation: 14442

For the Pie chart there has been a bit of a back and forth in the highcharts forums. What I would do is get all of your data you need to plot and find out what percentage of the total all of that data is. Then, with the remaining percentage create another data point and set its color to grey. But you really have to consider what is the total percentage means - without further detail I cannot begin to guess.

As for the first question about "default grey bar under my column charts" it is not clear from that link what you mean. I do not really see what you mean with the charts I have looked at.

Upvotes: 2

Related Questions