How to break high-frequency bars for extreme values

In tall charts, if there are two series, where the first value of the series is 20.0000 and the second value of the series is 20, then the second series becomes so small that it is almost invisible.

Is it possible to break the first rod so that the second series becomes visible? Below is the desired result ...

desired output

+6
source share
2 answers

There is no way to do this at this time. See "HighCharts User Voice" here .

+3
source

I used mathematical calculation in the past to solve such problems. Here are a few different examples:

VALUES: 220, 110, 55, 5

VALUES: 1100, 220, 110, 55, 5

What I do in the examples above to get a series with a low value, to show more, use the square root of all the values. Data is sent as the square root, rounded to the third decimal place. Then I use the formatter on the yAxis shortcut and tooltip to display the correct values.

Also, in the examples above, I use integers. When formatting the yAxis shortcut and tooltip, I add 1 and force them to an integer to return them to the desired number. This works great for integers. If your data is not an integer, you will have to pass the whole result from the square root. Then, of course, do not force it int.

+3
source

Source: https://habr.com/ru/post/917959/


All Articles