polishing chart, build info in top left
continuous-integration/drone/push Build is failing

This commit is contained in:
2020-08-24 21:20:58 +02:00
parent d5dc2f933a
commit 36d12a784a
12 changed files with 97 additions and 44 deletions
+13 -3
View File
@@ -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 };
}
)
}
};