05.09.2019, 07:44
Try this Custom JS. Change trend ID and max value as needed. You can add if statements to set maximum value for other trends. This will only work in single trend view.
Code:
$(function(){
if (typeof Chart != 'object') {
return;
}
function getid() {
var sel = $('.nav .active .a');
if (sel.length == 1) {
return sel.data('trend').id;
}
}
var calcBounds = Chart.calcBounds;
Chart.calcBounds = function() {
calcBounds.apply(this);
if (getid() == 1) {
this.max = 1000;
}
}
});