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
- How To Load CSV File Data On HighChart?
- new link in print menu highcharts
- How to create a bubble chart
- How to render an array of objects 'webdata' with x and y values in charts in Highcharts?
- Highcharts, type: 'mapbubble' causes an error 17
- Formatting XAxis labels when rendering chart on server using phantomjs and JSON
- Arrows not rotating while viewing in Drupal
- HIghcharts how to change values and ranges in the Y-axis
- Hidden duplicate legends in Charts
- Alignment issue in High chart's bar chart
- Dynamically add a Highchart point while preserve categories
- Unable to use solid-gauge highchart in backboneJS from ruby on rails
- Highcharts clickhandler and accessing context
- How do I initialize HighChart series values with AJAX?
- display a linear highchart with data from database
- Highstock stacked bar chart with slider overlayed on the graph
- How to set Highcharts object configuration globaly with vue-highcharts?
- Animation end callback after adding points
- I need to remove Y-axis labels on highcharts while keeping the data intact
- Highchart download image is changing aspect ratio
- Highchart: Center text in plot option in column chart
- no idea which line of code is using getPreventDefault()
- Highcharts: Update several series at once, for smoother animation
- highcharts datetime axis, how to comput correct timestamp?
- Highcharts. How to set interval for PlotBand?
- max Y Axis value in a Highchart
- Highchart multiple bar charts in a single webpage
- HighCharts dynamically resize renderer label or element
- Unable to Export HighCharts from IE
- Highcharts returning error 14