import React from 'react'; import {withInfo} from '@storybook/addon-info'; import {number, text, boolean, array} from '@storybook/addon-knobs'; import TableChart from 'app/components/charts/tableChart'; export default { title: 'Charts/TableChart', }; export const _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 ( ); }); _TableChart.story = { name: 'TableChart', };