import { nStoriesOfWithDefault, action, boolean, text, color, array } from './storybase.js' import LineChart from '~/components/LineChart' nStoriesOfWithDefault({ LineChart }) .add('with some data', () => ({ components: { LineChart }, template: `
` })) .add('with knobs demo', () => { const maintainAspectRatio = boolean('Aspect Ratio', false) const responsive = boolean('Responsive', true) const title = text('Title', 'Sample chart') const myColor = color('Background Color', 'darkred') const defaultValue = array('Values', [1, 2, 3, 6, 3, 8]) const defaultLabel = array('Labels', [ "'a'", "'b'", "'c'", "'d'", "'e'", "'f'" ]) return { components: { LineChart }, methods: { onResize: action('resized') }, template: `
` } }) .addVT('with Vuetify', () => { const data = { "'a'": 1, "'b'": 2, "'c'": 3 } return ` ` }) .addVT( 'with Vuetify2', ` ` )