import React from 'react'; import {storiesOf} from '@storybook/react'; import {withInfo} from '@storybook/addon-info'; import {number, text, boolean, array} from '@storybook/addon-knobs'; import TableChart from 'app/components/charts/tableChart'; storiesOf('Charts|TableChart', module).add( 'TableChart', withInfo( 'A simple table that can calculate totals and relative share as a bar inside of a row' )(() => { const ERROR_TYPE_DATA = [ ['TypeError', 50, 40, 30], ['SyntaxError', 40, 30, 20], ['NameError', 15, 15, 15], ['ZeroDivisionError', 20, 10, 0], ]; return ( ); }) );