Specify min and max for scale
Setting the minimum and maximum values for the scale to define the range of data displayed in the chart.
Syntax
const chartOptions = {
type: 'line',
data: data,
options: {
scales: {
x: [{
type: 'time',
time: {
min: min_value,
max: max_value
}
}],
y: [{
type: 'linear',
min: 0,
max: 100
}]
}
}
};
Chart.js General Performance
Chart.js charts are speedily rendered thanks to their utilization of canvas elements. This choice of rendering contributes to swift performance, allowing for the creation of dynamic and visually appealing charts.
Contact Us