This commit is contained in:
@@ -38,9 +38,19 @@ export default {
|
||||
},
|
||||
chart_options () {
|
||||
return {
|
||||
scales: {
|
||||
yAxes: this.yaxis.map (
|
||||
(y, index) => ({ id: index })
|
||||
animation: { duration: 0 },
|
||||
responsiveAnimationDuration: 0,
|
||||
scales: {
|
||||
yAxes: this.yaxis.map (
|
||||
(y, index) => {
|
||||
const range = {};
|
||||
if (typeof y.min_value === 'number')
|
||||
range.suggestedMin = y.min_value;
|
||||
if (typeof y.max_value === 'number')
|
||||
range.suggestedMax = y.max_value;
|
||||
|
||||
return { id: index, ticks: range };
|
||||
}
|
||||
)
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user