score:1
Accepted answer
In fact, you want to get a total time instead of DateTime. In this case, you'll need to create your own label formatter that will convert milliseconds to a number of hours, minutes and seconds.
Example code:
dataLabels: {
enabled: true,
formatter: function() {
let s, m, h;
s = this.y / 1000;
h = parseInt(s / 3600);
s = s % 3600;
m = parseInt(s / 60);
s = (s % 60).toFixed(0);
let number = (h + ":" + m + ":" + s);
return number;
}
}
API Reference: https://api.highcharts.com/highcharts/series.column.dataLabels.formatter
Source: stackoverflow.com
Related Query
- Highcharts: yAxis duration in hours resets every 24h
- Plotting seconds, minutes and hours on the yAxis with Highcharts
- Decimals on yAxis are not being displayed, even if that same code works on highcharts jsfiddle
- How to set Highcharts chart maximum yAxis value
- Highcharts - show every other x-axis category
- Displaying hours and minutes on x-axis with Highcharts
- Highcharts yAxis max not working
- Highcharts - set maximum range for yAxis but keep axis dynamic within that range
- Highcharts dynamically add/change yAxis plotLines
- Custom Highcharts Context Menu Button Appearing in Every Chart on Page
- Highcharts - how to properly update series[0].data and yAxis title of a VUMeter?
- Remove space between yAxis and data in highcharts
- Hide first yAxis label in Highcharts
- Highcharts - yAxis logarithmic scale and allowDecimals set to false not seeming to have any effect
- Highcharts yaxis labels Format
- Show label only every x number of steps in highcharts
- display content on highcharts Xaxis and Yaxis title in form of subscript and superscript
- Highcharts yaxis higher values displayed lower
- Decimal values for yAxis categories in Highcharts
- Highcharts - show every month on datetime x-axis when the parent container is small
- Why are the labels for my opposite yaxis in Highcharts not showing up?
- How can I force highcharts to show every x-axis label regardless of spacing constraints?
- Highcharts yAxis text rotation issue in IE8
- Sort the series data for every X-Axis in Highcharts
- Highcharts yAxis is not scaling to fill available height
- Using PhantomJS to create HighCharts grahps server side for use in PDF creation (PHP) - results in exit code 11 from PHPs exec();
- Highcharts - Global configuration with common code and unique data & Headings
- Highcharts yAxis title click
- Highcharts - multiple yAxis each with its own tooltip
- Highcharts - Remove first marker from Area chart in every series
More Query from same tag
- Highcharts xaxis datetime issue
- HighCharts and idTabs - Charts width not setting properly
- Set stacking column graph colors from the bottom up
- legendItemClick not getting triggred after changing chart type
- How to get index of a point in Highcharts?
- if I add an update in drill up events it causes the labels to disappear on the highchart
- Is there a style to apply that allows the legend to style each series as a button?
- How to position the Highcharts.StockChart's rangeSelector zoom on the right?
- Make datalabels formatter for pie without slice
- Add clickable link to tooltip in Highcharts Scatter Plot
- Highcharts xrange-series throws `x is not a function`
- Highcharts having problems with Ajax Request
- highchart - scatter : set decimals of x-axis and y-axis
- How do I change the style of the frame lines in a radar(polar) chart created with highcharts?
- Changing baseSeries dynamicilly
- Labels on the Y axis and grids
- Add a max width to legend in Highcharts
- It is possible to make the preview/ slider/ navigator in Highcharts to match the graph?
- How to combine Bar chart and data as table in High Charts
- Adding flags dynamically giving problems , HighCharts
- Highcharts: Change hover style in line chart when hovering over legend
- Label truncation while using Grouped category plugin in highcharts
- Highcharts Dynamic Updated Highstock Charts doesn't display along with Bar Chart
- How to change color of donut chart in highchart?
- Highstock - SMA (Simple moving average) dataGrouping not working
- Spline chart does not overlap with arearange chart (Highcharts framework)
- Trying to iterate an array through mutliple highcharts
- Loading external json file in highchart
- Execute a function after rendering of Graph completes
- Highcharts Not displaying function's data values