Skip to content
This repository has been archived by the owner on Dec 10, 2021. It is now read-only.

Commit

Permalink
feat: 🎸 line chart makes first appearance
Browse files Browse the repository at this point in the history
  • Loading branch information
kristw committed Feb 26, 2019
1 parent cef8d67 commit df727b6
Show file tree
Hide file tree
Showing 14 changed files with 1,202 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
/* eslint-disable no-magic-numbers */
import React from 'react';
import { SuperChart } from '@superset-ui/chart';
import data from './data';

export default [
{
renderStory: () => (
<SuperChart
chartType="line2"
chartProps={{
datasource: { verboseMap: {} },
formData: {
bottomMargin: 'auto',
colorScheme: 'd3Category10',
leftMargin: 'auto',
lineInterpolation: 'linear',
richTooltip: true,
showBrush: 'auto',
showLegend: true,
showMarkers: false,
vizType: 'line',
xAxisFormat: '%Y',
xAxisLabel: '',
xAxisShowminmax: false,
xTicksLayout: 'auto',
yAxisBounds: [null, null],
yAxisFormat: '.3s',
yAxisLabel: '',
yAxisShowminmax: false,
yLogScale: false,
},
height: 400,
payload: { data },
width: 400,
}}
/>
),
storyName: 'Basic',
storyPath: 'preset-chart-xy|LineChartPlugin',
},
];
Loading

0 comments on commit df727b6

Please sign in to comment.