Commit 0a53ce82 authored by Ezekiel Kigbo's avatar Ezekiel Kigbo Committed by Brandon Labuschagne

Fix unit display for VSA charts

Overrides the default units formatter with
a custom function to ensure decimals are preserved
instead of being converted to engineering units

Changelog: fixed
EE: true
parent 77de7479
......@@ -16,6 +16,15 @@ export default {
required: true,
},
},
additionalOptions: {
yAxis: [
{
axisLabel: {
formatter: (value) => value,
},
},
],
},
};
</script>
<template>
......@@ -26,5 +35,6 @@ export default {
y-axis-type="value"
:x-axis-title="__('Date')"
:y-axis-title="s__('CycleAnalytics|Number of tasks')"
:option="$options.additionalOptions"
/>
</template>
......@@ -43,6 +43,11 @@ export default {
formatter: (date) => dateFormat(date, dateFormats.defaultDate),
},
},
yAxis: {
axisLabel: {
formatter: (value) => value,
},
},
dataZoom: [
{
type: 'slider',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment