Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HighCharts - compare series with values instead of percentage

Tags:

highcharts

Just a simple answer needed, is there a simple way to compare a series on values rather than percentages? Something like "compare : 'values'" rather than "compare : 'percent'" or do I manually have to add data points for given time intervals? Thanks!

like image 911
Kevin Farst Avatar asked Dec 05 '25 12:12

Kevin Farst


1 Answers

Yes, but the option is called value

From the plotOptions.series.compare documentation:

compare: String
Compare the values of the series against the first value in the visible range. The y axis will show percentage or absolute change depending on whether compare is set to "percent" or "value". When this is applied to multiple series, it allows comparing the development of the series against eachother. Defaults to undefined.

The demos from the documentation: Setting compare to percent, value.

like image 129
nemesv Avatar answered Dec 09 '25 00:12

nemesv



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!