I need set suggested minimum for my time series chart. It means, when I have values bigger than suggested minimum chart will be dynamically expose range until lowest value hit suggested minimum and values with lower date will not showed anymore.
var chart = new Chart(ctx, {
type: 'line',
data: {datasets: [ds1]},
options: {
scales: {
xAxes: [{
type: 'time',
time: {
unit: 'day',
suggestedMin: min, // this doesn't work
displayFormats: {
day: 'DD-MM-YYYY'
}
}
}]
}
}
});
In my chart option suggestedMin doesn't work, just when I set option min instead suggestedMin work. But in this case I have a large free space in chart. I need fit chart values for whole space if its value is't before my entered suggestedMin.
whole example is here: https://jsfiddle.net/b7k2voza/1/
Can you tell me please how to do that? Thank you in advice.