score:1
If you added the the "type" to the xAxis definition then the x values will be interpreted as dates and times rather than decimal values
xAxis: {
type : "datetime", //add this line
gridLineWidth: 1,
labels: {
rotation: -45,
align: 'right',
style: {
fontSize: '13px',
fontFamily: 'Verdana, sans-serif'
}
}
},
you may have to fiddle with the start times and intervals to get HighChart to correctly interpret your x-values. see this demo on the highchart website as an example. http://jsfiddle.net/gh/get/jquery/1.9.1/highslide-software/highcharts.com/tree/master/samples/highcharts/demo/line-time-series/
score:0
You can use dateFormat to replace time in miliseconds with date.
formatter:function(){
return Highcharts.dateFormat('%d / %m / %Y',this.value);
}
http://api.highcharts.com/highcharts#Highcharts.dateFormat()
score:1
The reason is that you are not actually creating a Stock chart. Your code looks like:
var chart = new Highcharts.Chart(options);
If you want it to be a Stock chart do:
var chart = new Highcharts.StockChart(options);
A Chart by default is a category chart. StockChart is time-based.
Source: stackoverflow.com
Related Query
- Dates instead of values on Highchart labels in graph with multiple axis
- Highchart axis max with multiple axes
- Highcharts - Multiple Axis Graph not displaying labels
- Problem with multiple labels in Highchart
- how to plot multiple time series in the same graph with customized x axis
- My Highcharts graph with multiple axis ignores the max value I set for the first yaxis
- Highchart Line chart – data series with multiple axis - 2nd series placed in the middle of X axis
- HighChart is not working with multiple axis
- How to plot multiple lines in a single graph using HighChart with JSON
- use highchart as a template with different title and different values multiple times
- Show multiple Y axis stacked one upon the Other in Highchart Line type graph
- Highchart crashing with multiple Y axis
- Highcharts multiple axis with custom labels
- Highchart customized x axis values with Group By Year
- highchart axis position with negative values
- Highchart show/hide y axis with multiple associated series
- how to hide highchart x - axis data values
- How to display highchart y axis with constistant data
- Highcharts - best way to handle and display zero (or negative) values in a line chart series with logarithmic Y axis
- Highcharts - with datetime axis labels overlap
- Highcharts - Issue with negative values when displaying multiple axes
- last label in x axis with datetime format not coming in highchart
- highcharts zero values results in graph half way instead at the bottom
- How to align HTML span at center of highchart donut graph with responsive design?
- How to place labels on opposite Y axis in Highchart without a second series
- Highcharts not displaying series data for graph with multiple Y-axes
- Highchart (basic line chart) which can have multiple values vs x axis?
- HighCharts - compare series with values instead of percentage
- Showing multiple data with same x and y in highchart
- HighCharts scatter plot with Datetime on X Axis not plotting values correctly
More Query from same tag
- Implementing Prototype-style class structure with jQuery
- DotNet.Highcharts and proper JSON
- HighCharts: One Legend, Two Charts
- What's the difference between 'legend' and 'showInLegend' in highcharts
- Add a bar independent of categories ("reference" bar)
- HIghcharts how to change values and ranges in the Y-axis
- how to change the color of column in chart ?
- Label truncation while using Grouped category plugin in highcharts
- HighCharts: Displaying 3 vu-meters
- Highcharts and JSON parameters
- Highcharts multiple x axes is hidden on zoom
- Highchart GMT and one hour offset
- Print Highcharts in pdf format
- How to show Legend Color between two text in Highchart?
- Highcharts polygon with no fill
- Trying to update high chart data
- How To disable "shadow-gradient" of format?
- Number Formatting at Highcharts Chart Values?
- Highcharts - Display Marker Icon on Single Value
- Multiple histograms in highcharts causes an issue with bin spacing on the second histogram?
- rCharts Highcharts Add extra data to tooltip
- Change data periodicity in Highcharts time series?
- Highchart tooltip hover not working properly
- Highcharts - how can I change font size?
- Highcharts Waterfall graph using a column graph
- Svg and Highcharts?
- How to make a HighCharts drilldown column/bar chart that does not hide the non-drilldown categories
- Angular4 with highcharts can't use world.js
- How to remove "Values" and "series" from highcharts?
- Can we have multiple callout in timeline chart for single point?