y axis labelling

This commit is contained in:
Timo Hocker 2020-08-28 17:40:00 +02:00
parent ca37e38800
commit 1a75f8c242

View File

@ -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
}
};
}
)
}