I'm plotting a graph with chartjs where the x-axis represents time and the y-axis the corresponding data.
Now i got data for today, last week, last month and last year.
var myLineChart = new Chart(ctx).Line(data, options); var data = { labels: ["last year", "last month", "last week", "today"], datasets: [ { label: "My First dataset", data: [80, 81, 56, 40] } ] };
When i plot the graph, the distance between every point is the same. But this is not correct because the time intervals are not the same.
The distance between 'last year' and 'last month' should be bigger than the distance between 'last week' and 'last month'.
Anyone an idea how i can achieve a this with chartjs, when i look at the documentation i don't see any options for this.