The Chart Builder is a proof-of-concept app to understand the feasibility of using a CSV file (or SPARQL query) to generate and customise a chart or data visualisation
This ticket is to address multiple issues with the tooltip on charts.
For testing I used this csv. With PFA, value and sex in the data columns.
First being a rounding issue where anything over 1k would be rounded down and only show a couple digits.
Narrowed the issue down to just stacked bar charts and how the float for total was being parsed.
Second was when setting series tooltip to 'none' the tooltip would still appear. This was due to 'hovertemplate' overriding 'hoverinfo' , 'hovertemplate' is not only conditionally set.
Third was 'Hoverinfo unit' despite being set not appearing on the tooltip popup. 'hoverInfoUnit' is now pulled into the hover template.
This ticket is to address multiple issues with the tooltip on charts. For testing I used this csv. With PFA, value and sex in the data columns.
First being a rounding issue where anything over 1k would be rounded down and only show a couple digits. Narrowed the issue down to just stacked bar charts and how the float for total was being parsed.
Second was when setting series tooltip to 'none' the tooltip would still appear. This was due to 'hovertemplate' overriding 'hoverinfo' , 'hovertemplate' is not only conditionally set.
Third was 'Hoverinfo unit' despite being set not appearing on the tooltip popup. 'hoverInfoUnit' is now pulled into the hover template.