import { Heatmap } from 'reaviz'; import { heatmapSimpleData } from 'reaviz-data-utils'; import { SequentialLegend } from 'reaviz'; import { HeatmapCell, HeatmapSeries } from 'reaviz'; import { getYScale } from 'reaviz'; import { LinearYAxis, LinearYAxisTickSeries, LinearYAxisTickLabel, LINEAR_Y_AXIS_TICK_LABEL_DEFAULT_PROPS } from 'reaviz'; export default { tags: ['snapshot'], title: 'Charts/Heatmap/Simple', component: Heatmap, subcomponents: { HeatmapSeries, HeatmapCell } }; export const Basic = () => ( } /> ); export const BasicLegend = () => (
); BasicLegend.story = { name: 'Basic + Legend' }; export const MultiAxis = () => { const scale = getYScale({ type: 'category', height: 190, data: [ { key: 'Before', data: 0, y: 'Before' }, { key: 'After', data: 0, y: 'After' } ] }); return ( } /> } /> ]} /> ); }; export const Symbols = () => ( } /> } colorScheme="OrRd" /> } /> );