1👍
If you used an array of date time x and y for data points in the series, you need to use Date.UTC() to convert the time to universal time first. And the type
property isn’t inside the title
property.
So try this
xAxis: {
title: {
text: 'Year',
}
type: 'datetime'
},
yAxis: {
title: {
text: 'Rating'
}
},
series: [{
data: [
{% for item in graph_data %}
{
name: '{{item}}',
x: Date.UTC({{item.year}}, month, date),
y: {{item.rating}}
},
{% endfor %}
]
}]
Fiddle: http://jsfiddle.net/6abdq/1/
- [Answer]-GeoDjango or just plain Django?
- [Answer]-Thumbnails not generated because of PIL or Pillow?
- [Answer]-Unable to determine cause of HTTP 500 in apache with mod_wsgi
Source:stackexchange.com