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
- Divergent chart possible with Highcharts?
- Update Line Chart (High Charts) after applying filter
- Highcharts Drilldown charts CodeIgniter
- dynamically disable animation highcharts javascript
- Highmaps get country name on click when country has no data
- How to Multiply two arrays and dynamically plot into HighCharts?
- Highcharts cannot read property 'series' of undefined
- Highcharts Bar Chart - Labels Not Appearing in Bar
- scrollablePlotArea and drilldown button position
- How to add apostrophe in front of an integer on x-axis label in Highcharts?
- Highcharts connected mappoint with "direction"
- How to remove sliced line from pie high chart if there there is only one object in data
- is it possible to add verical plot line and show the intersection with the series?
- Synchronized charts example with Highstock crashes with "Cannot read property 'category' of undefined"
- Unable to do any other action than "alert" when triggering the click event on Highcharts (React Native)
- How can I extend the lines of this Highchart series to the edges of my chart area?
- Chart not exporting to XLS File - Highcharts
- Highcharts legend data interactivity issues
- How to remove decimal time at tooltip on React Highchart
- Highstock Shared Tooltip This Index
- Syntax to create a heat map with Highcharts
- Sql query to populate 0's for missing data
- R Shiny Highcharter - Add series without full reload
- get plotBand on Highcharts to span first column
- High Charts: Change each individual plot/marker size, is it possible?
- HighCharts.js - Trying to import highstock
- Convert CSV webservice into multiple year Highcharts line graph
- JS Charts Library
- Highcharts - How to sort data by name?
- DotnetHighCharts does not show negative values?