score:0
Accepted answer
this is what I had to do to make it work:
<script src="js/highcharts.js"></script>
<script type="text/javascript">
$(document).ready(function() {
var options = {
chart: {
renderTo: 'container',
type: 'area'
},
xAxis: {
type: 'datetime'
},
series: [{}]
};
$.getJSON('dude.json', function(data) {
options.series[0].data = data;
var chart = new Highcharts.Chart(options);
});
});
</script>
score:2
Your data is not in the right format. Familiarize yourself with how to format data for Highcharts.
These may help:
Notably:
1) your dates must be either a javascript time stamp (epoch time, in milliseconds), or a date.Utc declaration
2) your structure needs to be like:
[[date, value],[date,value],[date,value]]
Source: stackoverflow.com
Related Query
- how to draw charts with json file data in highcharts
- Returning JSON file with cURL to use data in a HighCharts stock chart
- How to have multiple highcharts with different series data in vuejs without repeating code
- How to draw scatter chart with highcharts using timeseries data
- How to retrieve/display title, units, copyright along with JSON data in Highcharts
- Reload chart data via JSON with Highcharts
- How to pass json data to highcharts series?
- Highcharts with JSON data and multiple series
- How to structure Angular with Highcharts and lots of dynamic data
- Highcharts - Global configuration with common code and unique data & Headings
- How to populate a Highcharts axis with string formatted data from a PHP array
- Formatting JSON Data with ColdFusion for HighCharts
- How to handle HighCharts zooming with large data sets
- Highcharts with ajax and json data what am i doing wrong?
- How can I force ticks/grid lines on a Highcharts datetime X axis to arbitrarily line up with data points?
- How to achieve the best possible performance with mutable data and real-time charts in React?
- How to format my json data for stack column chart in HighCharts
- How to draw a bubble map with longitude and latitude using Highcharts in react
- How can i get the json data with the specific between Year?
- How to Build a Column Chart in Highcharts with Data Entered Dynamically Within a CMS
- How to make Highcharts fetch data from external JSON file?
- How to input plot data into highcharts with rails
- How to align Highcharts datetime x-axis with data I pass to it?
- dynamic highcharts with json data
- HighCharts & MVC: How to load whole graph definition and data with JSON?
- How to construct HighCharts data series to match returned Json via ajax call
- How to create data in Json format for highcharts
- How to export multiple charts in HighCharts to one file (png, jpeg, pdf)
- Not able to draw a Pie Chart with external csv file in HighCharts
- Retrieving JSON data for Highcharts with multiple series?
More Query from same tag
- ColdFusion JSON return in a specific format
- Solve highmaps-highcharts conflict when creating map, column and radar charts
- Issues Getting Highcharts Export Server Running Under iisnode
- How do you add to tooltip, a series in HighCharts?
- Highcharts 5 - Radar Charts with circle round the outside
- How to set options?
- How to plot incomplete series with highchart
- I have synchronized charts with synch’d zooming. I would like to zoomout in steps (not just back to 1:1). Does anyone have a working example of this?
- Highcharts - Line chart mark selected Point
- In Highstocks, how do I change the default time/day labels when hovering over graph?
- Integrate highcharts-custom-events with React
- HighCharts : How to add or remove "chart context menu" from chart container?
- Highcharts.js question: is it possible to add blank space from the left and right side of chart that will be visible only during panning?
- Highcharts hover delay and not rendering with multiple series
- Mult Serie Bubble Chart HighCharts
- How to add class name for each columns of highcharts?
- Custom colors in R highcharter barplot
- Highcharts how to align two charts yAxis on the same line
- How to show multiple pie charts using highcharts
- High Chart sunburst chart start data from inner level
- Highcharts: How do I get columns to have specific color with multiple series
- Access another series row's data on Highchart dataLabels
- Javascript,Highcharts : Avoiding parallel function calls
- Highcharts not loading on PHP page
- Draw vertical lines and horizontal bands
- Highcharts: How to disable piechart tooltip in combination chart example
- Highchart Disable stackLabels when overflow
- HTML5/JS Chart with Moving Average
- Displaying Points And Drilldown Data in Highmaps
- Exporting chart with Highchart display a badly formed chart