I have 2 Charts (using Highcharts) with different data on one page. The data to visualize comes from CSV files. My Code works so far, and the Charts show the CVS content visualized. But: I need to reload the CSV every 5 Minutes, cause new data gets written in these CSV files every 5 Minutes. How do I perform that reload in the best way? My code to generate the 2 Charts:
$.get('chart_1.csv', function(csv) {
$('#chart_1').highcharts({
chart: {
type: 'column'
},
data: {
csv: csv
}
});
});
$.get('chart_2.csv', function(csv) {
$('#chart_2').highcharts({
chart: {
type: 'column'
},
data: {
csv: csv
}
});
});