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
- Highchart min/max values doesn't set and chart not plotted properly
- Highcharts tooltip not showing on chrome
- Implementing highcharts for Coin currency market
- Highcharts - change border of a single data point in series
- How to change Highcharts 3D Pie Chart Label and Tooltip Style?
- How to Draw graph in ASP.NET MVC 4 using High-Charts?
- How can I load a function when loading a highchart?
- I want delete the values from the series so that the graph is not cluttered how to do that
- Align titles for multiple axis in Highstock
- highcharts, possible bug setting tooltip formatter and html?
- Export Highcharts DataTable to PDF - Angular
- Radial (or Circular) Bar Chart in r highcharter package doesn't work as I want
- HighCharts Bar graph: Showing Bar Value when hovering the mouse
- Highcharts Click Function Not Being Called?
- Fullscreen panel bootstrap with highcharts (responsive)
- How to create vertical merged stacked bar in highchart
- HighCharts : Is it possible to customize the colors of individual series?
- Heatmap series name doesnt show up
- Highcharts/Highstock Scrollbar Issue
- HighStock datagrouping approximation functions
- Modifying value returned from a method in Scala (Highcharts lib)
- How to calculate the height of bar chart
- Fetching all the Project Name for a Project Cumulative Flow Chart in Rally
- HighCharts - setTitle() ignored when exporting chart
- how to select a button in highcharts-range selector row and click
- updating the array that is being passed to highcharts in meteor app
- Highcharts Custom Funnel
- set minimum and maximum values for axis' data in highchart
- disabled zooming when scrolling the mouse in the tooltip of scatter plot highcharts
- Highcharts X-Axis value not completely displayed