I'm trying to use highcharts to display data from a CSV file and using the jQuery $.get(...) function to extract data from it.
.get('test.csv', function(csv) {
$('#container').highcharts({
chart: {
type: 'column'
},
data: {
csv: csv
},
title: {
text: 'Fruit Consumption'
},
yAxis: {
title: {
text: 'Units'
}
}
});
});
That's example code that I can't get to work on my website because apparently my 'test.csv' file is only local and can't be accessed by the jQuery method.
I feel like I'm misunderstanding a really important but basic thing here so any help would be appreciated!