govau / datavizkit

A fully featured data visualisation toolset built on top of Highcharts and React. Guide at http://datavizkit.surge.sh/.
MIT License
10 stars 2 forks source link

Feature/nice tooltips #155

Closed micapam closed 7 years ago

micapam commented 7 years ago

Use Nick's SVGs for the tooltips rather than text symbols. Result is better, I feel like the code could be DRY'd up but not quite sure how at this point...

n.b. I had to change from separate point/header/footer formats to the all-in-one formatter function because since I'd changed the X Axis categories there was bug in the header of the tooltip, and fixing it wasn't possible because headerFormat string only takes very basic substitutions and it is now (necessarily) a bit complex to pull out the name of the x-axis category.