This repository has been archived by the owner on Dec 10, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 273
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: 🎸 line chart makes first appearance
- Loading branch information
Showing
14 changed files
with
1,202 additions
and
6 deletions.
There are no files selected for viewing
42 changes: 42 additions & 0 deletions
42
...gins/packages/superset-ui-plugins-demo/storybook/stories/preset-chart-xy/Line/Stories.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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', | ||
}, | ||
]; |
Oops, something went wrong.