score:0

You can use label formatter and return value, inluding dateFormat

score: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/


Related Query

More Query from same tag