@oliasoft-open-source/charts-library 5.2.0 → 5.2.1-beta-1
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/assets/Color-YHDXOIA2-BH-AgNhy.js +1 -0
- package/dist/assets/DocsRenderer-CFRXHY34-Dx3M1XwG.js +1 -0
- package/dist/assets/bar-chart-const-DT-Qreyz.js +1 -0
- package/dist/assets/bar-chart.stories-BGngamFz.js +145 -0
- package/dist/assets/chunk-2PTXLE6R-BSsKYLj_.js +1 -0
- package/dist/assets/chunk-H6MOWX77-Ds8Hqw1O.js +1 -0
- package/dist/assets/chunk-NUUEMKO5-2vSX1C-f.js +56 -0
- package/dist/assets/chunk-PRSJUHPQ-ClaE-lMK.js +2 -0
- package/dist/assets/chunk-XP5HYGXS-DyEAuB1b.js +1 -0
- package/dist/assets/client-mhWrpqNE.js +1 -0
- package/dist/assets/components-BTILpkCb.js +1 -0
- package/dist/assets/components-BUMWgrws.js +534 -0
- package/dist/assets/docs-tools-C8juKH9v.js +8 -0
- package/dist/assets/entry-preview-D8bkngdo.js +2 -0
- package/dist/assets/entry-preview-docs-DkpGzTK0.js +48 -0
- package/dist/assets/fast-deep-equal-GJSfJzsC.js +1 -0
- package/dist/assets/get-custom-legend-plugin-example-DlEN0LEe.js +1 -0
- package/dist/assets/get-draggableData-DyVot8Zl.js +2 -0
- package/dist/assets/iframe-BC9QdfhZ.js +226 -0
- package/dist/assets/jsx-runtime-BNVfsWEC.js +1 -0
- package/dist/assets/legend-Be3VjYcC.js +1266 -0
- package/dist/assets/legend-context-Bh42wyEh.js +47 -0
- package/dist/assets/line-chart-B0hmsdC3.js +1 -0
- package/dist/assets/line-chart.stories-tGGdFPhQ.js +1162 -0
- package/dist/assets/line-chart.test-case.stories-Cv2J7QkQ.js +430 -0
- package/dist/assets/pie-chart.stories-Cmh7O_JI.js +45 -0
- package/dist/assets/preview-Ba4CwQIJ.js +1 -0
- package/dist/assets/preview-Dihi2lh7.js +3 -0
- package/dist/assets/preview-xQjOlnQG.js +1 -0
- package/dist/assets/react-18-D9p-ZSzh.js +1 -0
- package/dist/assets/react-B_00WdD4.js +1 -0
- package/dist/assets/react-CJCPsloc.js +1 -0
- package/dist/assets/react-dom-BggwCd6n.js +8 -0
- package/dist/assets/react-lj49T_jL.js +1 -0
- package/dist/assets/scatter-chart.stories-Ch-mWz43.js +41 -0
- package/dist/assets/test-utils-D1bSFP61.js +1 -0
- package/dist/bar-chart/bar-chart-const.d.ts +2 -0
- package/dist/bar-chart/bar-chart-default-props.d.ts +2 -0
- package/dist/bar-chart/bar-chart.d.ts +3 -0
- package/dist/bar-chart/bar-chart.interface.d.ts +96 -0
- package/dist/bar-chart/utils/get-bar-chart-data-labels.d.ts +10 -0
- package/dist/bar-chart/utils/get-bar-chart-scales.d.ts +3 -0
- package/dist/bar-chart/utils/get-bar-chart-tooltips.d.ts +6 -0
- package/dist/bar-chart/utils/use-bar-chart-config.d.ts +13 -0
- package/dist/bar-chart/utils/use-bar-chart-options.d.ts +55 -0
- package/dist/common/common.interface.d.ts +210 -0
- package/dist/common/controls-portal.d.ts +7 -0
- package/dist/common/enums.d.ts +10 -0
- package/dist/common/helpers/chart-border-plugin.d.ts +16 -0
- package/dist/common/helpers/chart-consts.d.ts +39 -0
- package/dist/common/helpers/chart-utils.d.ts +86 -0
- package/dist/common/helpers/container.d.ts +18 -0
- package/dist/common/helpers/custom-format-number.d.ts +1 -0
- package/dist/common/helpers/download-pgn.d.ts +3 -0
- package/dist/common/helpers/enums.d.ts +80 -0
- package/dist/common/helpers/get-chart-annotation.d.ts +91 -0
- package/dist/common/helpers/get-custom-legend-plugin-example.d.ts +8 -0
- package/dist/common/helpers/get-draggableData.d.ts +18 -0
- package/dist/common/helpers/range/estimate-data-series-have-close-values.d.ts +8 -0
- package/dist/common/helpers/range/range.d.ts +33 -0
- package/dist/common/helpers/text.d.ts +1 -0
- package/dist/common/helpers/to-annotation.d.ts +4 -0
- package/dist/common/hooks/use-generated-labels.d.ts +4 -0
- package/dist/common/hooks/use-legend-state.d.ts +28 -0
- package/dist/common/hooks/use-legend.d.ts +4 -0
- package/dist/common/hooks/use-reset.d.ts +3 -0
- package/dist/common/hooks/use-update-annotations.d.ts +7 -0
- package/dist/common/legend-component/legend-dropzone.d.ts +3 -0
- package/dist/common/legend-component/legend-interface.d.ts +48 -0
- package/dist/common/legend-component/legend-item/LegendItemLine.d.ts +5 -0
- package/dist/common/legend-component/legend-item/legend-item.d.ts +3 -0
- package/dist/common/legend-component/legend-panel.d.ts +3 -0
- package/dist/common/legend-component/legend.d.ts +3 -0
- package/dist/common/legend-component/state/legend-action-types.d.ts +3 -0
- package/dist/common/legend-component/state/legend-context.d.ts +14 -0
- package/dist/common/legend-component/state/legend-state-reducer.d.ts +30 -0
- package/dist/common/legend-component/utils/create-style-object.d.ts +27 -0
- package/dist/common/legend-component/utils/get-generated-labels.d.ts +2 -0
- package/dist/common/plugins/annotation-dragger-plugin/annotation-dragger-plugin.d.ts +15 -0
- package/dist/common/plugins/annotation-dragger-plugin/enums.d.ts +20 -0
- package/dist/common/plugins/annotation-dragger-plugin/event-helpers.d.ts +6 -0
- package/dist/common/plugins/annotation-dragger-plugin/helpers.d.ts +53 -0
- package/dist/common/plugins/annotation-dragger-plugin/point-annotation-label.d.ts +5 -0
- package/dist/common/plugins/ellipsis-annotation-plugin/compute-ellipse-geometry.d.ts +9 -0
- package/dist/common/plugins/ellipsis-annotation-plugin/ellipsis-annotation-plugin.d.ts +18 -0
- package/dist/common/plugins/gradient-background-plugin/enums.d.ts +10 -0
- package/dist/common/plugins/gradient-background-plugin/gradient-background-plugin.d.ts +2 -0
- package/dist/favicon.svg +1 -0
- package/dist/iframe.html +666 -0
- package/dist/index.html +149 -0
- package/dist/index.js +21 -4
- package/dist/index.json +1 -0
- package/dist/line-chart/constants/default-translations.d.ts +25 -0
- package/dist/line-chart/constants/line-chart-consts.d.ts +13 -0
- package/dist/line-chart/controls/axes-options/axes-options-interfaces.d.ts +57 -0
- package/dist/line-chart/controls/axes-options/axes-options.d.ts +6 -0
- package/dist/line-chart/controls/axes-options/axes-validation.d.ts +8 -0
- package/dist/line-chart/controls/controls-interfaces.d.ts +20 -0
- package/dist/line-chart/controls/controls.d.ts +3 -0
- package/dist/line-chart/controls/drag-options-interfaces.d.ts +14 -0
- package/dist/line-chart/controls/drag-options.d.ts +23 -0
- package/dist/line-chart/controls/line-options.d.ts +19 -0
- package/dist/line-chart/hooks/use-chart-functions.d.ts +33 -0
- package/dist/line-chart/hooks/use-chart-options.d.ts +16 -0
- package/dist/line-chart/hooks/use-chart-plugins.d.ts +7 -0
- package/dist/line-chart/hooks/use-chart-state.d.ts +12 -0
- package/dist/line-chart/hooks/use-toggle-handler.d.ts +12 -0
- package/dist/line-chart/initialize/config.d.ts +12 -0
- package/dist/line-chart/initialize/initialize-line-chart.d.ts +12 -0
- package/dist/line-chart/line-chart-get-default-props.d.ts +2 -0
- package/dist/line-chart/line-chart.d.ts +3 -0
- package/dist/line-chart/line-chart.interface.d.ts +150 -0
- package/dist/line-chart/plugins/chart-area-text-plugin.d.ts +17 -0
- package/dist/line-chart/plugins/line-chart.minor-gridlines-plugin.d.ts +8 -0
- package/dist/line-chart/plugins/plugin-constants.d.ts +11 -0
- package/dist/line-chart/plugins/plugins.interface.d.ts +9 -0
- package/dist/line-chart/state/action-types.d.ts +12 -0
- package/dist/line-chart/state/helpers.d.ts +13 -0
- package/dist/line-chart/state/initial-state.d.ts +11 -0
- package/dist/line-chart/state/line-chart-reducer.d.ts +2 -0
- package/dist/line-chart/state/manage-state-in-local-storage.d.ts +15 -0
- package/dist/line-chart/state/state.interfaces.d.ts +26 -0
- package/dist/line-chart/utils/axis-formatting/axis-formatting.d.ts +2 -0
- package/dist/line-chart/utils/axis-scales/axis-scales.d.ts +9 -0
- package/dist/line-chart/utils/check-custom-option/check-custom-option.d.ts +12 -0
- package/dist/line-chart/utils/datalabels-alignment/datalabels-alignment.interface.d.ts +20 -0
- package/dist/line-chart/utils/datalabels-alignment/get-alignment-condition.d.ts +8 -0
- package/dist/line-chart/utils/datalabels-alignment/get-alignment-data.d.ts +11 -0
- package/dist/line-chart/utils/datalabels-alignment/get-datalabels-position.d.ts +6 -0
- package/dist/line-chart/utils/enums.d.ts +4 -0
- package/dist/line-chart/utils/generate-line-chart-datasets.d.ts +8 -0
- package/dist/line-chart/utils/get-annotations-data.d.ts +1 -0
- package/dist/line-chart/utils/get-axes-data-from-metasets.d.ts +1 -0
- package/dist/line-chart/utils/get-axes-ranges-from-chart.d.ts +9 -0
- package/dist/line-chart/utils/get-axis-range-by-type.d.ts +10 -0
- package/dist/line-chart/utils/get-generated-labels.d.ts +2 -0
- package/dist/line-chart/utils/get-line-chart-data-labels.d.ts +16 -0
- package/dist/line-chart/utils/get-line-chart-scales.d.ts +4 -0
- package/dist/line-chart/utils/get-line-chart-tooltips.d.ts +34 -0
- package/dist/line-chart/utils/line-chart-utils.d.ts +24 -0
- package/dist/line-chart/utils/translations/get-translations.d.ts +8 -0
- package/dist/nunito-sans-bold-italic.woff2 +0 -0
- package/dist/nunito-sans-bold.woff2 +0 -0
- package/dist/nunito-sans-italic.woff2 +0 -0
- package/dist/nunito-sans-regular.woff2 +0 -0
- package/dist/pie-chart/pie-chart-defalut-props.interface.d.ts +50 -0
- package/dist/pie-chart/pie-chart-get-default-props.d.ts +3 -0
- package/dist/pie-chart/pie-chart.d.ts +3 -0
- package/dist/pie-chart/pie-chart.interface.d.ts +70 -0
- package/dist/pie-chart/use-pie-chart-config.d.ts +42 -0
- package/dist/project.json +1 -0
- package/dist/sb-addons/actions-1/manager-bundle.js +3 -0
- package/dist/sb-addons/docs-2/manager-bundle.js +242 -0
- package/dist/sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js +3 -0
- package/dist/sb-addons/storybook-dark-mode-esm-preset-3/manager-bundle.js +5 -0
- package/dist/sb-common-assets/favicon.svg +1 -0
- package/dist/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
- package/dist/sb-common-assets/nunito-sans-bold.woff2 +0 -0
- package/dist/sb-common-assets/nunito-sans-italic.woff2 +0 -0
- package/dist/sb-common-assets/nunito-sans-regular.woff2 +0 -0
- package/dist/sb-manager/globals-module-info.js +1051 -0
- package/dist/sb-manager/globals-runtime.js +41591 -0
- package/dist/sb-manager/globals.js +48 -0
- package/dist/sb-manager/runtime.js +12048 -0
- package/dist/scatter-chart/hooks/use-scatter-chart-config.d.ts +113 -0
- package/dist/scatter-chart/scatter-chart-default-props.interface.d.ts +71 -0
- package/dist/scatter-chart/scatter-chart-get-default-props.d.ts +3 -0
- package/dist/scatter-chart/scatter-chart.d.ts +3 -0
- package/dist/scatter-chart/scatter-chart.interface.d.ts +81 -0
- package/dist/scatter-chart/utils/get-scales-config.d.ts +49 -0
- package/dist/scatter-chart/utils/get-tooltip-config.d.ts +21 -0
- package/package.json +1 -1
package/dist/index.html
ADDED
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
|
|
6
|
+
<title>@storybook/core - Storybook</title>
|
|
7
|
+
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
<link rel="icon" type="image/svg+xml" href="./favicon.svg" />
|
|
11
|
+
|
|
12
|
+
<style>
|
|
13
|
+
@font-face {
|
|
14
|
+
font-family: 'Nunito Sans';
|
|
15
|
+
font-style: normal;
|
|
16
|
+
font-weight: 400;
|
|
17
|
+
font-display: swap;
|
|
18
|
+
src: url('./sb-common-assets/nunito-sans-regular.woff2') format('woff2');
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@font-face {
|
|
22
|
+
font-family: 'Nunito Sans';
|
|
23
|
+
font-style: italic;
|
|
24
|
+
font-weight: 400;
|
|
25
|
+
font-display: swap;
|
|
26
|
+
src: url('./sb-common-assets/nunito-sans-italic.woff2') format('woff2');
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@font-face {
|
|
30
|
+
font-family: 'Nunito Sans';
|
|
31
|
+
font-style: normal;
|
|
32
|
+
font-weight: 700;
|
|
33
|
+
font-display: swap;
|
|
34
|
+
src: url('./sb-common-assets/nunito-sans-bold.woff2') format('woff2');
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
@font-face {
|
|
38
|
+
font-family: 'Nunito Sans';
|
|
39
|
+
font-style: italic;
|
|
40
|
+
font-weight: 700;
|
|
41
|
+
font-display: swap;
|
|
42
|
+
src: url('./sb-common-assets/nunito-sans-bold-italic.woff2') format('woff2');
|
|
43
|
+
}
|
|
44
|
+
</style>
|
|
45
|
+
|
|
46
|
+
<link href="./sb-manager/runtime.js" rel="modulepreload" />
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
<link href="./sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js" rel="modulepreload" />
|
|
50
|
+
|
|
51
|
+
<link href="./sb-addons/actions-1/manager-bundle.js" rel="modulepreload" />
|
|
52
|
+
|
|
53
|
+
<link href="./sb-addons/docs-2/manager-bundle.js" rel="modulepreload" />
|
|
54
|
+
|
|
55
|
+
<link href="./sb-addons/storybook-dark-mode-esm-preset-3/manager-bundle.js" rel="modulepreload" />
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
<style>
|
|
59
|
+
#storybook-root[hidden] {
|
|
60
|
+
display: none !important;
|
|
61
|
+
}
|
|
62
|
+
</style>
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
</head>
|
|
66
|
+
<body>
|
|
67
|
+
<div id="root"></div>
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
<script>
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
window['FEATURES'] = {
|
|
74
|
+
"argTypeTargetsV7": true,
|
|
75
|
+
"legacyDecoratorFileOrder": false,
|
|
76
|
+
"disallowImplicitActionsInRenderV8": true
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
window['REFS'] = {};
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
window['LOGLEVEL'] = "info";
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
window['DOCS_OPTIONS'] = {
|
|
90
|
+
"defaultName": "Docs",
|
|
91
|
+
"autodocs": true
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
window['CONFIG_TYPE'] = "PRODUCTION";
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
window['TAGS_OPTIONS'] = {
|
|
105
|
+
"dev-only": {
|
|
106
|
+
"excludeFromDocsStories": true
|
|
107
|
+
},
|
|
108
|
+
"docs-only": {
|
|
109
|
+
"excludeFromSidebar": true
|
|
110
|
+
},
|
|
111
|
+
"test-only": {
|
|
112
|
+
"excludeFromSidebar": true,
|
|
113
|
+
"excludeFromDocsStories": true
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
window['STORYBOOK_RENDERER'] = "react";
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
window['STORYBOOK_BUILDER'] = "@storybook/builder-vite";
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
window['STORYBOOK_FRAMEWORK'] = "@storybook/react-vite";
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
</script>
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
<script type="module">
|
|
134
|
+
import './sb-manager/globals-runtime.js';
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
import './sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js';
|
|
138
|
+
|
|
139
|
+
import './sb-addons/actions-1/manager-bundle.js';
|
|
140
|
+
|
|
141
|
+
import './sb-addons/docs-2/manager-bundle.js';
|
|
142
|
+
|
|
143
|
+
import './sb-addons/storybook-dark-mode-esm-preset-3/manager-bundle.js';
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
import './sb-manager/runtime.js';
|
|
147
|
+
</script>
|
|
148
|
+
</body>
|
|
149
|
+
</html>
|
package/dist/index.js
CHANGED
|
@@ -21974,7 +21974,7 @@ const downloadPgn = (chartRef) => {
|
|
|
21974
21974
|
console.error("Could not parse the html: ", e);
|
|
21975
21975
|
});
|
|
21976
21976
|
};
|
|
21977
|
-
var
|
|
21977
|
+
var require_object_hash = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
21978
21978
|
(function(e) {
|
|
21979
21979
|
var t;
|
|
21980
21980
|
"object" == typeof exports ? module.exports = e() : "function" == typeof define && define.amd ? define(e) : ("undefined" != typeof window ? t = window : "undefined" != typeof global ? t = global : "undefined" != typeof self && (t = self), t.objectHash = e());
|
|
@@ -22904,7 +22904,8 @@ var import_object_hash = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(
|
|
|
22904
22904
|
}]
|
|
22905
22905
|
}, {}, [1])(1);
|
|
22906
22906
|
});
|
|
22907
|
-
}))
|
|
22907
|
+
}));
|
|
22908
|
+
var import_object_hash$1 = /* @__PURE__ */ __toESM(require_object_hash(), 1);
|
|
22908
22909
|
const isLessThanMax = (value, max) => {
|
|
22909
22910
|
return value === void 0 || max === void 0 || Number(value) < Number(max);
|
|
22910
22911
|
};
|
|
@@ -22919,7 +22920,7 @@ const getAxisTypeFromKey = (string) => {
|
|
|
22919
22920
|
};
|
|
22920
22921
|
const isPrimitiveValue = (value) => typeof value === "string" || typeof value === "number" || typeof value === "boolean" || value === null;
|
|
22921
22922
|
const getChartKey = (state, languageKey) => {
|
|
22922
|
-
return (0, import_object_hash.default)({
|
|
22923
|
+
return (0, import_object_hash$1.default)({
|
|
22923
22924
|
state,
|
|
22924
22925
|
languageKey
|
|
22925
22926
|
}, { unorderedObjects: true });
|
|
@@ -25115,13 +25116,29 @@ const getGeneratedLabels = (chart$4) => {
|
|
|
25115
25116
|
} : el;
|
|
25116
25117
|
});
|
|
25117
25118
|
};
|
|
25119
|
+
var import_object_hash = /* @__PURE__ */ __toESM(require_object_hash(), 1);
|
|
25120
|
+
var EXCLUDED_KEYS = new Set([
|
|
25121
|
+
"data",
|
|
25122
|
+
"_meta",
|
|
25123
|
+
"_parsed",
|
|
25124
|
+
"_chart",
|
|
25125
|
+
"_ctx"
|
|
25126
|
+
]);
|
|
25118
25127
|
const useGeneratedLabels = (chartRef, generatedDatasets) => {
|
|
25119
25128
|
const [items, setItems] = useState([]);
|
|
25120
25129
|
useEffect(() => {
|
|
25121
25130
|
const chart$4 = chartRef?.current;
|
|
25122
25131
|
if (!chart$4) return;
|
|
25123
25132
|
setItems(getGeneratedLabels(chart$4));
|
|
25124
|
-
}, [
|
|
25133
|
+
}, [useMemo(() => {
|
|
25134
|
+
if (!generatedDatasets?.length) return "";
|
|
25135
|
+
return (0, import_object_hash.default)(generatedDatasets, {
|
|
25136
|
+
excludeKeys: (key) => EXCLUDED_KEYS.has(key),
|
|
25137
|
+
unorderedObjects: true,
|
|
25138
|
+
unorderedArrays: false,
|
|
25139
|
+
respectType: false
|
|
25140
|
+
});
|
|
25141
|
+
}, [generatedDatasets]), chartRef]);
|
|
25125
25142
|
return items;
|
|
25126
25143
|
};
|
|
25127
25144
|
const createLegendStyle = (legendPosition, chart$4) => {
|
package/dist/index.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"v":5,"entries":{"barchart--docs":{"id":"barchart--docs","title":"BarChart","name":"Docs","importPath":"./src/components/bar-chart/bar-chart.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"barchart--default":{"type":"story","id":"barchart--default","name":"Default","title":"BarChart","importPath":"./src/components/bar-chart/bar-chart.stories.jsx","componentPath":"./src/components/bar-chart/bar-chart.tsx","tags":["dev","test","autodocs"]},"barchart--custom-colors":{"type":"story","id":"barchart--custom-colors","name":"Custom Colors","title":"BarChart","importPath":"./src/components/bar-chart/bar-chart.stories.jsx","componentPath":"./src/components/bar-chart/bar-chart.tsx","tags":["dev","test","autodocs"]},"barchart--custom-colors-array":{"type":"story","id":"barchart--custom-colors-array","name":"Custom Colors Array","title":"BarChart","importPath":"./src/components/bar-chart/bar-chart.stories.jsx","componentPath":"./src/components/bar-chart/bar-chart.tsx","tags":["dev","test","autodocs"]},"barchart--multiple-sets":{"type":"story","id":"barchart--multiple-sets","name":"Multiple Sets","title":"BarChart","importPath":"./src/components/bar-chart/bar-chart.stories.jsx","componentPath":"./src/components/bar-chart/bar-chart.tsx","tags":["dev","test","autodocs"]},"barchart--stacked":{"type":"story","id":"barchart--stacked","name":"Stacked","title":"BarChart","importPath":"./src/components/bar-chart/bar-chart.stories.jsx","componentPath":"./src/components/bar-chart/bar-chart.tsx","tags":["dev","test","autodocs"]},"barchart--stacked-grouped":{"type":"story","id":"barchart--stacked-grouped","name":"Stacked Grouped","title":"BarChart","importPath":"./src/components/bar-chart/bar-chart.stories.jsx","componentPath":"./src/components/bar-chart/bar-chart.tsx","tags":["dev","test","autodocs"]},"barchart--multiple-y-axes":{"type":"story","id":"barchart--multiple-y-axes","name":"Multiple Y Axes","title":"BarChart","importPath":"./src/components/bar-chart/bar-chart.stories.jsx","componentPath":"./src/components/bar-chart/bar-chart.tsx","tags":["dev","test","autodocs"]},"barchart--horizontal":{"type":"story","id":"barchart--horizontal","name":"Horizontal","title":"BarChart","importPath":"./src/components/bar-chart/bar-chart.stories.jsx","componentPath":"./src/components/bar-chart/bar-chart.tsx","tags":["dev","test","autodocs"]},"barchart--reversed":{"type":"story","id":"barchart--reversed","name":"Reversed","title":"BarChart","importPath":"./src/components/bar-chart/bar-chart.stories.jsx","componentPath":"./src/components/bar-chart/bar-chart.tsx","tags":["dev","test","autodocs"]},"barchart--horizontal-reversed":{"type":"story","id":"barchart--horizontal-reversed","name":"Horizontal Reversed","title":"BarChart","importPath":"./src/components/bar-chart/bar-chart.stories.jsx","componentPath":"./src/components/bar-chart/bar-chart.tsx","tags":["dev","test","autodocs"]},"barchart--axes-labels":{"type":"story","id":"barchart--axes-labels","name":"Axes Labels","title":"BarChart","importPath":"./src/components/bar-chart/bar-chart.stories.jsx","componentPath":"./src/components/bar-chart/bar-chart.tsx","tags":["dev","test","autodocs"]},"barchart--axes-positions":{"type":"story","id":"barchart--axes-positions","name":"Axes Positions","title":"BarChart","importPath":"./src/components/bar-chart/bar-chart.stories.jsx","componentPath":"./src/components/bar-chart/bar-chart.tsx","tags":["dev","test","autodocs"]},"barchart--non-zero-start":{"type":"story","id":"barchart--non-zero-start","name":"Non Zero Start","title":"BarChart","importPath":"./src/components/bar-chart/bar-chart.stories.jsx","componentPath":"./src/components/bar-chart/bar-chart.tsx","tags":["dev","test","autodocs"]},"barchart--custom-range":{"type":"story","id":"barchart--custom-range","name":"Custom Range","title":"BarChart","importPath":"./src/components/bar-chart/bar-chart.stories.jsx","componentPath":"./src/components/bar-chart/bar-chart.tsx","tags":["dev","test","autodocs"]},"barchart--custom-step-size":{"type":"story","id":"barchart--custom-step-size","name":"Custom Step Size","title":"BarChart","importPath":"./src/components/bar-chart/bar-chart.stories.jsx","componentPath":"./src/components/bar-chart/bar-chart.tsx","tags":["dev","test","autodocs"]},"barchart--logarithmic-scale":{"type":"story","id":"barchart--logarithmic-scale","name":"Logarithmic Scale","title":"BarChart","importPath":"./src/components/bar-chart/bar-chart.stories.jsx","componentPath":"./src/components/bar-chart/bar-chart.tsx","tags":["dev","test","autodocs"]},"barchart--datalabels":{"type":"story","id":"barchart--datalabels","name":"Datalabels","title":"BarChart","importPath":"./src/components/bar-chart/bar-chart.stories.jsx","componentPath":"./src/components/bar-chart/bar-chart.tsx","tags":["dev","test","autodocs"]},"barchart--legend-on-right":{"type":"story","id":"barchart--legend-on-right","name":"Legend On Right","title":"BarChart","importPath":"./src/components/bar-chart/bar-chart.stories.jsx","componentPath":"./src/components/bar-chart/bar-chart.tsx","tags":["dev","test","autodocs"]},"barchart--border":{"type":"story","id":"barchart--border","name":"Border","title":"BarChart","importPath":"./src/components/bar-chart/bar-chart.stories.jsx","componentPath":"./src/components/bar-chart/bar-chart.tsx","tags":["dev","test","autodocs"]},"barchart--annotation-y-axis":{"type":"story","id":"barchart--annotation-y-axis","name":"Annotation Y Axis","title":"BarChart","importPath":"./src/components/bar-chart/bar-chart.stories.jsx","componentPath":"./src/components/bar-chart/bar-chart.tsx","tags":["dev","test","autodocs"]},"barchart--annotation-x-axis":{"type":"story","id":"barchart--annotation-x-axis","name":"Annotation X Axis","title":"BarChart","importPath":"./src/components/bar-chart/bar-chart.stories.jsx","componentPath":"./src/components/bar-chart/bar-chart.tsx","tags":["dev","test","autodocs"]},"barchart--annotation-diagonal":{"type":"story","id":"barchart--annotation-diagonal","name":"Annotation Diagonal","title":"BarChart","importPath":"./src/components/bar-chart/bar-chart.stories.jsx","componentPath":"./src/components/bar-chart/bar-chart.tsx","tags":["dev","test","autodocs"]},"barchart--annotations-in-legend":{"type":"story","id":"barchart--annotations-in-legend","name":"Annotations In Legend","title":"BarChart","importPath":"./src/components/bar-chart/bar-chart.stories.jsx","componentPath":"./src/components/bar-chart/bar-chart.tsx","tags":["dev","test","autodocs"]},"barchart--animated":{"type":"story","id":"barchart--animated","name":"Animated","title":"BarChart","importPath":"./src/components/bar-chart/bar-chart.stories.jsx","componentPath":"./src/components/bar-chart/bar-chart.tsx","tags":["dev","test","autodocs"]},"barchart--custom-legend":{"type":"story","id":"barchart--custom-legend","name":"Custom Legend","title":"BarChart","importPath":"./src/components/bar-chart/bar-chart.stories.jsx","componentPath":"./src/components/bar-chart/bar-chart.tsx","tags":["dev","test","autodocs"]},"barchart--drag-data-chart":{"type":"story","id":"barchart--drag-data-chart","name":"Drag Data Chart","title":"BarChart","importPath":"./src/components/bar-chart/bar-chart.stories.jsx","componentPath":"./src/components/bar-chart/bar-chart.tsx","tags":["dev","test","autodocs"]},"barchart--pretty-labels-tooltips":{"type":"story","id":"barchart--pretty-labels-tooltips","name":"Pretty Labels Tooltips","title":"BarChart","importPath":"./src/components/bar-chart/bar-chart.stories.jsx","componentPath":"./src/components/bar-chart/bar-chart.tsx","tags":["dev","test","autodocs"]},"barchart--stacked-selected-axis":{"type":"story","id":"barchart--stacked-selected-axis","name":"Stacked Selected Axis","title":"BarChart","importPath":"./src/components/bar-chart/bar-chart.stories.jsx","componentPath":"./src/components/bar-chart/bar-chart.tsx","tags":["dev","test","autodocs"]},"barchart--waterfall-chart":{"type":"story","id":"barchart--waterfall-chart","name":"Waterfall Chart","title":"BarChart","importPath":"./src/components/bar-chart/bar-chart.stories.jsx","componentPath":"./src/components/bar-chart/bar-chart.tsx","tags":["dev","test","autodocs"]},"barchart--controls-portal":{"type":"story","id":"barchart--controls-portal","name":"Controls Portal","title":"BarChart","importPath":"./src/components/bar-chart/bar-chart.stories.jsx","componentPath":"./src/components/bar-chart/bar-chart.tsx","tags":["dev","test","autodocs"]},"linechart--docs":{"id":"linechart--docs","title":"LineChart","name":"Docs","importPath":"./src/components/line-chart/line-chart.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"linechart--default":{"type":"story","id":"linechart--default","name":"Default","title":"LineChart","importPath":"./src/components/line-chart/line-chart.stories.jsx","componentPath":"./src/components/line-chart/line-chart.tsx","tags":["dev","test","autodocs"]},"linechart--hide-dataset-in-legend":{"type":"story","id":"linechart--hide-dataset-in-legend","name":"Hide Dataset In Legend","title":"LineChart","importPath":"./src/components/line-chart/line-chart.stories.jsx","componentPath":"./src/components/line-chart/line-chart.tsx","tags":["dev","test","autodocs"]},"linechart--one-point":{"type":"story","id":"linechart--one-point","name":"One Point","title":"LineChart","importPath":"./src/components/line-chart/line-chart.stories.jsx","componentPath":"./src/components/line-chart/line-chart.tsx","tags":["dev","test","autodocs"]},"linechart--point-styles":{"type":"story","id":"linechart--point-styles","name":"Point Styles","title":"LineChart","importPath":"./src/components/line-chart/line-chart.stories.jsx","componentPath":"./src/components/line-chart/line-chart.tsx","tags":["dev","test","autodocs"]},"linechart--line-styles":{"type":"story","id":"linechart--line-styles","name":"Line Styles","title":"LineChart","importPath":"./src/components/line-chart/line-chart.stories.jsx","componentPath":"./src/components/line-chart/line-chart.tsx","tags":["dev","test","autodocs"]},"linechart--fill-container":{"type":"story","id":"linechart--fill-container","name":"Fill Container","title":"LineChart","importPath":"./src/components/line-chart/line-chart.stories.jsx","componentPath":"./src/components/line-chart/line-chart.tsx","tags":["dev","test","autodocs"]},"linechart--auto-axis-padding":{"type":"story","id":"linechart--auto-axis-padding","name":"Auto Axis Padding","title":"LineChart","importPath":"./src/components/line-chart/line-chart.stories.jsx","componentPath":"./src/components/line-chart/line-chart.tsx","tags":["dev","test","autodocs"]},"linechart--no-title":{"type":"story","id":"linechart--no-title","name":"No Title","title":"LineChart","importPath":"./src/components/line-chart/line-chart.stories.jsx","componentPath":"./src/components/line-chart/line-chart.tsx","tags":["dev","test","autodocs"]},"linechart--data-gaps":{"type":"story","id":"linechart--data-gaps","name":"Data Gaps","title":"LineChart","importPath":"./src/components/line-chart/line-chart.stories.jsx","componentPath":"./src/components/line-chart/line-chart.tsx","tags":["dev","test","autodocs"]},"linechart--tooltip-units":{"type":"story","id":"linechart--tooltip-units","name":"Tooltip Units","title":"LineChart","importPath":"./src/components/line-chart/line-chart.stories.jsx","componentPath":"./src/components/line-chart/line-chart.tsx","tags":["dev","test","autodocs"]},"linechart--minor-gridlines":{"type":"story","id":"linechart--minor-gridlines","name":"Minor Gridlines","title":"LineChart","importPath":"./src/components/line-chart/line-chart.stories.jsx","componentPath":"./src/components/line-chart/line-chart.tsx","tags":["dev","test","autodocs"]},"linechart--axes-labels":{"type":"story","id":"linechart--axes-labels","name":"Axes Labels","title":"LineChart","importPath":"./src/components/line-chart/line-chart.stories.jsx","componentPath":"./src/components/line-chart/line-chart.tsx","tags":["dev","test","autodocs"]},"linechart--multiple-y-axes":{"type":"story","id":"linechart--multiple-y-axes","name":"Multiple Y Axes","title":"LineChart","importPath":"./src/components/line-chart/line-chart.stories.jsx","componentPath":"./src/components/line-chart/line-chart.tsx","tags":["dev","test","autodocs"]},"linechart--multiple-x-axes":{"type":"story","id":"linechart--multiple-x-axes","name":"Multiple X Axes","title":"LineChart","importPath":"./src/components/line-chart/line-chart.stories.jsx","componentPath":"./src/components/line-chart/line-chart.tsx","tags":["dev","test","autodocs"]},"linechart--reversed-y-axis":{"type":"story","id":"linechart--reversed-y-axis","name":"Reversed Y Axis","title":"LineChart","importPath":"./src/components/line-chart/line-chart.stories.jsx","componentPath":"./src/components/line-chart/line-chart.tsx","tags":["dev","test","autodocs"]},"linechart--logarithmic-scale":{"type":"story","id":"linechart--logarithmic-scale","name":"Logarithmic Scale","title":"LineChart","importPath":"./src/components/line-chart/line-chart.stories.jsx","componentPath":"./src/components/line-chart/line-chart.tsx","tags":["dev","test","autodocs"]},"linechart--preset-range":{"type":"story","id":"linechart--preset-range","name":"Preset Range","title":"LineChart","importPath":"./src/components/line-chart/line-chart.stories.jsx","componentPath":"./src/components/line-chart/line-chart.tsx","tags":["dev","test","autodocs"]},"linechart--data-labels":{"type":"story","id":"linechart--data-labels","name":"Data Labels","title":"LineChart","importPath":"./src/components/line-chart/line-chart.stories.jsx","componentPath":"./src/components/line-chart/line-chart.tsx","tags":["dev","test","autodocs"]},"linechart--data-labels-in-tooltips":{"type":"story","id":"linechart--data-labels-in-tooltips","name":"Data Labels In Tooltips","title":"LineChart","importPath":"./src/components/line-chart/line-chart.stories.jsx","componentPath":"./src/components/line-chart/line-chart.tsx","tags":["dev","test","autodocs"]},"linechart--legend-on-right":{"type":"story","id":"linechart--legend-on-right","name":"Legend On Right","title":"LineChart","importPath":"./src/components/line-chart/line-chart.stories.jsx","componentPath":"./src/components/line-chart/line-chart.tsx","tags":["dev","test","autodocs"]},"linechart--hide-legend":{"type":"story","id":"linechart--hide-legend","name":"Hide Legend","title":"LineChart","importPath":"./src/components/line-chart/line-chart.stories.jsx","componentPath":"./src/components/line-chart/line-chart.tsx","tags":["dev","test","autodocs"]},"linechart--annotations":{"type":"story","id":"linechart--annotations","name":"Annotations","title":"LineChart","importPath":"./src/components/line-chart/line-chart.stories.jsx","componentPath":"./src/components/line-chart/line-chart.tsx","tags":["dev","test","autodocs"]},"linechart--annotations-box":{"type":"story","id":"linechart--annotations-box","name":"Annotations Box","title":"LineChart","importPath":"./src/components/line-chart/line-chart.stories.jsx","componentPath":"./src/components/line-chart/line-chart.tsx","tags":["dev","test","autodocs"]},"linechart--annotations-ellipse":{"type":"story","id":"linechart--annotations-ellipse","name":"Annotations Ellipse","title":"LineChart","importPath":"./src/components/line-chart/line-chart.stories.jsx","componentPath":"./src/components/line-chart/line-chart.tsx","tags":["dev","test","autodocs"]},"linechart--annotations-point":{"type":"story","id":"linechart--annotations-point","name":"Annotations Point","title":"LineChart","importPath":"./src/components/line-chart/line-chart.stories.jsx","componentPath":"./src/components/line-chart/line-chart.tsx","tags":["dev","test","autodocs"]},"linechart--annotations-in-legend":{"type":"story","id":"linechart--annotations-in-legend","name":"Annotations In Legend","title":"LineChart","importPath":"./src/components/line-chart/line-chart.stories.jsx","componentPath":"./src/components/line-chart/line-chart.tsx","tags":["dev","test","autodocs"]},"linechart--custom-legend":{"type":"story","id":"linechart--custom-legend","name":"Custom Legend","title":"LineChart","importPath":"./src/components/line-chart/line-chart.stories.jsx","componentPath":"./src/components/line-chart/line-chart.tsx","tags":["dev","test","autodocs"]},"linechart--animation":{"type":"story","id":"linechart--animation","name":"Animation","title":"LineChart","importPath":"./src/components/line-chart/line-chart.stories.jsx","componentPath":"./src/components/line-chart/line-chart.tsx","tags":["dev","test","autodocs"]},"linechart--square-aspect-ratio":{"type":"story","id":"linechart--square-aspect-ratio","name":"Square Aspect Ratio","title":"LineChart","importPath":"./src/components/line-chart/line-chart.stories.jsx","componentPath":"./src/components/line-chart/line-chart.tsx","tags":["dev","test","autodocs"]},"linechart--header-component-no-title":{"type":"story","id":"linechart--header-component-no-title","name":"Header Component No Title","title":"LineChart","importPath":"./src/components/line-chart/line-chart.stories.jsx","componentPath":"./src/components/line-chart/line-chart.tsx","tags":["dev","test","autodocs"]},"linechart--header-component-with-title":{"type":"story","id":"linechart--header-component-with-title","name":"Header Component With Title","title":"LineChart","importPath":"./src/components/line-chart/line-chart.stories.jsx","componentPath":"./src/components/line-chart/line-chart.tsx","tags":["dev","test","autodocs"]},"linechart--subheader-component":{"type":"story","id":"linechart--subheader-component","name":"Subheader Component","title":"LineChart","importPath":"./src/components/line-chart/line-chart.stories.jsx","componentPath":"./src/components/line-chart/line-chart.tsx","tags":["dev","test","autodocs"]},"linechart--controls-portal":{"type":"story","id":"linechart--controls-portal","name":"Controls Portal","title":"LineChart","importPath":"./src/components/line-chart/line-chart.stories.jsx","componentPath":"./src/components/line-chart/line-chart.tsx","tags":["dev","test","autodocs"]},"linechart--with-table":{"type":"story","id":"linechart--with-table","name":"With Table","title":"LineChart","importPath":"./src/components/line-chart/line-chart.stories.jsx","componentPath":"./src/components/line-chart/line-chart.tsx","tags":["dev","test","autodocs"]},"linechart--square-aspect-ratio-fill-container":{"type":"story","id":"linechart--square-aspect-ratio-fill-container","name":"Square Aspect Ratio Fill Container","title":"LineChart","importPath":"./src/components/line-chart/line-chart.stories.jsx","componentPath":"./src/components/line-chart/line-chart.tsx","tags":["dev","test","autodocs"]},"linechart--on-point-hover":{"type":"story","id":"linechart--on-point-hover","name":"On Point Hover","title":"LineChart","importPath":"./src/components/line-chart/line-chart.stories.jsx","componentPath":"./src/components/line-chart/line-chart.tsx","tags":["dev","test","autodocs"]},"linechart--zero-values":{"type":"story","id":"linechart--zero-values","name":"Zero Values","title":"LineChart","importPath":"./src/components/line-chart/line-chart.stories.jsx","componentPath":"./src/components/line-chart/line-chart.tsx","tags":["dev","test","autodocs"]},"linechart--similar-values":{"type":"story","id":"linechart--similar-values","name":"Similar Values","title":"LineChart","importPath":"./src/components/line-chart/line-chart.stories.jsx","componentPath":"./src/components/line-chart/line-chart.tsx","tags":["dev","test","autodocs"]},"linechart--hide-irregular-major-axis-ticks":{"type":"story","id":"linechart--hide-irregular-major-axis-ticks","name":"Hide Irregular Major Axis Ticks","title":"LineChart","importPath":"./src/components/line-chart/line-chart.stories.jsx","componentPath":"./src/components/line-chart/line-chart.tsx","tags":["dev","test","autodocs"]},"linechart--test-number-separators":{"type":"story","id":"linechart--test-number-separators","name":"Test Number Separators","title":"LineChart","importPath":"./src/components/line-chart/line-chart.stories.jsx","componentPath":"./src/components/line-chart/line-chart.tsx","tags":["dev","test","autodocs"]},"linechart--performance-test-case":{"type":"story","id":"linechart--performance-test-case","name":"Performance Test Case","title":"LineChart","importPath":"./src/components/line-chart/line-chart.stories.jsx","componentPath":"./src/components/line-chart/line-chart.tsx","tags":["dev","test","autodocs"]},"linechart--extra-test-cases":{"type":"story","id":"linechart--extra-test-cases","name":"Extra Test Cases","title":"LineChart","importPath":"./src/components/line-chart/line-chart.stories.jsx","componentPath":"./src/components/line-chart/line-chart.tsx","tags":["dev","test","autodocs"]},"linechart--axis-label-format-test-cases":{"type":"story","id":"linechart--axis-label-format-test-cases","name":"Axis Label Format Test Cases","title":"LineChart","importPath":"./src/components/line-chart/line-chart.stories.jsx","componentPath":"./src/components/line-chart/line-chart.tsx","tags":["dev","test","autodocs"]},"linechart--data-set-with-toggle":{"type":"story","id":"linechart--data-set-with-toggle","name":"Data Set With Toggle","title":"LineChart","importPath":"./src/components/line-chart/line-chart.stories.jsx","componentPath":"./src/components/line-chart/line-chart.tsx","tags":["dev","test","autodocs"]},"linechart--axes-depth-types":{"type":"story","id":"linechart--axes-depth-types","name":"Axes Depth Types","title":"LineChart","importPath":"./src/components/line-chart/line-chart.stories.jsx","componentPath":"./src/components/line-chart/line-chart.tsx","tags":["dev","test","autodocs"]},"linechart--drag-data-chart":{"type":"story","id":"linechart--drag-data-chart","name":"Drag Data Chart","title":"LineChart","importPath":"./src/components/line-chart/line-chart.stories.jsx","componentPath":"./src/components/line-chart/line-chart.tsx","tags":["dev","test","autodocs"]},"linechart--storage-state":{"type":"story","id":"linechart--storage-state","name":"Storage State","title":"LineChart","importPath":"./src/components/line-chart/line-chart.stories.jsx","componentPath":"./src/components/line-chart/line-chart.tsx","tags":["dev","test","autodocs"]},"linechart--with-translations":{"type":"story","id":"linechart--with-translations","name":"With Translations","title":"LineChart","importPath":"./src/components/line-chart/line-chart.stories.jsx","componentPath":"./src/components/line-chart/line-chart.tsx","tags":["dev","test","autodocs"]},"linechart--test-long-tooltip":{"type":"story","id":"linechart--test-long-tooltip","name":"Test Long Tooltip","title":"LineChart","importPath":"./src/components/line-chart/line-chart.stories.jsx","componentPath":"./src/components/line-chart/line-chart.tsx","tags":["dev","test","autodocs"]},"linechart--test-many-lines":{"type":"story","id":"linechart--test-many-lines","name":"Test Many Lines","title":"LineChart","importPath":"./src/components/line-chart/line-chart.stories.jsx","componentPath":"./src/components/line-chart/line-chart.tsx","tags":["dev","test","autodocs"]},"linechart--test-long-legend-labels":{"type":"story","id":"linechart--test-long-legend-labels","name":"Test Long Legend Labels","title":"LineChart","importPath":"./src/components/line-chart/line-chart.stories.jsx","componentPath":"./src/components/line-chart/line-chart.tsx","tags":["dev","test","autodocs"]},"linechart--test-resizing-container":{"type":"story","id":"linechart--test-resizing-container","name":"Test Resizing Container","title":"LineChart","importPath":"./src/components/line-chart/line-chart.stories.jsx","componentPath":"./src/components/line-chart/line-chart.tsx","tags":["dev","test","autodocs"]},"linechart--partial-range":{"type":"story","id":"linechart--partial-range","name":"Partial Range","title":"LineChart","importPath":"./src/components/line-chart/line-chart.stories.jsx","componentPath":"./src/components/line-chart/line-chart.tsx","tags":["dev","test","autodocs"]},"linechart--combining-types":{"type":"story","id":"linechart--combining-types","name":"Combining Types","title":"LineChart","importPath":"./src/components/line-chart/line-chart.stories.jsx","componentPath":"./src/components/line-chart/line-chart.tsx","tags":["dev","test","autodocs"]},"linechart--external-select":{"type":"story","id":"linechart--external-select","name":"External Select","title":"LineChart","importPath":"./src/components/line-chart/line-chart.stories.jsx","componentPath":"./src/components/line-chart/line-chart.tsx","tags":["dev","test","autodocs"]},"linechart--set-ds-dynamically":{"type":"story","id":"linechart--set-ds-dynamically","name":"Set DS Dynamically","title":"LineChart","importPath":"./src/components/line-chart/line-chart.stories.jsx","componentPath":"./src/components/line-chart/line-chart.tsx","tags":["dev","test","autodocs"]},"linechart--empty-ds":{"type":"story","id":"linechart--empty-ds","name":"Empty DS","title":"LineChart","importPath":"./src/components/line-chart/line-chart.stories.jsx","componentPath":"./src/components/line-chart/line-chart.tsx","tags":["dev","test","autodocs"]},"linechart--tension":{"type":"story","id":"linechart--tension","name":"Tension","title":"LineChart","importPath":"./src/components/line-chart/line-chart.stories.jsx","componentPath":"./src/components/line-chart/line-chart.tsx","tags":["dev","test","autodocs"]},"linechart--separate-tensions-for-d-ss":{"type":"story","id":"linechart--separate-tensions-for-d-ss","name":"Separate Tensions For D Ss","title":"LineChart","importPath":"./src/components/line-chart/line-chart.stories.jsx","componentPath":"./src/components/line-chart/line-chart.tsx","tags":["dev","test","autodocs"]},"linechart--test-custom-line-points-logic":{"type":"story","id":"linechart--test-custom-line-points-logic","name":"Test Custom Line Points Logic","title":"LineChart","importPath":"./src/components/line-chart/line-chart.stories.jsx","componentPath":"./src/components/line-chart/line-chart.tsx","tags":["dev","test","autodocs"]},"linechart--manage-annotation-externally":{"type":"story","id":"linechart--manage-annotation-externally","name":"Manage Annotation Externally","title":"LineChart","importPath":"./src/components/line-chart/line-chart.stories.jsx","componentPath":"./src/components/line-chart/line-chart.tsx","tags":["dev","test","autodocs"]},"linechart--filter-annotation-when-legend-click":{"type":"story","id":"linechart--filter-annotation-when-legend-click","name":"Filter Annotation When Legend Click","title":"LineChart","importPath":"./src/components/line-chart/line-chart.stories.jsx","componentPath":"./src/components/line-chart/line-chart.tsx","tags":["dev","test","autodocs"]},"linechart--grouped-ds":{"type":"story","id":"linechart--grouped-ds","name":"Grouped DS","title":"LineChart","importPath":"./src/components/line-chart/line-chart.stories.jsx","componentPath":"./src/components/line-chart/line-chart.tsx","tags":["dev","test","autodocs"]},"linechart--similar-values-with-annotation":{"type":"story","id":"linechart--similar-values-with-annotation","name":"Similar Values With Annotation","title":"LineChart","importPath":"./src/components/line-chart/line-chart.stories.jsx","componentPath":"./src/components/line-chart/line-chart.tsx","tags":["dev","test","autodocs"]},"linechart--hide-specific-dataset-and-annotation":{"type":"story","id":"linechart--hide-specific-dataset-and-annotation","name":"Hide Specific Dataset And Annotation","title":"LineChart","importPath":"./src/components/line-chart/line-chart.stories.jsx","componentPath":"./src/components/line-chart/line-chart.tsx","tags":["dev","test","autodocs"]},"linechart--drag-annotations":{"type":"story","id":"linechart--drag-annotations","name":"Drag Annotations","title":"LineChart","importPath":"./src/components/line-chart/line-chart.stories.jsx","componentPath":"./src/components/line-chart/line-chart.tsx","tags":["dev","test","autodocs"]},"linechart--multi-axes-drag-annotations":{"type":"story","id":"linechart--multi-axes-drag-annotations","name":"Multi Axes Drag Annotations","title":"LineChart","importPath":"./src/components/line-chart/line-chart.stories.jsx","componentPath":"./src/components/line-chart/line-chart.tsx","tags":["dev","test","autodocs"]},"linechart--chart-filler-plugin":{"type":"story","id":"linechart--chart-filler-plugin","name":"Chart Filler Plugin","title":"LineChart","importPath":"./src/components/line-chart/line-chart.stories.jsx","componentPath":"./src/components/line-chart/line-chart.tsx","tags":["dev","test","autodocs"]},"linechart--ellipsis-annotations":{"type":"story","id":"linechart--ellipsis-annotations","name":"Ellipsis Annotations","title":"LineChart","importPath":"./src/components/line-chart/line-chart.stories.jsx","componentPath":"./src/components/line-chart/line-chart.tsx","tags":["dev","test","autodocs"]},"linechart-test-cases--docs":{"id":"linechart-test-cases--docs","title":"LineChart / Test Cases","name":"Docs","importPath":"./src/components/line-chart/line-chart.test-case.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"linechart-test-cases--partial-range-with-similar-values":{"type":"story","id":"linechart-test-cases--partial-range-with-similar-values","name":"Partial Range With Similar Values","title":"LineChart / Test Cases","importPath":"./src/components/line-chart/line-chart.test-case.stories.jsx","componentPath":"./src/components/line-chart/line-chart.tsx","tags":["dev","test","autodocs"]},"linechart-test-cases--close-to-value-in-different-axes":{"type":"story","id":"linechart-test-cases--close-to-value-in-different-axes","name":"Close To Value In Different Axes","title":"LineChart / Test Cases","importPath":"./src/components/line-chart/line-chart.test-case.stories.jsx","componentPath":"./src/components/line-chart/line-chart.tsx","tags":["dev","test","autodocs"]},"linechart-test-cases--stress-test":{"type":"story","id":"linechart-test-cases--stress-test","name":"Stress Test","title":"LineChart / Test Cases","importPath":"./src/components/line-chart/line-chart.test-case.stories.jsx","componentPath":"./src/components/line-chart/line-chart.tsx","tags":["dev","test","autodocs"]},"piechart--docs":{"id":"piechart--docs","title":"PieChart","name":"Docs","importPath":"./src/components/pie-chart/pie-chart.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"piechart--default":{"type":"story","id":"piechart--default","name":"Default","title":"PieChart","importPath":"./src/components/pie-chart/pie-chart.stories.jsx","componentPath":"./src/components/pie-chart/pie-chart.tsx","tags":["dev","test","autodocs"]},"piechart--multiple-sets":{"type":"story","id":"piechart--multiple-sets","name":"Multiple Sets","title":"PieChart","importPath":"./src/components/pie-chart/pie-chart.stories.jsx","componentPath":"./src/components/pie-chart/pie-chart.tsx","tags":["dev","test","autodocs"]},"piechart--multiple-sets-stacked":{"type":"story","id":"piechart--multiple-sets-stacked","name":"Multiple Sets Stacked","title":"PieChart","importPath":"./src/components/pie-chart/pie-chart.stories.jsx","componentPath":"./src/components/pie-chart/pie-chart.tsx","tags":["dev","test","autodocs"]},"piechart--datalabels":{"type":"story","id":"piechart--datalabels","name":"Datalabels","title":"PieChart","importPath":"./src/components/pie-chart/pie-chart.stories.jsx","componentPath":"./src/components/pie-chart/pie-chart.tsx","tags":["dev","test","autodocs"]},"piechart--datalabels-values":{"type":"story","id":"piechart--datalabels-values","name":"Datalabels Values","title":"PieChart","importPath":"./src/components/pie-chart/pie-chart.stories.jsx","componentPath":"./src/components/pie-chart/pie-chart.tsx","tags":["dev","test","autodocs"]},"piechart--datalabels-in-tooltips":{"type":"story","id":"piechart--datalabels-in-tooltips","name":"Datalabels In Tooltips","title":"PieChart","importPath":"./src/components/pie-chart/pie-chart.stories.jsx","componentPath":"./src/components/pie-chart/pie-chart.tsx","tags":["dev","test","autodocs"]},"piechart--animated":{"type":"story","id":"piechart--animated","name":"Animated","title":"PieChart","importPath":"./src/components/pie-chart/pie-chart.stories.jsx","componentPath":"./src/components/pie-chart/pie-chart.tsx","tags":["dev","test","autodocs"]},"piechart--doughnut":{"type":"story","id":"piechart--doughnut","name":"Doughnut","title":"PieChart","importPath":"./src/components/pie-chart/pie-chart.stories.jsx","componentPath":"./src/components/pie-chart/pie-chart.tsx","tags":["dev","test","autodocs"]},"piechart--doughnut-fixed-cutout":{"type":"story","id":"piechart--doughnut-fixed-cutout","name":"Doughnut Fixed Cutout","title":"PieChart","importPath":"./src/components/pie-chart/pie-chart.stories.jsx","componentPath":"./src/components/pie-chart/pie-chart.tsx","tags":["dev","test","autodocs"]},"piechart--hover-offset":{"type":"story","id":"piechart--hover-offset","name":"Hover Offset","title":"PieChart","importPath":"./src/components/pie-chart/pie-chart.stories.jsx","componentPath":"./src/components/pie-chart/pie-chart.tsx","tags":["dev","test","autodocs"]},"piechart--segment-offset":{"type":"story","id":"piechart--segment-offset","name":"Segment Offset","title":"PieChart","importPath":"./src/components/pie-chart/pie-chart.stories.jsx","componentPath":"./src/components/pie-chart/pie-chart.tsx","tags":["dev","test","autodocs"]},"scatterchart--docs":{"id":"scatterchart--docs","title":"ScatterChart","name":"Docs","importPath":"./src/components/scatter-chart/scatter-chart.stories.jsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"scatterchart--default":{"type":"story","id":"scatterchart--default","name":"Default","title":"ScatterChart","importPath":"./src/components/scatter-chart/scatter-chart.stories.jsx","componentPath":"./src/components/scatter-chart/scatter-chart.tsx","tags":["dev","test","autodocs"]},"scatterchart--styled-chart":{"type":"story","id":"scatterchart--styled-chart","name":"Styled Chart","title":"ScatterChart","importPath":"./src/components/scatter-chart/scatter-chart.stories.jsx","componentPath":"./src/components/scatter-chart/scatter-chart.tsx","tags":["dev","test","autodocs"]},"scatterchart--multiple-datasets":{"type":"story","id":"scatterchart--multiple-datasets","name":"Multiple Datasets","title":"ScatterChart","importPath":"./src/components/scatter-chart/scatter-chart.stories.jsx","componentPath":"./src/components/scatter-chart/scatter-chart.tsx","tags":["dev","test","autodocs"]},"scatterchart--with-data-labels":{"type":"story","id":"scatterchart--with-data-labels","name":"With Data Labels","title":"ScatterChart","importPath":"./src/components/scatter-chart/scatter-chart.stories.jsx","componentPath":"./src/components/scatter-chart/scatter-chart.tsx","tags":["dev","test","autodocs"]},"scatterchart--with-tooltips":{"type":"story","id":"scatterchart--with-tooltips","name":"With Tooltips","title":"ScatterChart","importPath":"./src/components/scatter-chart/scatter-chart.stories.jsx","componentPath":"./src/components/scatter-chart/scatter-chart.tsx","tags":["dev","test","autodocs"]},"scatterchart--with-annotation":{"type":"story","id":"scatterchart--with-annotation","name":"With Annotation","title":"ScatterChart","importPath":"./src/components/scatter-chart/scatter-chart.stories.jsx","componentPath":"./src/components/scatter-chart/scatter-chart.tsx","tags":["dev","test","autodocs"]},"scatterchart--with-axes-labels":{"type":"story","id":"scatterchart--with-axes-labels","name":"With Axes Labels","title":"ScatterChart","importPath":"./src/components/scatter-chart/scatter-chart.stories.jsx","componentPath":"./src/components/scatter-chart/scatter-chart.tsx","tags":["dev","test","autodocs"]},"scatterchart--with-gradient":{"type":"story","id":"scatterchart--with-gradient","name":"With Gradient","title":"ScatterChart","importPath":"./src/components/scatter-chart/scatter-chart.stories.jsx","componentPath":"./src/components/scatter-chart/scatter-chart.tsx","tags":["dev","test","autodocs"]},"scatterchart--with-datapoints-having-label":{"type":"story","id":"scatterchart--with-datapoints-having-label","name":"With Datapoints Having Label","title":"ScatterChart","importPath":"./src/components/scatter-chart/scatter-chart.stories.jsx","componentPath":"./src/components/scatter-chart/scatter-chart.tsx","tags":["dev","test","autodocs"]},"scatterchart--custom-point-color":{"type":"story","id":"scatterchart--custom-point-color","name":"Custom Point Color","title":"ScatterChart","importPath":"./src/components/scatter-chart/scatter-chart.stories.jsx","componentPath":"./src/components/scatter-chart/scatter-chart.tsx","tags":["dev","test","autodocs"]}}}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export declare enum defaultTranslations {
|
|
2
|
+
label = "Label",
|
|
3
|
+
pointsLines = "Points & lines",
|
|
4
|
+
linesOnly = "Lines only",
|
|
5
|
+
pointsOnly = "Points only",
|
|
6
|
+
axesOptions = "Axes options",
|
|
7
|
+
resetAxes = "Reset Axes",
|
|
8
|
+
done = "Done",
|
|
9
|
+
downloadAsPNG = "Download as PNG",
|
|
10
|
+
showChart = "Show chart",
|
|
11
|
+
showTable = "Show table",
|
|
12
|
+
dragToZoom = "Drag to zoom",
|
|
13
|
+
dragToPan = "Drag to pan",
|
|
14
|
+
dragToMovePoints = "Drag to move points",
|
|
15
|
+
dragToMoveAnnotation = "Drag to move annotation",
|
|
16
|
+
dragDisabled = "Drag disabled",
|
|
17
|
+
hideLegend = "Hide Legend",
|
|
18
|
+
showLegend = "Show Legend",
|
|
19
|
+
mustHaveAValue = "Must have a value",
|
|
20
|
+
mustBeANumber = "Must be a number",
|
|
21
|
+
mustBeLessThanMax = "Must be less than max",
|
|
22
|
+
mustBeGreaterThanMin = "Must be greater than min",
|
|
23
|
+
doubleClickToReset = "Double click on canvas to reset",
|
|
24
|
+
orDoubleClickToCanvas = "or double click on canvas"
|
|
25
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const DEFAULT_POINT_RADIUS = 2;
|
|
2
|
+
export declare const DEFAULT_HOVER_RADIUS = 5;
|
|
3
|
+
export declare const DEFAULT_BORDER_WIDTH = 1;
|
|
4
|
+
export declare const BORDER_JOIN_STYLE = "round";
|
|
5
|
+
export declare const DEFAULT_BACKGROUND_COLOR = "transparent";
|
|
6
|
+
export declare const ZOOM_BOX_BACKGROUND_COLOR = "rgba(0, 0, 0, 0.1)";
|
|
7
|
+
export declare const DOUBLE_CLICK = "dblclick";
|
|
8
|
+
export declare const INIT_KEYS: {
|
|
9
|
+
TRANSLATIONS: string;
|
|
10
|
+
LANGUAGE_KEY: string;
|
|
11
|
+
};
|
|
12
|
+
export declare const LOWER_BOUND = 0.0001;
|
|
13
|
+
export declare const UPPER_BOUND = 10000000;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { RefObject } from '../../../../../node_modules/react';
|
|
2
|
+
import { Chart } from 'chart.js';
|
|
3
|
+
import { IUnitOptions } from '../../line-chart.interface';
|
|
4
|
+
import { IAxisState, IState } from '../../state/state.interfaces';
|
|
5
|
+
export interface IDepthType {
|
|
6
|
+
selectedDepthType?: string;
|
|
7
|
+
setSelectedDepthType?: (type: string) => void;
|
|
8
|
+
options?: Array<string>;
|
|
9
|
+
}
|
|
10
|
+
export interface IAxisControlLabel {
|
|
11
|
+
id: string;
|
|
12
|
+
label: string;
|
|
13
|
+
}
|
|
14
|
+
export interface IAxesOptions {
|
|
15
|
+
chartRef: RefObject<Chart>;
|
|
16
|
+
state: IState;
|
|
17
|
+
controlsAxesLabels: IAxisControlLabel[];
|
|
18
|
+
onUpdateAxes: ({ axes }: {
|
|
19
|
+
axes: IAxisState;
|
|
20
|
+
}) => void;
|
|
21
|
+
onResetAxes: () => void;
|
|
22
|
+
onUpdateEdited: (edited: boolean) => void;
|
|
23
|
+
depthType?: IDepthType | object;
|
|
24
|
+
close?: () => void;
|
|
25
|
+
}
|
|
26
|
+
export interface IOnEdit {
|
|
27
|
+
name?: string;
|
|
28
|
+
value?: string;
|
|
29
|
+
id?: string;
|
|
30
|
+
}
|
|
31
|
+
export interface IAxisFormState {
|
|
32
|
+
id: string;
|
|
33
|
+
min: number | string;
|
|
34
|
+
max: number | string;
|
|
35
|
+
unit?: string | IUnitOptions;
|
|
36
|
+
}
|
|
37
|
+
export type IInitializeAxisFormState = IAxisFormState[];
|
|
38
|
+
export interface IError {
|
|
39
|
+
id: string;
|
|
40
|
+
min: string[];
|
|
41
|
+
max: string[];
|
|
42
|
+
}
|
|
43
|
+
export interface IFormState extends IInitializeAxisFormState {
|
|
44
|
+
errors?: IError[];
|
|
45
|
+
valid?: boolean;
|
|
46
|
+
}
|
|
47
|
+
type ActionType = 'reset' | 'valueUpdated' | 'unitUpdated';
|
|
48
|
+
export type AxisKey = 'min' | 'max' | 'unit';
|
|
49
|
+
interface ActionPayload extends IOnEdit {
|
|
50
|
+
axes?: IAxisState[];
|
|
51
|
+
chartRef?: RefObject<Chart>;
|
|
52
|
+
}
|
|
53
|
+
export interface IAction {
|
|
54
|
+
type: ActionType;
|
|
55
|
+
payload: ActionPayload;
|
|
56
|
+
}
|
|
57
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IAxesOptions } from './axes-options-interfaces';
|
|
2
|
+
interface IAxesOptionsWithTranslations extends IAxesOptions {
|
|
3
|
+
translations: Record<string, string>;
|
|
4
|
+
}
|
|
5
|
+
export declare const AxesOptions: (optionsPopover: IAxesOptionsWithTranslations) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Dispatch, ReactNode, RefObject } from '../../../../node_modules/react';
|
|
2
|
+
import { Chart } from 'chart.js';
|
|
3
|
+
import { ILineChartOptions, TGeneratedLineChartDatasets } from '../line-chart.interface';
|
|
4
|
+
import { IState } from '../state/state.interfaces';
|
|
5
|
+
export interface IControls {
|
|
6
|
+
headerComponent?: ReactNode;
|
|
7
|
+
subheaderComponent?: ReactNode;
|
|
8
|
+
table?: ReactNode;
|
|
9
|
+
chartRef: RefObject<Chart>;
|
|
10
|
+
state: IState;
|
|
11
|
+
options: ILineChartOptions;
|
|
12
|
+
dispatch: Dispatch<any>;
|
|
13
|
+
generatedDatasets: TGeneratedLineChartDatasets;
|
|
14
|
+
translations: Record<string, string>;
|
|
15
|
+
controlsPortalId?: string;
|
|
16
|
+
}
|
|
17
|
+
export interface AxisControls {
|
|
18
|
+
id?: string;
|
|
19
|
+
label?: string;
|
|
20
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { IControls } from './controls-interfaces';
|
|
2
|
+
declare const Controls: ({ table, headerComponent, subheaderComponent, chartRef, state, options, dispatch, generatedDatasets, translations, controlsPortalId, }: IControls) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default Controls;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface IDragOptions {
|
|
2
|
+
onTogglePan: () => void;
|
|
3
|
+
onToggleZoom: () => void;
|
|
4
|
+
panEnabled: boolean;
|
|
5
|
+
zoomEnabled: boolean;
|
|
6
|
+
enableDragPoints?: boolean;
|
|
7
|
+
enableDragAnnotation?: boolean;
|
|
8
|
+
isDragDataAllowed?: boolean;
|
|
9
|
+
isDragAnnotationAllowed?: boolean;
|
|
10
|
+
onToggleDragAnnotation: () => void;
|
|
11
|
+
onToggleDragPoints: () => void;
|
|
12
|
+
onDisableDragOptions: () => void;
|
|
13
|
+
translations: Record<string, string>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { IMenuSection } from '@oliasoft-open-source/react-ui-library';
|
|
2
|
+
import { IDragOptions } from './drag-options-interfaces';
|
|
3
|
+
export declare function getDragOptions({ onTogglePan, onToggleZoom, panEnabled, zoomEnabled, enableDragPoints, enableDragAnnotation, isDragDataAllowed, isDragAnnotationAllowed, onToggleDragAnnotation, onToggleDragPoints, onDisableDragOptions, translations: { dragToZoom, doubleClickToReset, dragToPan, dragToMovePoints, dragDisabled, dragToMoveAnnotation, }, }: IDragOptions): ({
|
|
4
|
+
label: string;
|
|
5
|
+
description: string;
|
|
6
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
selected: boolean;
|
|
8
|
+
type: string;
|
|
9
|
+
onClick: () => void;
|
|
10
|
+
} | {
|
|
11
|
+
label: string;
|
|
12
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
selected: boolean | undefined;
|
|
14
|
+
type: string;
|
|
15
|
+
onClick: () => void;
|
|
16
|
+
description?: undefined;
|
|
17
|
+
})[];
|
|
18
|
+
/**
|
|
19
|
+
* @param {import('./drag-options-interfaces').IDragOptions} obj
|
|
20
|
+
*/
|
|
21
|
+
export declare const DragOptions: ({ options }: {
|
|
22
|
+
options: IMenuSection[];
|
|
23
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { IMenuSection } from '@oliasoft-open-source/react-ui-library';
|
|
2
|
+
interface ILineOptions {
|
|
3
|
+
lineEnabled: boolean;
|
|
4
|
+
onToggleLine: () => void;
|
|
5
|
+
onTogglePoints: () => void;
|
|
6
|
+
pointsEnabled: boolean;
|
|
7
|
+
translations: Record<string, string>;
|
|
8
|
+
}
|
|
9
|
+
export declare function getLineOptions({ lineEnabled, onToggleLine, onTogglePoints, pointsEnabled, translations, }: ILineOptions): {
|
|
10
|
+
type: string;
|
|
11
|
+
label: string;
|
|
12
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
selected: boolean;
|
|
14
|
+
onClick: () => void;
|
|
15
|
+
}[];
|
|
16
|
+
export declare const LineOptions: ({ options }: {
|
|
17
|
+
options: IMenuSection[];
|
|
18
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Dispatch, KeyboardEvent, RefObject, SetStateAction } from '../../../../node_modules/react';
|
|
2
|
+
import { Chart, ChartEvent } from 'chart.js';
|
|
3
|
+
import { ICommonDataValue, ICommonHoveredItems } from '../../common/common.interface';
|
|
4
|
+
import { ILineChartOptions, TGeneratedLineChartDatasets } from '../line-chart.interface';
|
|
5
|
+
import { IAxisState, IState } from '../state/state.interfaces';
|
|
6
|
+
interface IUseChartFunctions {
|
|
7
|
+
chartRef: RefObject<Chart>;
|
|
8
|
+
state: IState;
|
|
9
|
+
options: ILineChartOptions;
|
|
10
|
+
dispatch: Dispatch<any>;
|
|
11
|
+
generatedDatasets: TGeneratedLineChartDatasets;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Custom hook that encapsulates the chart-related functions and their dependencies
|
|
15
|
+
*/
|
|
16
|
+
export declare const useChartFunctions: ({ chartRef, state, options, dispatch, generatedDatasets, }: IUseChartFunctions) => {
|
|
17
|
+
resetZoom: () => void;
|
|
18
|
+
onHover: (hoveredPoint: ICommonDataValue | null, setHoveredPoint: Dispatch<SetStateAction<ICommonDataValue | null>>, datasets: TGeneratedLineChartDatasets) => (evt: ChartEvent, hoveredItems: ICommonHoveredItems[]) => void;
|
|
19
|
+
handleDownload: () => void;
|
|
20
|
+
handleKeyDown: (event: KeyboardEvent<HTMLDivElement>) => void;
|
|
21
|
+
handleKeyUp: (event: KeyboardEvent<HTMLDivElement>) => void;
|
|
22
|
+
controlsAxesLabels: {
|
|
23
|
+
id: string;
|
|
24
|
+
label: string;
|
|
25
|
+
}[];
|
|
26
|
+
updateAxesRangesFromChart: () => void;
|
|
27
|
+
onResetAxes: () => void;
|
|
28
|
+
onUpdateAxes: ({ axes }: {
|
|
29
|
+
axes: IAxisState;
|
|
30
|
+
}) => void;
|
|
31
|
+
onUpdateEdited: (edited: boolean) => void;
|
|
32
|
+
};
|
|
33
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Dispatch, RefObject } from '../../../../node_modules/react';
|
|
2
|
+
import { Chart, ChartOptions } from 'chart.js';
|
|
3
|
+
import { IState } from '../state/state.interfaces';
|
|
4
|
+
import { ILineChartOptions, TGeneratedLineChartDatasets } from '../line-chart.interface';
|
|
5
|
+
interface IUseChartOptions {
|
|
6
|
+
chartRef: RefObject<Chart>;
|
|
7
|
+
state: IState;
|
|
8
|
+
options: ILineChartOptions;
|
|
9
|
+
dispatch: Dispatch<any>;
|
|
10
|
+
generatedDatasets: TGeneratedLineChartDatasets;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Custom hook to generate chart options.
|
|
14
|
+
*/
|
|
15
|
+
export declare const useChartOptions: ({ chartRef, state, options, dispatch, generatedDatasets, }: IUseChartOptions) => ChartOptions<"line">;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IState } from '../state/state.interfaces';
|
|
2
|
+
import { ILineChartOptions } from '../line-chart.interface';
|
|
3
|
+
interface IUseChartState {
|
|
4
|
+
options: ILineChartOptions;
|
|
5
|
+
state: IState;
|
|
6
|
+
persistenceId?: string;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Hook for managing the state of the chart.
|
|
10
|
+
*/
|
|
11
|
+
export declare const useChartState: ({ options, state, persistenceId, }: IUseChartState) => void;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Dispatch } from '../../../../node_modules/react';
|
|
2
|
+
export declare const useToggleHandlers: (dispatch: Dispatch<any>) => {
|
|
3
|
+
onToggleLegend: () => void;
|
|
4
|
+
onToggleLine: () => void;
|
|
5
|
+
onTogglePan: () => void;
|
|
6
|
+
onTogglePoints: () => void;
|
|
7
|
+
onToggleTable: () => void;
|
|
8
|
+
onToggleZoom: () => void;
|
|
9
|
+
onToggleDragPoints: () => void;
|
|
10
|
+
onToggleDragAnnotation: () => void;
|
|
11
|
+
onDisableDragOptions: () => void;
|
|
12
|
+
};
|