score:1
Accepted answer
Here you can find example how to load three files as series: http://www.highcharts.com/stock/demo/compare
So the only difference would be that you are using just one series, and second file will be used for categories data.
In above solution added is some global counter, to render chart after all files are received.
Second solution will be to call second AJAX inside callback for a first one, snippet:
$.getJSON(url1, function(data) {
$.getJSON(url2, function(data2) {
// create chart here
});
});
Edit:
If you have two CSV files, this is what you need to change:
$.get(url1, function(data1) {
$.get(url2, function(data2) {
// parse data1
var parsedData1 = ...
// parse data2
var parsedData2 = ...
$("#container").highcharts({
series: [{
data: parsedData1
}, {
data: parsedData2
}]
});
});
});
Source: stackoverflow.com
Related Query
- load data in highcharts from 2 different csv files
- Load CSV data via Ajax for display in Highcharts
- HighCharts - data from different intervals in one xAxis (hide second xAxis)
- How to Load More Than One CSV Using Highcharts Data Module
- Highcharts not displaying data but drawing chart when reading from CSV file
- Not able to load local csv data into Highcharts
- Highcharts series visibility with csv data source
- Highcharts : using same div to load a chart multiple times with different series data
- How to have multiple highcharts with different series data in vuejs without repeating code
- Highcharts Highstock How to Plot OHLC and Line Charts from One Set of Embedded CSV Data Using Series Map Tools?
- Highcharts to display area range and line chart with data from a CSV file
- Display data from CSV in Highcharts with Angular
- Plot Y axis data based on x axis values from a csv file : Highcharts
- Export data from highcharts in csv file with dates in milliseconds
- Angular 5 - Highcharts cannot load data from a HTML table
- Add time-stamp data from multiple csv files to highchart
- plotting irregular time data from CSV with highcharts
- Trying to load flags with my temperature data from json files
- How to load data from a CSV-file to a Highcharts sankey diagram
- highcharts display data from different months
- highcharts not sure how to load data from external json
- Highcharts load data from server ok, but not updating
- Highcharts data csv load
- Highcharts displays series names but missing data points from json source
- Highcharts chart not displaying data from csv file
- How to load data to highcharts from ajax?
- Highcharts stacked bar data from CSV
- highchart with drilldown where data for main chart and drilled down chart are from different xml files
- How to load data in highcharts from text
- Proper way to remove all series data from a highcharts chart?
More Query from same tag
- The graph of hichart would miss column at left or right when hichart zoomed
- How to get series's id in Highcharts / Highstock
- Print charts in new tab
- Highstock: X Axis with numeric values. Spacing not respected
- HighChart- Plot Stacked Bar Chart on Status for Every Minute
- highcharts - removing decimal places on Y axis with only one point
- Removing "Series 1" in legend and ordering legend
- Spline chart series not getting printed on export as image
- Make only one point draggable on highcharts
- Angular Highchart - Highstock with multiple lines
- Angular 2 - HighCharts implementation: Cannot find name 'HighchartsOptions'
- Highchart - xAxis weekly date can start given day?
- Populating highcharts with php via json_encode
- Scraping data from Highcharts using selenium
- Total value contains part of current value in highcharts
- How to extract data from an interactive chart?
- Highcharts exportchart PDF not showing all categories
- Highcharts overriding X or Y axis key for series data objects
- Highchart/Highstock Data sampling
- Issues with xAxis labels and useHTML #1
- how to convert timestamp in date format in tooltip of highcharts?
- How to display the value instead of percentage in a pie chart using jquery Highcharts
- Set yAxis background color in Highstock
- Highcharts to get Combined Bar and line charts
- Checkbox refuses to be checked or unchecked on highchart
- draw linear-gradient line chart in highchart.js based on another series
- Place text in center of pie chart - Highcharts
- Dynamic Highstock chart when no data at start
- Hide/Show yaxis on series hide/show event
- How to fix xAxis(datetime) scale in Highcharts?