import ConsumptionGauge from './ConsumptionGauge'; export default { title: 'Components/ConsumptionGauge', component: ConsumptionGauge, decorators: [] }; export const Story = () => ({ components: { ConsumptionGauge }, methods: { formatter(value) { const valueAsArray = value.toString().split(''); valueAsArray.splice(1, 0, ','); return valueAsArray.join(''); } }, template: `