I need to highlight some dates on a chart and I found viewtopic.php?t=40772&__cf_chl_jschl_tk ... WjcnBszQgR topic but I'm using CSV file as a data source and I don't know how to do it. Could you help me please?
I'm getting data this way:
Code: Select all
Highcharts.chart({
data: {
csvURL: "{% static 'csv/pricing.csv' %}",
enablePolling: false
},
...
series: [
{
name: 'Price',
type: 'line',
turboThreshold: 0,
color: '#072fcc',
dataLabels: {},
marker: {
enabled: false
},
...
}
],
xAxis: {
type: 'datetime',
dateTimeLabelFormats: {
day: '%e %b',
week: '%e %b',
month: '%b %y',
year: '%Y'
},
},
Code: Select all
2018-07-02,100.3000
2018-07-03,100.3000
2018-07-04,90.0000
2018-07-05,90.0000
2018-07-06,90.0000