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 Articles
- 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
- How do you add to tooltip, a series in HighCharts?
- Prevent column text overlapping
- Highcharts : Set an y offset to the series
- How to fill the Area between two series with multiples yAxis in HighChart?
- Php and MySQL with Highchart
- Display percentage on tooltip highchart Angular 2
- Coloring treemap by parent node in highcharts styled mode
- Bootstrap+HighCharts.js Responsive Image Position in Donut Chart
- how to control orders of charts in highcharts combination charts?
- Group specific points to categories in Highchart
- Json is syntax-valid, but the HighChart won't display series correctly
- is it possible to add a legend for bubble size in high charts?
- How can I contain a label on a Highcharts area chart to the series' area
- Highcharts ng heatmap draw line instead of boxes
- Clickable Data Labels in Highcharts-ng?
- Embedding the view of a url inside the header of another view
- Highcharts API legend doesnt appear
- Highcharts: Remove left and right padding in column chart
- Highcharts area with data labels on others data labels
- HighCharts - problems with tickInterval and tickAmount