import React from 'react'; import { Meta, Story } from '@storybook/react'; import * as chartConstants from '../../constants/charts'; import AxisLabel, { IAxisLabelProps } from './AxisLabel'; export default { title: 'Visualizations/AxisLabel', component: AxisLabel, parameters: { docs: { description: { component: AxisLabel.peek.description, }, }, }, } as Meta; /* Basic */ export const Basic: Story = (args) => { const width = 800; const height = 400; const margin = { top: 50, right: 50, bottom: 50, left: 50 }; const innerWidth = width - margin.right - margin.left; const innerHeight = height - margin.top - margin.bottom; return ( {/* dotted outline for the svg */} {/* show the inner part of the chart */} ); };