I am using the goi visualization api to create a chart by area. When the user hovers over a point inside the diagram, I want it to show the total added sum of points in this place, as well as the values โโof these points.
The second point that I can easily reach by specifying the focusTarget: 'category'
option. I would like to have an extra line in the appearance in the tooltip for total
.
I tried to achieve this by adding an extra column called total
, which will have a value of 0, but the tooltip is equal to the sum. This, however, adds an empty line to both the legend and the diagram itself, which is not visually appealing.
It seems to me something that should be available out of the box, but I can not find a solution to this problem.
If anyone knows of a good way to fix this, answer. Thanks in advance.
source share