From 1a75f8c242151093571e25e88506af6b1f3da828 Mon Sep 17 00:00:00 2001 From: Timo Hocker Date: Fri, 28 Aug 2020 17:40:00 +0200 Subject: [PATCH] y axis labelling --- src/components/ChartView.vue | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/components/ChartView.vue b/src/components/ChartView.vue index c06f75f..e3068bd 100644 --- a/src/components/ChartView.vue +++ b/src/components/ChartView.vue @@ -66,7 +66,16 @@ export default { if (typeof y.max_value === 'number') range.suggestedMax = y.max_value; - return { id: index, ticks: range }; + return { + id: index, + ticks: range, + scaleLabel: { + labelString: y.label, + display: true, + lineHeight: 1, + padding: 0.1 + } + }; } ) }