forked from apache/superset
-
Notifications
You must be signed in to change notification settings - Fork 4
/
YAxisStories.jsx
64 lines (63 loc) · 1.65 KB
/
YAxisStories.jsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
/* eslint-disable no-magic-numbers */
import React from 'react';
import { SuperChart } from '@superset-ui/chart';
import data from './data';
export default [
{
renderStory: () => (
<div className="container">
<h2>yAxisBounds</h2>
<pre>yAxisBounds=[0, 60000]</pre>
<SuperChart
chartType="line"
chartProps={{
datasource: { verboseMap: {} },
formData: {
richTooltip: true,
showLegend: false,
vizType: 'line',
yAxisBounds: [0, 60000],
},
height: 200,
payload: { data },
width: 400,
}}
/>
<pre>yAxisBounds=[null, 60000]</pre>
<SuperChart
chartType="line"
chartProps={{
datasource: { verboseMap: {} },
formData: {
richTooltip: true,
showLegend: false,
vizType: 'line',
yAxisBounds: [null, 60000],
},
height: 200,
payload: { data },
width: 400,
}}
/>
<pre>yAxisBounds=[40000, null]</pre>
<SuperChart
chartType="line"
chartProps={{
datasource: { verboseMap: {} },
formData: {
richTooltip: true,
showLegend: false,
vizType: 'line',
yAxisBounds: [40000, null],
},
height: 200,
payload: { data },
width: 400,
}}
/>
</div>
),
storyName: 'yAxisBounds',
storyPath: 'legacy-|preset-chart-nvd3|LineChartPlugin',
},
];