mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-07 12:49:07 +02:00
6f7e09540c
Changed var to const/let in the docs
490 B
490 B
Time Series Axis
The time series scale extends from the time scale and supports all the same options. However, for the time series scale, each data point is spread equidistant.
Example
const chart = new Chart(ctx, {
type: 'line',
data: data,
options: {
scales: {
x: {
type: 'timeseries',
}
}
}
});
More details
Please see the time scale documentation for all other details.