score:0
highcharts accepts datetime type only as timestamp in miliseconds so you have to parse it to the valid format to make a chart work.
data: [
[new date("2016-10-24").gettime(), 22.0, 25.0],
[new date("2016-10-25").gettime(), 23.0, 25.0],
[new date("2016-10-26").gettime(), 24.0, 25.0]
]
example: http://jsfiddle.net/n5dh4607/
score:0
you can use php's strtotime
function, which gives you epoch time in seconds, and multiply the result by 1,000 to get the milliseconds that are required.
reference:
Source: stackoverflow.com
Related Query
- highcharts area range date format
- json date format to Highcharts date format
- Highcharts - change background color along specific date range
- Highcharts - Highlight / Shade date range
- Highcharts chart going blank on zoomType: 'x' area range zoom?
- Highcharts tooltip date format when using pointFormat
- HighCharts Date format
- Highcharts x axis date full range even if there is not enough data
- Highcharts Area Range Plot in rCharts
- Adding date range filter to Highcharts chart
- Highcharts change the line color if its out of the area range
- grouping date in Highcharts if the date range is too big
- Highcharts - Range Selector - Date fields not visible
- Highcharts area range series change plotting area dynamically
- Format highcharts date tooltip to display timezone
- HighCharts range area plot not working when plot is inverted
- Highcharts of type area range not displaying markers like circles
- How to add exporting date and time as user format in Highcharts exporter?
- Date/Time format relative to date range
- How to tell Highcharts to set date on the x axis, and use a range of time (like 1 day)
- Highcharts Single Line series JSON date data format
- Highcharts - format date for x-axis as well as autoscale (data from mysql)
- Stock Highcharts date format
- Highcharts events issue with plotbands in Date Range Line Series
- highcharts x axis date variable range
- Format date string into highcharts
- How do i show Last seven days of a week from current date in area spline categories highcharts
- yii highcharts how to set date format in x-axis
- Format used for date in Highcharts - Line with markers chart type
- Tooltip in Highcharts doesn't show the right format for Date
More Query from same tag
- Highcharts heatmap points with transparency depending on value
- High charts displays data only if we press F12 (developer tool) in chrome browser
- Highcharts stacked column chart with with irregular time intervals possible?
- Highcharts - top justify instead of center entire chart
- maxPadding doesn't work for Highstock
- Format data for highcharts solid gauge graph
- rCharts::rPlot on click event
- Applying 'categories' to Y-Axis causes a gap between column start and X Axis in Highcharts?
- load data in highcharts from 2 different csv files
- Which chart type should display following chart? gauge or column?
- How to pass this three inputs (lineEdit, startDate, endDate) to my function (graphdata)
- Dyanamic highchart with csv/txt input file
- _colorIndex and _symbolIndex when creating object
- Change chart type with drilldown series
- How to set R Highcharter stock x-axis dates
- To apply different font styles to certain words in a Highcharts wordcloud?
- JavaScript/jQuery encapsulated variables
- How to convert xts object in JSON in R?
- Highcharts 3.0 beta threshold documentation?
- Highcharts: Draw line from data markers to axis?
- Exporting highchart to server w/ phantomjs & highcharts-convert
- HighCharts: SVG outside plot area
- onclick popout highchart piechart
- Highcharts Single Line series JSON date data format
- Highcharts - Change line style in line gaps (null)
- Highcharts Custom Funnel
- Highcharts combine chart types
- Displaying a minimalist Highcharts stockchart
- dygraph equivalent for highcharts area range charts
- Highcharts allowDecimals condition