@oliasoft-open-source/charts-library 4.7.0-beta-7 → 4.7.0-beta-9
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.
- package/dist/index.js +58 -19
- package/dist/index.js.map +1 -1
- package/dist/src/components/bar-chart/bar-chart.stories.d.ts +89 -89
- package/dist/src/components/common/common.interface.d.ts +1 -0
- package/dist/src/components/common/helpers/chart-consts.d.ts +1 -0
- package/dist/src/components/common/helpers/chart-utils.d.ts +1 -1
- package/dist/src/components/common/helpers/get-chart-annotation.d.ts +1 -0
- package/dist/src/components/common/plugins/annotation-dragger-plugin/helpers.d.ts +1 -0
- package/dist/src/components/line-chart/line-chart.interface.d.ts +1 -0
- package/dist/src/components/line-chart/line-chart.stories.d.ts +118 -104
- package/dist/src/components/line-chart/line-chart.test-case.stories.d.ts +4 -4
- package/dist/src/components/pie-chart/pie-chart.stories.d.ts +24 -24
- package/dist/src/components/scatter-chart/scatter-chart.stories.d.ts +26 -26
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare namespace _default {
|
|
2
|
-
export
|
|
2
|
+
export let title: string;
|
|
3
3
|
export { LineChart as component };
|
|
4
4
|
export namespace args {
|
|
5
5
|
export { basicChart as chart };
|
|
@@ -10,7 +10,7 @@ export function TestLegendDropzoneResizing(): import("react/jsx-runtime").JSX.El
|
|
|
10
10
|
import { LineChart } from './line-chart';
|
|
11
11
|
declare namespace basicChart {
|
|
12
12
|
namespace data {
|
|
13
|
-
|
|
13
|
+
let datasets: {
|
|
14
14
|
label: string;
|
|
15
15
|
data: {
|
|
16
16
|
x: number;
|
|
@@ -19,10 +19,10 @@ declare namespace basicChart {
|
|
|
19
19
|
}[];
|
|
20
20
|
}
|
|
21
21
|
namespace options {
|
|
22
|
-
|
|
22
|
+
let title_1: string;
|
|
23
23
|
export { title_1 as title };
|
|
24
24
|
export namespace chartStyling {
|
|
25
|
-
|
|
25
|
+
let height: string;
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare namespace _default {
|
|
2
|
-
export
|
|
2
|
+
export let title: string;
|
|
3
3
|
export { PieChart as component };
|
|
4
4
|
export namespace args {
|
|
5
5
|
export { singleChart as chart };
|
|
@@ -65,7 +65,7 @@ export namespace DoughnutFixedCutout {
|
|
|
65
65
|
}
|
|
66
66
|
export function HoverOffset(args: any): import("react/jsx-runtime").JSX.Element;
|
|
67
67
|
export namespace HoverOffset {
|
|
68
|
-
|
|
68
|
+
let args_9: {
|
|
69
69
|
chart: {
|
|
70
70
|
data: {
|
|
71
71
|
labels: string[];
|
|
@@ -101,7 +101,7 @@ import { PieChart } from './pie-chart';
|
|
|
101
101
|
declare namespace singleChart {
|
|
102
102
|
namespace data {
|
|
103
103
|
export { labels1 as labels };
|
|
104
|
-
export
|
|
104
|
+
export let datasets: {
|
|
105
105
|
label: string;
|
|
106
106
|
data: number[];
|
|
107
107
|
}[];
|
|
@@ -110,7 +110,7 @@ declare namespace singleChart {
|
|
|
110
110
|
declare namespace multiplePieData {
|
|
111
111
|
export namespace data_1 {
|
|
112
112
|
export { labels1 as labels };
|
|
113
|
-
|
|
113
|
+
let datasets_1: {
|
|
114
114
|
label: string;
|
|
115
115
|
data: number[];
|
|
116
116
|
}[];
|
|
@@ -121,7 +121,7 @@ declare namespace multiplePieData {
|
|
|
121
121
|
declare namespace stackedMultiplePieData {
|
|
122
122
|
export namespace data_2 {
|
|
123
123
|
export { labels1 as labels };
|
|
124
|
-
|
|
124
|
+
let datasets_2: {
|
|
125
125
|
label: string;
|
|
126
126
|
data: number[];
|
|
127
127
|
}[];
|
|
@@ -129,17 +129,17 @@ declare namespace stackedMultiplePieData {
|
|
|
129
129
|
}
|
|
130
130
|
export { data_2 as data };
|
|
131
131
|
export namespace options {
|
|
132
|
-
|
|
132
|
+
let title_1: string;
|
|
133
133
|
export { title_1 as title };
|
|
134
134
|
export namespace graph {
|
|
135
|
-
|
|
135
|
+
let stacked: boolean;
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
138
|
}
|
|
139
139
|
declare namespace dataLabelsChart {
|
|
140
140
|
export namespace data_3 {
|
|
141
141
|
export { labels1 as labels };
|
|
142
|
-
|
|
142
|
+
let datasets_3: {
|
|
143
143
|
label: string;
|
|
144
144
|
data: {
|
|
145
145
|
value: number;
|
|
@@ -150,10 +150,10 @@ declare namespace dataLabelsChart {
|
|
|
150
150
|
}
|
|
151
151
|
export { data_3 as data };
|
|
152
152
|
export namespace options_1 {
|
|
153
|
-
|
|
153
|
+
let title_2: string;
|
|
154
154
|
export { title_2 as title };
|
|
155
155
|
export namespace graph_1 {
|
|
156
|
-
|
|
156
|
+
let showDataLabels: boolean;
|
|
157
157
|
}
|
|
158
158
|
export { graph_1 as graph };
|
|
159
159
|
}
|
|
@@ -162,7 +162,7 @@ declare namespace dataLabelsChart {
|
|
|
162
162
|
declare namespace dataLabelsNumberChart {
|
|
163
163
|
export namespace data_4 {
|
|
164
164
|
export { labels1 as labels };
|
|
165
|
-
|
|
165
|
+
let datasets_4: {
|
|
166
166
|
label: string;
|
|
167
167
|
data: number[];
|
|
168
168
|
}[];
|
|
@@ -170,10 +170,10 @@ declare namespace dataLabelsNumberChart {
|
|
|
170
170
|
}
|
|
171
171
|
export { data_4 as data };
|
|
172
172
|
export namespace options_2 {
|
|
173
|
-
|
|
173
|
+
let title_3: string;
|
|
174
174
|
export { title_3 as title };
|
|
175
175
|
export namespace graph_2 {
|
|
176
|
-
|
|
176
|
+
let showDataLabels_1: boolean;
|
|
177
177
|
export { showDataLabels_1 as showDataLabels };
|
|
178
178
|
}
|
|
179
179
|
export { graph_2 as graph };
|
|
@@ -183,7 +183,7 @@ declare namespace dataLabelsNumberChart {
|
|
|
183
183
|
declare namespace dataLabelssTooltips {
|
|
184
184
|
export namespace data_5 {
|
|
185
185
|
export { labels1 as labels };
|
|
186
|
-
|
|
186
|
+
let datasets_5: {
|
|
187
187
|
label: string;
|
|
188
188
|
data: {
|
|
189
189
|
value: number;
|
|
@@ -194,10 +194,10 @@ declare namespace dataLabelssTooltips {
|
|
|
194
194
|
}
|
|
195
195
|
export { data_5 as data };
|
|
196
196
|
export namespace options_3 {
|
|
197
|
-
|
|
197
|
+
let title_4: string;
|
|
198
198
|
export { title_4 as title };
|
|
199
199
|
export namespace tooltip {
|
|
200
|
-
|
|
200
|
+
let showLabelsInTooltips: boolean;
|
|
201
201
|
}
|
|
202
202
|
}
|
|
203
203
|
export { options_3 as options };
|
|
@@ -205,7 +205,7 @@ declare namespace dataLabelssTooltips {
|
|
|
205
205
|
declare namespace animatedChart {
|
|
206
206
|
export namespace data_6 {
|
|
207
207
|
export { labels1 as labels };
|
|
208
|
-
|
|
208
|
+
let datasets_6: {
|
|
209
209
|
label: string;
|
|
210
210
|
data: number[];
|
|
211
211
|
}[];
|
|
@@ -214,7 +214,7 @@ declare namespace animatedChart {
|
|
|
214
214
|
export { data_6 as data };
|
|
215
215
|
export namespace options_4 {
|
|
216
216
|
namespace chartStyling {
|
|
217
|
-
|
|
217
|
+
let performanceMode: boolean;
|
|
218
218
|
}
|
|
219
219
|
}
|
|
220
220
|
export { options_4 as options };
|
|
@@ -222,7 +222,7 @@ declare namespace animatedChart {
|
|
|
222
222
|
declare namespace doughnutPercentage {
|
|
223
223
|
export namespace data_7 {
|
|
224
224
|
export { labels1 as labels };
|
|
225
|
-
|
|
225
|
+
let datasets_7: {
|
|
226
226
|
label: string;
|
|
227
227
|
data: number[];
|
|
228
228
|
}[];
|
|
@@ -230,10 +230,10 @@ declare namespace doughnutPercentage {
|
|
|
230
230
|
}
|
|
231
231
|
export { data_7 as data };
|
|
232
232
|
export namespace options_5 {
|
|
233
|
-
|
|
233
|
+
let title_5: string;
|
|
234
234
|
export { title_5 as title };
|
|
235
235
|
export namespace graph_3 {
|
|
236
|
-
|
|
236
|
+
let cutout: string;
|
|
237
237
|
}
|
|
238
238
|
export { graph_3 as graph };
|
|
239
239
|
}
|
|
@@ -242,7 +242,7 @@ declare namespace doughnutPercentage {
|
|
|
242
242
|
declare namespace doughnutNumber {
|
|
243
243
|
export namespace data_8 {
|
|
244
244
|
export { labels1 as labels };
|
|
245
|
-
|
|
245
|
+
let datasets_8: {
|
|
246
246
|
label: string;
|
|
247
247
|
data: number[];
|
|
248
248
|
}[];
|
|
@@ -250,10 +250,10 @@ declare namespace doughnutNumber {
|
|
|
250
250
|
}
|
|
251
251
|
export { data_8 as data };
|
|
252
252
|
export namespace options_6 {
|
|
253
|
-
|
|
253
|
+
let title_6: string;
|
|
254
254
|
export { title_6 as title };
|
|
255
255
|
export namespace graph_4 {
|
|
256
|
-
|
|
256
|
+
let cutout_1: number;
|
|
257
257
|
export { cutout_1 as cutout };
|
|
258
258
|
}
|
|
259
259
|
export { graph_4 as graph };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare namespace _default {
|
|
2
|
-
export
|
|
2
|
+
export let title: string;
|
|
3
3
|
export { ScatterChart as component };
|
|
4
4
|
export namespace args {
|
|
5
5
|
export { singleScatterChart as chart };
|
|
@@ -80,7 +80,7 @@ import { ScatterChart } from './scatter-chart';
|
|
|
80
80
|
declare namespace singleScatterChart {
|
|
81
81
|
namespace data {
|
|
82
82
|
export { labels1 as labels };
|
|
83
|
-
export
|
|
83
|
+
export let datasets: {
|
|
84
84
|
label: string;
|
|
85
85
|
data: {
|
|
86
86
|
x: number;
|
|
@@ -92,7 +92,7 @@ declare namespace singleScatterChart {
|
|
|
92
92
|
declare namespace styledScatterChart {
|
|
93
93
|
export namespace data_1 {
|
|
94
94
|
export { labels1 as labels };
|
|
95
|
-
|
|
95
|
+
let datasets_1: {
|
|
96
96
|
label: string;
|
|
97
97
|
data: {
|
|
98
98
|
x: number;
|
|
@@ -104,14 +104,14 @@ declare namespace styledScatterChart {
|
|
|
104
104
|
export { data_1 as data };
|
|
105
105
|
export namespace options {
|
|
106
106
|
namespace chartStyling {
|
|
107
|
-
|
|
107
|
+
let width: string;
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
declare namespace multipleScatterData {
|
|
112
112
|
export namespace data_2 {
|
|
113
113
|
export { labels1 as labels };
|
|
114
|
-
|
|
114
|
+
let datasets_2: {
|
|
115
115
|
label: string;
|
|
116
116
|
data: {
|
|
117
117
|
x: number;
|
|
@@ -125,7 +125,7 @@ declare namespace multipleScatterData {
|
|
|
125
125
|
declare namespace scatterWithDataLabels {
|
|
126
126
|
export namespace data_3 {
|
|
127
127
|
export { labels1 as labels };
|
|
128
|
-
|
|
128
|
+
let datasets_3: {
|
|
129
129
|
label: string;
|
|
130
130
|
data: {
|
|
131
131
|
x: number;
|
|
@@ -136,10 +136,10 @@ declare namespace scatterWithDataLabels {
|
|
|
136
136
|
}
|
|
137
137
|
export { data_3 as data };
|
|
138
138
|
export namespace options_1 {
|
|
139
|
-
|
|
139
|
+
let title_1: string;
|
|
140
140
|
export { title_1 as title };
|
|
141
141
|
export namespace graph {
|
|
142
|
-
|
|
142
|
+
let showDataLabels: boolean;
|
|
143
143
|
}
|
|
144
144
|
}
|
|
145
145
|
export { options_1 as options };
|
|
@@ -147,7 +147,7 @@ declare namespace scatterWithDataLabels {
|
|
|
147
147
|
declare namespace scatterWithTooltips {
|
|
148
148
|
export namespace data_4 {
|
|
149
149
|
export { labels1 as labels };
|
|
150
|
-
|
|
150
|
+
let datasets_4: {
|
|
151
151
|
label: string;
|
|
152
152
|
data: {
|
|
153
153
|
x: number;
|
|
@@ -158,12 +158,12 @@ declare namespace scatterWithTooltips {
|
|
|
158
158
|
}
|
|
159
159
|
export { data_4 as data };
|
|
160
160
|
export namespace options_2 {
|
|
161
|
-
|
|
161
|
+
let title_2: string;
|
|
162
162
|
export { title_2 as title };
|
|
163
163
|
export namespace tooltip {
|
|
164
|
-
|
|
164
|
+
let title_3: string;
|
|
165
165
|
export { title_3 as title };
|
|
166
|
-
export
|
|
166
|
+
export let showLabelsInTooltips: boolean;
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
169
|
export { options_2 as options };
|
|
@@ -171,7 +171,7 @@ declare namespace scatterWithTooltips {
|
|
|
171
171
|
declare namespace scatterWithAnnotation {
|
|
172
172
|
export namespace data_5 {
|
|
173
173
|
export { labels1 as labels };
|
|
174
|
-
|
|
174
|
+
let datasets_5: {
|
|
175
175
|
label: string;
|
|
176
176
|
data: {
|
|
177
177
|
x: number;
|
|
@@ -182,11 +182,11 @@ declare namespace scatterWithAnnotation {
|
|
|
182
182
|
}
|
|
183
183
|
export { data_5 as data };
|
|
184
184
|
export namespace options_3 {
|
|
185
|
-
|
|
185
|
+
let title_4: string;
|
|
186
186
|
export { title_4 as title };
|
|
187
187
|
export namespace annotations {
|
|
188
|
-
|
|
189
|
-
|
|
188
|
+
let showAnnotations: boolean;
|
|
189
|
+
let annotationsData: {
|
|
190
190
|
annotationAxis: string;
|
|
191
191
|
label: string;
|
|
192
192
|
value: number;
|
|
@@ -199,7 +199,7 @@ declare namespace scatterWithAnnotation {
|
|
|
199
199
|
declare namespace scatterWithAxesLabels {
|
|
200
200
|
export namespace data_6 {
|
|
201
201
|
export { labels1 as labels };
|
|
202
|
-
|
|
202
|
+
let datasets_6: {
|
|
203
203
|
label: string;
|
|
204
204
|
data: {
|
|
205
205
|
x: number;
|
|
@@ -210,13 +210,13 @@ declare namespace scatterWithAxesLabels {
|
|
|
210
210
|
}
|
|
211
211
|
export { data_6 as data };
|
|
212
212
|
export namespace options_4 {
|
|
213
|
-
|
|
213
|
+
let title_5: string;
|
|
214
214
|
export { title_5 as title };
|
|
215
215
|
export namespace axes {
|
|
216
|
-
|
|
216
|
+
let x: {
|
|
217
217
|
label: string;
|
|
218
218
|
}[];
|
|
219
|
-
|
|
219
|
+
let y: {
|
|
220
220
|
label: string;
|
|
221
221
|
}[];
|
|
222
222
|
}
|
|
@@ -225,11 +225,11 @@ declare namespace scatterWithAxesLabels {
|
|
|
225
225
|
}
|
|
226
226
|
declare namespace scatterWithGradient {
|
|
227
227
|
export namespace options_5 {
|
|
228
|
-
|
|
228
|
+
let title_6: string;
|
|
229
229
|
export { title_6 as title };
|
|
230
230
|
export namespace chartStyling_1 {
|
|
231
231
|
namespace gradient {
|
|
232
|
-
|
|
232
|
+
let display: boolean;
|
|
233
233
|
}
|
|
234
234
|
}
|
|
235
235
|
export { chartStyling_1 as chartStyling };
|
|
@@ -238,7 +238,7 @@ declare namespace scatterWithGradient {
|
|
|
238
238
|
}
|
|
239
239
|
declare namespace scatterWithDatapointsHavingLabel {
|
|
240
240
|
export namespace data_7 {
|
|
241
|
-
|
|
241
|
+
let datasets_7: {
|
|
242
242
|
label: string;
|
|
243
243
|
data: {
|
|
244
244
|
x: number;
|
|
@@ -249,10 +249,10 @@ declare namespace scatterWithDatapointsHavingLabel {
|
|
|
249
249
|
}
|
|
250
250
|
export { data_7 as data };
|
|
251
251
|
export namespace options_6 {
|
|
252
|
-
|
|
252
|
+
let title_7: string;
|
|
253
253
|
export { title_7 as title };
|
|
254
254
|
export namespace tooltip_1 {
|
|
255
|
-
|
|
255
|
+
let showLabelsInTooltips_1: boolean;
|
|
256
256
|
export { showLabelsInTooltips_1 as showLabelsInTooltips };
|
|
257
257
|
}
|
|
258
258
|
export { tooltip_1 as tooltip };
|
|
@@ -262,7 +262,7 @@ declare namespace scatterWithDatapointsHavingLabel {
|
|
|
262
262
|
declare namespace scatterWithCustomColors {
|
|
263
263
|
export namespace data_8 {
|
|
264
264
|
export { labels1 as labels };
|
|
265
|
-
|
|
265
|
+
let datasets_8: {
|
|
266
266
|
backgroundColor: string;
|
|
267
267
|
borderColor: string;
|
|
268
268
|
label: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oliasoft-open-source/charts-library",
|
|
3
|
-
"version": "4.7.0-beta-
|
|
3
|
+
"version": "4.7.0-beta-9",
|
|
4
4
|
"description": "React Chart Library (based on Chart.js and react-chart-js-2)",
|
|
5
5
|
"homepage": "https://gitlab.com/oliasoft-open-source/charts-library",
|
|
6
6
|
"resolutions": {
|