score:46
You are right, timestamps in Javascript are milliseconds so you should multiply everything by 1000.
For the other problem it comes from the fact that your data is ordered backwards. Apparently HighCharts is messing up when the series are not properly ordered.
Here's the correction for your code: http://jsfiddle.net/cvedovini/RjPRd/2/
score:1
An easy way to work with timestamp (milliseconds) in Highcharts is use the formatter. So first receive your time values as unix timestamp and then set one of the features below in the chart:
Using in xAxis labels:
xAxis:[{
labels:{
formatter:function(){
return Highcharts.dateFormat('%Y %M %d',this.value);
}
}
}]
Using in tooltip:
tooltip: {
readerFormat: {
formatter: function(){
return Highcharts.dateFormat('%Y %M %d',this.value);
}
},
pointFormat: '{point.y} ms',
shared: true
},
Source: stackoverflow.com
Related Query
- Handling unix timestamp with highcharts
- Highcharts - Global configuration with common code and unique data & Headings
- Data with timestamp group to month(like Jan, Feb, March) and showing as total count for month in Highcharts
- passing formatting JavaScript code to HighCharts with JSON
- Highcharts series visibility with csv data source
- How to have multiple highcharts with different series data in vuejs without repeating code
- Why code of Horizonal line(y-axis) on a single in Highcharts get applied to all other charts integrated with Webdatarocks
- How to replace x-axes with our own timestamp data from API in Highcharts using highstocks
- Highcharts cloud issue with data source when duplicating chart
- Getting numbers on Y-axis to show up as percentages with code from a Highcharts code generator tool?
- Data not showing with the Timestamp Values : Highcharts
- HIGHCHARTS - Given a series with UNIX stamps and values pairs for the data, how do I show only the date for the first and last point on xAxis?
- Highcharts code with same set of code/data works in PHP but does not work in JSfiddle
- Reload chart data via JSON with Highcharts
- Highcharts - how to have a chart with dynamic height?
- Resize height with Highcharts
- Styling bar colors in Highcharts with a gradient issue
- How to use highcharts with angular 5?
- Loading Highcharts with require.js
- dealing with highcharts bar chart with really long category names
- Displaying hours and minutes on x-axis with Highcharts
- Highcharts - Keep Zero Centered on Y-Axis with Negative Values
- Resize data points with highcharts
- How to include highcharts with bower?
- Highcharts doesn't display series with lots of data points
- HighCharts - two Y-axis, one with max value
- how to import highcharts with webpack and babel
- Type 'number[]' has no properties in common with type 'XrangePointOptionsObject' in Angular8 using Highcharts
- How to prevent highcharts from shortening labels with ellipsis
- Highcharts data series issue with ajax/json and PHP
More Query from same tag
- Concatenate data variables in Highchart Series
- Highcharts not rendering : React+Typescript+Highcharts
- highcharts donut chart center text overlaps with tooltip
- How to position a custom label in highcharts
- Highcharts and durandal
- Exporting highchart to server w/ phantomjs & highcharts-convert
- legend size in Highcharts under ruby on rails
- How to create monthly candlestick chart using daily data?
- Assigning series data to highchart using Java ArrayList
- Make dynamic Y-axis max value and tick interval of highchart using php
- Highcharts graph default series fillColor overrides the state fillColors (jsfiddle included)
- How do I add an event listener to a Highcharts object *AFTER* I've created it
- How do I set Highcharts categories dynamically?
- Change Highcharts tooltip formatter from chart Object , after chart is rendered
- High charts click on one data point the other data points should disable
- iPhone/iPad touch events Javascript LineChart
- dynamically hide/show button in highcharts
- How to return Highcharts in Apollo Query component?
- Google Analytics audience chart with Highcharts
- Highcharts stacked column is cut off
- Highchart - Custom Images for Labels by using html
- How to add dots to Highcharts legend and bars?
- loop list of Javascript Objects to render Highcharts
- jsPDF not rendering highcharts image on Edge browser
- Remove column spacing between bars highchart
- Highcharts - How to split up multiple charts in Rails 3
- Get all series values when click on single line chart
- Highstock From/To Invalid Date Issue
- Why doesn't this simple Highcarts JS Fiddle example reset the XAxis with SetCategories call?
- Highcharts json php multiple series