@wonderflow/react-components 12.11.0 → 14.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,274 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { BarChart, CartesianChartLayout } from '@wonderflow/charts';
3
+ import { Card } from '../../..';
4
+ // import { BarChart, BarChartProps, CartesianChartLayout } from '../../../../../charts/src';
5
+ import { channels, channelsB, feedbackCount, feedbackCountGaps, proCons, products, } from '../mock-data';
6
+ import { positiveNegative } from '../mock-data/positiveNegative';
7
+ import { FakeMenu } from './line-chart.stories';
8
+ import styles from './sb-charts.module.css';
9
+ const story = {
10
+ title: 'Charts/Bar Chart',
11
+ component: BarChart,
12
+ args: {
13
+ title: 'Bar Chart',
14
+ subtitle: 'A simple bar chart',
15
+ sortBy: 'as-is',
16
+ isStacked: false,
17
+ showLabel: false,
18
+ isLoading: false,
19
+ showAverage: false,
20
+ showTrendline: false,
21
+ showBrush: false,
22
+ showBackground: false,
23
+ hideLegend: false,
24
+ hidePadding: false,
25
+ preventTooltipDisplay: false,
26
+ preventResponsive: false,
27
+ layout: CartesianChartLayout.HORIZONTAL,
28
+ theme: 'light',
29
+ reverseIndex: false,
30
+ mirrorDomains: false,
31
+ fixedBarSize: false,
32
+ data: feedbackCount,
33
+ index: {
34
+ dataKey: 'date',
35
+ label: 'Year',
36
+ },
37
+ series: {
38
+ dataKey: ['feedback count'],
39
+ label: 'Feedback Count',
40
+ },
41
+ overlay: undefined,
42
+ menu: undefined,
43
+ },
44
+ argTypes: {
45
+ layout: {
46
+ options: ['horizontal', 'vertical'],
47
+ control: { type: 'radio' },
48
+ },
49
+ sortBy: {
50
+ options: ['descending-key', 'ascending-key', 'descending-value', 'ascending-value', 'as-is'],
51
+ control: { type: 'select' },
52
+ },
53
+ theme: {
54
+ options: ['light', 'dark'],
55
+ control: { type: 'radio' },
56
+ },
57
+ },
58
+ };
59
+ export default story;
60
+ const Template = (args) => _jsx(BarChart, { ...args });
61
+ export const Default = Template.bind({});
62
+ Default.args = {};
63
+ export const withOverlay = Template.bind({});
64
+ withOverlay.args = {
65
+ subtitle: 'A bar chart with overlay',
66
+ overlay: {
67
+ dataKey: ['overlay'],
68
+ label: 'Overlay',
69
+ },
70
+ };
71
+ export const withMultipleOverlay = Template.bind({});
72
+ withMultipleOverlay.args = {
73
+ subtitle: 'A group bar chart with one series and two overlay',
74
+ series: {
75
+ dataKey: ['feedback count'],
76
+ label: 'Feedback Count',
77
+ domain: [0, 12000],
78
+ },
79
+ overlay: {
80
+ dataKey: ['overlay', 'overlayB'],
81
+ rename: ((o, i) => (i === 0 ? 'OverlayA' : o)),
82
+ label: 'Overlay',
83
+ domain: [0, 1],
84
+ },
85
+ data: feedbackCount.slice(11),
86
+ };
87
+ export const withMultipleSeries = Template.bind({});
88
+ withMultipleSeries.args = {
89
+ title: 'Multiple Series',
90
+ subtitle: 'A group bar chart',
91
+ data: proCons,
92
+ index: {
93
+ dataKey: 'date',
94
+ label: 'Time',
95
+ },
96
+ series: {
97
+ domain: [0, 140],
98
+ dataKey: ['positive', 'negative', 'neutral'],
99
+ label: 'Pros & cons',
100
+ style: [undefined, undefined, { fill: 'gray' }],
101
+ },
102
+ };
103
+ export const withAverage = Template.bind({});
104
+ withAverage.args = {
105
+ subtitle: 'A bar chart with average',
106
+ showAverage: true,
107
+ };
108
+ export const withTrendline = Template.bind({});
109
+ withTrendline.args = {
110
+ subtitle: 'A bar chart with overlay and trendlines',
111
+ overlay: {
112
+ dataKey: ['overlay'],
113
+ label: 'Overlay',
114
+ domain: [0, 1],
115
+ },
116
+ showTrendline: true,
117
+ };
118
+ export const withCategoriesOnIndex = Template.bind({});
119
+ withCategoriesOnIndex.args = {
120
+ title: 'Multiple Series',
121
+ subtitle: 'A line chart with categories on index',
122
+ data: channels,
123
+ index: {
124
+ dataKey: 'channel',
125
+ label: 'Channels',
126
+ },
127
+ series: {
128
+ dataKey: ['1 star', '2 stars', '3 stars', '4 stars', '5 stars'],
129
+ label: 'Feedback count',
130
+ },
131
+ };
132
+ export const withNestedData = Template.bind({});
133
+ withNestedData.args = {
134
+ title: 'Multiple Series',
135
+ subtitle: 'A bar chart rendered from nested data',
136
+ data: channelsB,
137
+ index: {
138
+ dataKey: 'channel',
139
+ label: 'Channels',
140
+ },
141
+ series: {
142
+ dataKey: ['1 star.value', '2 stars.value', '3 stars.value', '4 stars.value', '5 stars.value'],
143
+ extraData: (datum) => `${datum.percentage}%`,
144
+ label: 'Feedback count',
145
+ domain: [0, 4000],
146
+ },
147
+ overlay: {
148
+ dataKey: ['overlay.value'],
149
+ extraData: (datum) => `${datum.percentage}%`,
150
+ rename: _ => 'Some KPI',
151
+ label: 'Some KPI',
152
+ domain: [0, 5],
153
+ },
154
+ tooltipExtraContent: _jsx("div", { children: "some extra content" }),
155
+ };
156
+ export const withBackground = Template.bind({});
157
+ withBackground.args = {
158
+ subtitle: 'A bar chart with bars background color',
159
+ series: {
160
+ dataKey: ['feedback count'],
161
+ label: 'Feedback Count',
162
+ showBackground: true,
163
+ },
164
+ overlay: {
165
+ dataKey: ['overlay'],
166
+ label: 'Overlay',
167
+ showBackground: true,
168
+ },
169
+ };
170
+ export const PositiveAndNegative = Template.bind({});
171
+ PositiveAndNegative.args = {
172
+ subtitle: 'A bar chart with positive and negative values',
173
+ data: positiveNegative,
174
+ series: {
175
+ dataKey: ['feedback count'],
176
+ label: 'Feedback Count',
177
+ },
178
+ overlay: {
179
+ dataKey: ['overlay'],
180
+ label: 'Overlay',
181
+ },
182
+ mirrorDomains: true,
183
+ };
184
+ export const withVerticalFixedBars = Template.bind({});
185
+ withVerticalFixedBars.args = {
186
+ subtitle: 'A bar chart with vertical fixed thickness bars',
187
+ overlay: {
188
+ dataKey: ['overlay'],
189
+ label: 'Overlay',
190
+ domain: [0, 1],
191
+ },
192
+ fixedBarSize: true,
193
+ layout: CartesianChartLayout.VERTICAL,
194
+ };
195
+ export const withMissingData = Template.bind({});
196
+ withMissingData.args = {
197
+ data: feedbackCountGaps,
198
+ subtitle: 'A bar line chart with null values',
199
+ overlay: {
200
+ dataKey: ['overlay'],
201
+ label: 'Overlay',
202
+ },
203
+ };
204
+ export const withCustomBarStyle = Template.bind({});
205
+ withCustomBarStyle.args = {
206
+ title: 'Multiple Series',
207
+ subtitle: 'A bar chart with multiple series and custom colors',
208
+ data: proCons,
209
+ index: {
210
+ dataKey: 'date',
211
+ label: 'Time',
212
+ },
213
+ series: {
214
+ dataKey: ['positive', 'negative', 'neutral'],
215
+ label: 'Pros & cons',
216
+ style: [
217
+ {
218
+ fill: 'slateGray',
219
+ },
220
+ {
221
+ fill: 'salmon',
222
+ },
223
+ {
224
+ fill: 'lightBlue',
225
+ },
226
+ ],
227
+ },
228
+ };
229
+ export const withBrush = Template.bind({});
230
+ withBrush.args = {
231
+ data: products,
232
+ subtitle: 'A bar chart with twelve series',
233
+ sortBy: 'descending-value',
234
+ showBackground: true,
235
+ showBrush: true,
236
+ index: {
237
+ dataKey: 'date',
238
+ label: 'Year',
239
+ },
240
+ series: {
241
+ dataKey: [
242
+ 'QN95B Neo QLED 4K TV',
243
+ 'Q800A Neo QLED 4K TV',
244
+ 'Q60A QLED 4K TV',
245
+ 'C2 OLED 4K TV',
246
+ 'G2 OLED Evo 4K TV',
247
+ 'B2 OLED 4K TV',
248
+ 'A95K QD-OLED 4K TV',
249
+ 'X95J LED 4K TV',
250
+ 'X85J LED 4K TV',
251
+ 'R6485Q Mini-LED QLED 4K TV',
252
+ 'S546Q 4K QLED TV',
253
+ 'S435 4K Roku TV',
254
+ ],
255
+ label: 'Product Units',
256
+ tickFormat: (l) => `${l}K`,
257
+ domain: [0, 1000],
258
+ hideZero: true,
259
+ },
260
+ };
261
+ export const WithMenu = Template.bind({});
262
+ WithMenu.args = {
263
+ menu: FakeMenu,
264
+ };
265
+ const WithinCardTemplate = (args) => {
266
+ const { theme } = args;
267
+ return (_jsx(Card, { bordered: true, className: styles.Card, style: { backgroundColor: theme === 'dark' ? '#202227' : undefined }, children: _jsx(BarChart, { ...args }) }));
268
+ };
269
+ export const WithinCard = WithinCardTemplate.bind({});
270
+ WithinCard.args = {
271
+ subtitle: 'A bar chart within a card 75vh and width 100%',
272
+ hidePadding: true,
273
+ theme: 'dark',
274
+ };
@@ -1,6 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { ComponentMeta, ComponentStory } from '@storybook/react';
3
3
  import { CartesianChartLayout, LineChart } from '@wonderflow/charts';
4
+ export declare const FakeMenu: JSX.Element;
4
5
  declare const story: ComponentMeta<typeof LineChart>;
5
6
  export default story;
6
7
  export declare const Default: ComponentStory<import("react").ForwardRefExoticComponent<{
@@ -10,9 +11,11 @@ export declare const Default: ComponentStory<import("react").ForwardRefExoticCom
10
11
  renderAs?: import("@wonderflow/charts").LineChartRenderType | undefined;
11
12
  index: import("@wonderflow/charts").LineChartIndex;
12
13
  series: import("@wonderflow/charts").LineChartSeries;
13
- overlay?: import("@wonderflow/charts").LineChartOverlay | undefined;
14
+ overlay?: import("@wonderflow/charts").LineChartSeries | undefined;
14
15
  showAverage?: boolean | undefined;
15
- tooltip?: import("@wonderflow/charts").LineChartTooltip | undefined;
16
+ showTrendline?: boolean | undefined;
17
+ tooltipExtraContent?: import("react").ReactNode;
18
+ preventTooltipDisplay?: boolean | undefined;
16
19
  hideMissingDataConnection?: boolean | undefined;
17
20
  showMarker?: boolean | undefined;
18
21
  showMarkerLabel?: boolean | undefined;
@@ -25,9 +28,28 @@ export declare const withOverlay: ComponentStory<import("react").ForwardRefExoti
25
28
  renderAs?: import("@wonderflow/charts").LineChartRenderType | undefined;
26
29
  index: import("@wonderflow/charts").LineChartIndex;
27
30
  series: import("@wonderflow/charts").LineChartSeries;
28
- overlay?: import("@wonderflow/charts").LineChartOverlay | undefined;
31
+ overlay?: import("@wonderflow/charts").LineChartSeries | undefined;
29
32
  showAverage?: boolean | undefined;
30
- tooltip?: import("@wonderflow/charts").LineChartTooltip | undefined;
33
+ showTrendline?: boolean | undefined;
34
+ tooltipExtraContent?: import("react").ReactNode;
35
+ preventTooltipDisplay?: boolean | undefined;
36
+ hideMissingDataConnection?: boolean | undefined;
37
+ showMarker?: boolean | undefined;
38
+ showMarkerLabel?: boolean | undefined;
39
+ hidePadding?: boolean | undefined;
40
+ } & import("type-fest/source/except").Except<import("@wonderflow/charts").CartesianBaseProps, "axis" | "axisFiltered" | "onBrushChange"> & import("react").RefAttributes<HTMLElement>>>;
41
+ export declare const withMultipleOverlay: ComponentStory<import("react").ForwardRefExoticComponent<{
42
+ theme?: import("@wonderflow/charts").ThemeVariants | undefined;
43
+ layout?: CartesianChartLayout | undefined;
44
+ data: import("@wonderflow/charts").Data;
45
+ renderAs?: import("@wonderflow/charts").LineChartRenderType | undefined;
46
+ index: import("@wonderflow/charts").LineChartIndex;
47
+ series: import("@wonderflow/charts").LineChartSeries;
48
+ overlay?: import("@wonderflow/charts").LineChartSeries | undefined;
49
+ showAverage?: boolean | undefined;
50
+ showTrendline?: boolean | undefined;
51
+ tooltipExtraContent?: import("react").ReactNode;
52
+ preventTooltipDisplay?: boolean | undefined;
31
53
  hideMissingDataConnection?: boolean | undefined;
32
54
  showMarker?: boolean | undefined;
33
55
  showMarkerLabel?: boolean | undefined;
@@ -40,9 +62,28 @@ export declare const withAverage: ComponentStory<import("react").ForwardRefExoti
40
62
  renderAs?: import("@wonderflow/charts").LineChartRenderType | undefined;
41
63
  index: import("@wonderflow/charts").LineChartIndex;
42
64
  series: import("@wonderflow/charts").LineChartSeries;
43
- overlay?: import("@wonderflow/charts").LineChartOverlay | undefined;
65
+ overlay?: import("@wonderflow/charts").LineChartSeries | undefined;
66
+ showAverage?: boolean | undefined;
67
+ showTrendline?: boolean | undefined;
68
+ tooltipExtraContent?: import("react").ReactNode;
69
+ preventTooltipDisplay?: boolean | undefined;
70
+ hideMissingDataConnection?: boolean | undefined;
71
+ showMarker?: boolean | undefined;
72
+ showMarkerLabel?: boolean | undefined;
73
+ hidePadding?: boolean | undefined;
74
+ } & import("type-fest/source/except").Except<import("@wonderflow/charts").CartesianBaseProps, "axis" | "axisFiltered" | "onBrushChange"> & import("react").RefAttributes<HTMLElement>>>;
75
+ export declare const withTrendline: ComponentStory<import("react").ForwardRefExoticComponent<{
76
+ theme?: import("@wonderflow/charts").ThemeVariants | undefined;
77
+ layout?: CartesianChartLayout | undefined;
78
+ data: import("@wonderflow/charts").Data;
79
+ renderAs?: import("@wonderflow/charts").LineChartRenderType | undefined;
80
+ index: import("@wonderflow/charts").LineChartIndex;
81
+ series: import("@wonderflow/charts").LineChartSeries;
82
+ overlay?: import("@wonderflow/charts").LineChartSeries | undefined;
44
83
  showAverage?: boolean | undefined;
45
- tooltip?: import("@wonderflow/charts").LineChartTooltip | undefined;
84
+ showTrendline?: boolean | undefined;
85
+ tooltipExtraContent?: import("react").ReactNode;
86
+ preventTooltipDisplay?: boolean | undefined;
46
87
  hideMissingDataConnection?: boolean | undefined;
47
88
  showMarker?: boolean | undefined;
48
89
  showMarkerLabel?: boolean | undefined;
@@ -55,9 +96,11 @@ export declare const withMissingData: ComponentStory<import("react").ForwardRefE
55
96
  renderAs?: import("@wonderflow/charts").LineChartRenderType | undefined;
56
97
  index: import("@wonderflow/charts").LineChartIndex;
57
98
  series: import("@wonderflow/charts").LineChartSeries;
58
- overlay?: import("@wonderflow/charts").LineChartOverlay | undefined;
99
+ overlay?: import("@wonderflow/charts").LineChartSeries | undefined;
59
100
  showAverage?: boolean | undefined;
60
- tooltip?: import("@wonderflow/charts").LineChartTooltip | undefined;
101
+ showTrendline?: boolean | undefined;
102
+ tooltipExtraContent?: import("react").ReactNode;
103
+ preventTooltipDisplay?: boolean | undefined;
61
104
  hideMissingDataConnection?: boolean | undefined;
62
105
  showMarker?: boolean | undefined;
63
106
  showMarkerLabel?: boolean | undefined;
@@ -70,9 +113,11 @@ export declare const withMultipleSeries: ComponentStory<import("react").ForwardR
70
113
  renderAs?: import("@wonderflow/charts").LineChartRenderType | undefined;
71
114
  index: import("@wonderflow/charts").LineChartIndex;
72
115
  series: import("@wonderflow/charts").LineChartSeries;
73
- overlay?: import("@wonderflow/charts").LineChartOverlay | undefined;
116
+ overlay?: import("@wonderflow/charts").LineChartSeries | undefined;
74
117
  showAverage?: boolean | undefined;
75
- tooltip?: import("@wonderflow/charts").LineChartTooltip | undefined;
118
+ showTrendline?: boolean | undefined;
119
+ tooltipExtraContent?: import("react").ReactNode;
120
+ preventTooltipDisplay?: boolean | undefined;
76
121
  hideMissingDataConnection?: boolean | undefined;
77
122
  showMarker?: boolean | undefined;
78
123
  showMarkerLabel?: boolean | undefined;
@@ -85,9 +130,11 @@ export declare const withCategoriesOnIndex: ComponentStory<import("react").Forwa
85
130
  renderAs?: import("@wonderflow/charts").LineChartRenderType | undefined;
86
131
  index: import("@wonderflow/charts").LineChartIndex;
87
132
  series: import("@wonderflow/charts").LineChartSeries;
88
- overlay?: import("@wonderflow/charts").LineChartOverlay | undefined;
133
+ overlay?: import("@wonderflow/charts").LineChartSeries | undefined;
89
134
  showAverage?: boolean | undefined;
90
- tooltip?: import("@wonderflow/charts").LineChartTooltip | undefined;
135
+ showTrendline?: boolean | undefined;
136
+ tooltipExtraContent?: import("react").ReactNode;
137
+ preventTooltipDisplay?: boolean | undefined;
91
138
  hideMissingDataConnection?: boolean | undefined;
92
139
  showMarker?: boolean | undefined;
93
140
  showMarkerLabel?: boolean | undefined;
@@ -100,9 +147,11 @@ export declare const withNestedData: ComponentStory<import("react").ForwardRefEx
100
147
  renderAs?: import("@wonderflow/charts").LineChartRenderType | undefined;
101
148
  index: import("@wonderflow/charts").LineChartIndex;
102
149
  series: import("@wonderflow/charts").LineChartSeries;
103
- overlay?: import("@wonderflow/charts").LineChartOverlay | undefined;
150
+ overlay?: import("@wonderflow/charts").LineChartSeries | undefined;
104
151
  showAverage?: boolean | undefined;
105
- tooltip?: import("@wonderflow/charts").LineChartTooltip | undefined;
152
+ showTrendline?: boolean | undefined;
153
+ tooltipExtraContent?: import("react").ReactNode;
154
+ preventTooltipDisplay?: boolean | undefined;
106
155
  hideMissingDataConnection?: boolean | undefined;
107
156
  showMarker?: boolean | undefined;
108
157
  showMarkerLabel?: boolean | undefined;
@@ -115,9 +164,11 @@ export declare const withCustomLineStyle: ComponentStory<import("react").Forward
115
164
  renderAs?: import("@wonderflow/charts").LineChartRenderType | undefined;
116
165
  index: import("@wonderflow/charts").LineChartIndex;
117
166
  series: import("@wonderflow/charts").LineChartSeries;
118
- overlay?: import("@wonderflow/charts").LineChartOverlay | undefined;
167
+ overlay?: import("@wonderflow/charts").LineChartSeries | undefined;
119
168
  showAverage?: boolean | undefined;
120
- tooltip?: import("@wonderflow/charts").LineChartTooltip | undefined;
169
+ showTrendline?: boolean | undefined;
170
+ tooltipExtraContent?: import("react").ReactNode;
171
+ preventTooltipDisplay?: boolean | undefined;
121
172
  hideMissingDataConnection?: boolean | undefined;
122
173
  showMarker?: boolean | undefined;
123
174
  showMarkerLabel?: boolean | undefined;
@@ -130,9 +181,11 @@ export declare const withBrush: ComponentStory<import("react").ForwardRefExoticC
130
181
  renderAs?: import("@wonderflow/charts").LineChartRenderType | undefined;
131
182
  index: import("@wonderflow/charts").LineChartIndex;
132
183
  series: import("@wonderflow/charts").LineChartSeries;
133
- overlay?: import("@wonderflow/charts").LineChartOverlay | undefined;
184
+ overlay?: import("@wonderflow/charts").LineChartSeries | undefined;
134
185
  showAverage?: boolean | undefined;
135
- tooltip?: import("@wonderflow/charts").LineChartTooltip | undefined;
186
+ showTrendline?: boolean | undefined;
187
+ tooltipExtraContent?: import("react").ReactNode;
188
+ preventTooltipDisplay?: boolean | undefined;
136
189
  hideMissingDataConnection?: boolean | undefined;
137
190
  showMarker?: boolean | undefined;
138
191
  showMarkerLabel?: boolean | undefined;
@@ -145,9 +198,11 @@ export declare const withCustomDomain: ComponentStory<import("react").ForwardRef
145
198
  renderAs?: import("@wonderflow/charts").LineChartRenderType | undefined;
146
199
  index: import("@wonderflow/charts").LineChartIndex;
147
200
  series: import("@wonderflow/charts").LineChartSeries;
148
- overlay?: import("@wonderflow/charts").LineChartOverlay | undefined;
201
+ overlay?: import("@wonderflow/charts").LineChartSeries | undefined;
149
202
  showAverage?: boolean | undefined;
150
- tooltip?: import("@wonderflow/charts").LineChartTooltip | undefined;
203
+ showTrendline?: boolean | undefined;
204
+ tooltipExtraContent?: import("react").ReactNode;
205
+ preventTooltipDisplay?: boolean | undefined;
151
206
  hideMissingDataConnection?: boolean | undefined;
152
207
  showMarker?: boolean | undefined;
153
208
  showMarkerLabel?: boolean | undefined;
@@ -160,9 +215,11 @@ export declare const withVerticalLayout: ComponentStory<import("react").ForwardR
160
215
  renderAs?: import("@wonderflow/charts").LineChartRenderType | undefined;
161
216
  index: import("@wonderflow/charts").LineChartIndex;
162
217
  series: import("@wonderflow/charts").LineChartSeries;
163
- overlay?: import("@wonderflow/charts").LineChartOverlay | undefined;
218
+ overlay?: import("@wonderflow/charts").LineChartSeries | undefined;
164
219
  showAverage?: boolean | undefined;
165
- tooltip?: import("@wonderflow/charts").LineChartTooltip | undefined;
220
+ showTrendline?: boolean | undefined;
221
+ tooltipExtraContent?: import("react").ReactNode;
222
+ preventTooltipDisplay?: boolean | undefined;
166
223
  hideMissingDataConnection?: boolean | undefined;
167
224
  showMarker?: boolean | undefined;
168
225
  showMarkerLabel?: boolean | undefined;
@@ -175,9 +232,28 @@ export declare const withNoData: ComponentStory<import("react").ForwardRefExotic
175
232
  renderAs?: import("@wonderflow/charts").LineChartRenderType | undefined;
176
233
  index: import("@wonderflow/charts").LineChartIndex;
177
234
  series: import("@wonderflow/charts").LineChartSeries;
178
- overlay?: import("@wonderflow/charts").LineChartOverlay | undefined;
235
+ overlay?: import("@wonderflow/charts").LineChartSeries | undefined;
236
+ showAverage?: boolean | undefined;
237
+ showTrendline?: boolean | undefined;
238
+ tooltipExtraContent?: import("react").ReactNode;
239
+ preventTooltipDisplay?: boolean | undefined;
240
+ hideMissingDataConnection?: boolean | undefined;
241
+ showMarker?: boolean | undefined;
242
+ showMarkerLabel?: boolean | undefined;
243
+ hidePadding?: boolean | undefined;
244
+ } & import("type-fest/source/except").Except<import("@wonderflow/charts").CartesianBaseProps, "axis" | "axisFiltered" | "onBrushChange"> & import("react").RefAttributes<HTMLElement>>>;
245
+ export declare const WithMenu: ComponentStory<import("react").ForwardRefExoticComponent<{
246
+ theme?: import("@wonderflow/charts").ThemeVariants | undefined;
247
+ layout?: CartesianChartLayout | undefined;
248
+ data: import("@wonderflow/charts").Data;
249
+ renderAs?: import("@wonderflow/charts").LineChartRenderType | undefined;
250
+ index: import("@wonderflow/charts").LineChartIndex;
251
+ series: import("@wonderflow/charts").LineChartSeries;
252
+ overlay?: import("@wonderflow/charts").LineChartSeries | undefined;
179
253
  showAverage?: boolean | undefined;
180
- tooltip?: import("@wonderflow/charts").LineChartTooltip | undefined;
254
+ showTrendline?: boolean | undefined;
255
+ tooltipExtraContent?: import("react").ReactNode;
256
+ preventTooltipDisplay?: boolean | undefined;
181
257
  hideMissingDataConnection?: boolean | undefined;
182
258
  showMarker?: boolean | undefined;
183
259
  showMarkerLabel?: boolean | undefined;
@@ -190,9 +266,11 @@ export declare const renderAsLines: ComponentStory<import("react").ForwardRefExo
190
266
  renderAs?: import("@wonderflow/charts").LineChartRenderType | undefined;
191
267
  index: import("@wonderflow/charts").LineChartIndex;
192
268
  series: import("@wonderflow/charts").LineChartSeries;
193
- overlay?: import("@wonderflow/charts").LineChartOverlay | undefined;
269
+ overlay?: import("@wonderflow/charts").LineChartSeries | undefined;
194
270
  showAverage?: boolean | undefined;
195
- tooltip?: import("@wonderflow/charts").LineChartTooltip | undefined;
271
+ showTrendline?: boolean | undefined;
272
+ tooltipExtraContent?: import("react").ReactNode;
273
+ preventTooltipDisplay?: boolean | undefined;
196
274
  hideMissingDataConnection?: boolean | undefined;
197
275
  showMarker?: boolean | undefined;
198
276
  showMarkerLabel?: boolean | undefined;
@@ -205,9 +283,11 @@ export declare const renderAsSteps: ComponentStory<import("react").ForwardRefExo
205
283
  renderAs?: import("@wonderflow/charts").LineChartRenderType | undefined;
206
284
  index: import("@wonderflow/charts").LineChartIndex;
207
285
  series: import("@wonderflow/charts").LineChartSeries;
208
- overlay?: import("@wonderflow/charts").LineChartOverlay | undefined;
286
+ overlay?: import("@wonderflow/charts").LineChartSeries | undefined;
209
287
  showAverage?: boolean | undefined;
210
- tooltip?: import("@wonderflow/charts").LineChartTooltip | undefined;
288
+ showTrendline?: boolean | undefined;
289
+ tooltipExtraContent?: import("react").ReactNode;
290
+ preventTooltipDisplay?: boolean | undefined;
211
291
  hideMissingDataConnection?: boolean | undefined;
212
292
  showMarker?: boolean | undefined;
213
293
  showMarkerLabel?: boolean | undefined;
@@ -220,9 +300,11 @@ export declare const WithinCard: ComponentStory<import("react").ForwardRefExotic
220
300
  renderAs?: import("@wonderflow/charts").LineChartRenderType | undefined;
221
301
  index: import("@wonderflow/charts").LineChartIndex;
222
302
  series: import("@wonderflow/charts").LineChartSeries;
223
- overlay?: import("@wonderflow/charts").LineChartOverlay | undefined;
303
+ overlay?: import("@wonderflow/charts").LineChartSeries | undefined;
224
304
  showAverage?: boolean | undefined;
225
- tooltip?: import("@wonderflow/charts").LineChartTooltip | undefined;
305
+ showTrendline?: boolean | undefined;
306
+ tooltipExtraContent?: import("react").ReactNode;
307
+ preventTooltipDisplay?: boolean | undefined;
226
308
  hideMissingDataConnection?: boolean | undefined;
227
309
  showMarker?: boolean | undefined;
228
310
  showMarkerLabel?: boolean | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"line-chart.stories.d.ts","sourceRoot":"","sources":["../../../../src/examples/charts/storybook/line-chart.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACjE,OAAO,EAAE,oBAAoB,EAAE,SAAS,EAAkB,MAAM,oBAAoB,CAAC;AAUrF,QAAA,MAAM,KAAK,EAAE,aAAa,CAAC,OAAO,SAAS,CA2C1C,CAAC;AAEF,eAAe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