I'm using the google visualization api to create a stacked area chart. When a user hovers over a point inside the chart, I want it to show the total added sum of the points at that location, as well as the values of those points.
The second point, I can easily achieve by specifying the option focusTarget: 'category'
. I would like to have, in a similar look-and-feel, an extra line in the tooltip for total
.
I tried achieving this by adding an extra column named Total
which would have a value of 0, but a tooltip equal to the sum. This however adds an empty line to both the legend and the chart itsself, which isn't visually appealing.
This feels to me as something that should be available out of the box, but I can't find any sollutions to this problem.
If anyone knows of a good way to fix this, please answer. Thanks in advance.