I have a chart that displays time data on both the X and Y axes. While I am able to convert my millisecond data into HH:MM:SS
for the X axis, I'm struggling to get the Y axis tooltip to also show in this format. The API suggests it's achievable, but I haven't been successful in replicating it.
tooltipValueFormat: String
Specifically for parallel coordinates. This format will be used for
point.y
and will appear intooltip.pointFormat
aspoint.formattedValue
. If not specified, other options will be applied in the following order:
- The format set in
yAxis.labels
will be used if available- If the yAxis is a category, the category name will be displayed
- If the yAxis is a datetime type, the value will use the same format as the yAxis labels
https://api.highcharts.com/highstock/yAxis.tooltipValueFormat
Take a look at my example in this fiddle: https://jsfiddle.net/gramlich/jpnsujo8/1/
To add more complexity, I am implementing this within a Django View and passing the chart options via JSON to limit the need for JavaScript. If possible, I prefer a solution using only objects from the Highcharts API without having to create my own Formatter function in JS.
Thank you for any assistance!