score:1
This is caused by data-grouping feature. You can disable it or define a custom format for each time span.
series: [{
data: data,
dataGrouping: {
enabled: false,
...
}
}]
Live demo: https://jsfiddle.net/BlackLabel/yor987mt/
Docs: https://www.highcharts.com/docs/stock/data-grouping
API Reference: https://api.highcharts.com/highstock/series.line.dataGrouping.dateTimeLabelFormats
score:0
It seems there is a workaround using fooltip.formatter
which allows to define a tooltip for both the series and the dates using a callback function which returns an array of the form [date, y1, y2, ...]
.
tooltip: {
formatter: _ => ['test custom date', 'custom y']
}
In my case, I now reuse the default formatter for the y value but replace the logic to format the dates
tooltip: {
formatter: function(tooltip) {
let tt = tooltip.defaultFormatter.call(this, tooltip);
tt[0] = 'test custom date';
return tt;
}
}
Live example: https://jsfiddle.net/GregorDeCillia/5hj6r1ft/58/
Source: stackoverflow.com
Related Query
- Highstock: custom tooltip ignored after zooming out
- Strange character in the Highstock source code
- Highstock - custom tooltip data not being displayed for larger dataset
- How to move a HighStock cloned tooltip while/after zooming or resizing
- Automatically zooming in on highcharts after loading
- Change Highcharts tooltip formatter from chart Object , after chart is rendered
- Adding thousands separator for custom formatted highcharts tooltip
- Tooltip on custom button in Highcharts
- How to position RangeSelector / zoom buttons at custom co-ordinates in Highstock
- (jQuery Highchart) Is there any way to put extra custom data inside Tooltip Box?
- HighStock chart.rangeSelector after loading
- Highstock setExtremes with a custom range selector button
- Highcharts custom renderer chart and tooltip
- Adding a custom tooltip to a bubble chart / highchart
- Highstock tooltip formatter if using split : true
- Highcharts not showing tooltip after update from null
- How to auto-format dates in custom tooltip formatter?
- Highstock v3.0 how to disable tooltip timeout/delay
- Highcharts - Tooltip and series name are out of their boxes in chrome
- Getting the complete XML source out of an XML DOM object
- Highstock disable tooltip for one series
- Highcharts - how to set custom content in point tooltip (popup) on 3D scatter chart or how to customize point tooltip information?
- Highstock default tooltip format symbol
- highstock -- navigator time range does not update after adding/removing series
- Custom YTD Option in HighStock Range Selector
- Highstock tooltip Formatter not able to display extra data
- Highcharts visualizes chart data incorrectly after zooming or using the navigator
- highcharts show additional custom data in tooltip
- Highchart / Highstock stack column chart show one series's tooltip at a time
- Highcharts 5 tooltip colour with custom css class
More Query from same tag
- Change Font dateTimeLabel Highstock
- Highcharts Server side generation not working on windows 2008 server
- tooltip error only when highstock's point num > 10, why?
- Why does highchart add a padding for a certain bar chart?
- Pass Chart Mouse events to formatted labels
- how do you display only the latest poll data in highcharts
- Jquery was not found on this server. Wordpress
- How to access React hook state in Highcharts event listener
- Highcharts :Column chart with percentage grouping on X-Axis
- Highcharts won't display in Chrome App
- Decimals on yAxis are not being displayed, even if that same code works on highcharts jsfiddle
- Passing a JavaScript function from JSON encoded PHP
- How to add export functionality to custom button in React highcharts?
- yAxis tickinterval in highcharts is not working as per the value
- Enable all range selector's options in stock highcharts
- Highcharts conditionally disable marker on hover
- HighStocks/HighCharts scrollbar not displaying with large datasets causing xAxis labels to disappear and making bars not show
- is it possible to create Highchart polar chart which has x-axis at center rather than at circumference
- legendItemClick not getting triggred after changing chart type
- Highstock: set xAxis as not "datetime"
- highcharts-ng ajax data load
- How to render x-axis labels in Highcharts without the decimal points?
- Highstocks dynamic graph - timeslider graph pattern issue
- No graph displayed using Highcharts
- Highcharts standalone framework with highcharts-ng, angular. Animation issue
- How to apply color stops in highcharter?
- How to get selected date from highstock?
- Cannot display multiple Highcharts on a single page
- Highcharts series data array
- display pie chart using highcharts api and mysql