GSS-Cogs / chart-builder

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
https://chart-builder-no4vxskx7a-nw.a.run.app
2 stars 0 forks source link

Issue 841/tooltip toggle bug #191

Closed StRhys closed 1 year ago

StRhys commented 1 year ago

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. image

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. image