@oliasoft-open-source/charts-library 5.0.0-beta-2 → 5.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.
- package/dist/assets/Color-6VNJS4EI-DLbcRNMp.js +1 -0
- package/dist/assets/DocsRenderer-NNNQARDV-BOzykHvd.js +1 -0
- package/dist/assets/WithTooltip-V3YHNWJZ-BeePhoIB.js +1 -0
- package/dist/assets/_getPrototype-Bgn98YsR.js +3 -0
- package/dist/assets/{bar-chart.stories-D9mtWCnD.js → bar-chart.stories-BEwhK613.js} +35 -35
- package/dist/assets/chunk-HLWAVYOI-BJEcfeBO.js +364 -0
- package/dist/assets/entry-preview-D8lfu5jc.js +1 -0
- package/dist/assets/entry-preview-docs-CRyh30bF.js +54 -0
- package/dist/assets/formatter-SWP5E3XI-Bj1a9__W.js +156 -0
- package/dist/assets/get-draggableData-DhvAHrT5.js +2 -0
- package/dist/assets/iframe-BurE_SJm.js +8 -0
- package/dist/assets/index-B7LTuyD5.js +1 -0
- package/dist/assets/index-BXzfdmYx.js +24 -0
- package/dist/assets/index-CZvFZgOq.js +9 -0
- package/dist/assets/index-D3eZ-H7s.js +1 -0
- package/dist/assets/index-DrFu-skq.js +6 -0
- package/dist/assets/index-uubelm5h.js +9 -0
- package/dist/assets/isPlainObject-DdO3KXLu.js +1 -0
- package/dist/assets/legend-BWpTckOL.js +278 -0
- package/dist/assets/legend-context-BAQplG-D.js +71 -0
- package/dist/assets/line-chart-L0zq38Nj.js +1 -0
- package/dist/assets/line-chart.stories-CurD8upE.js +1130 -0
- package/dist/assets/{line-chart.test-case.stories-DgfMW1VB.js → line-chart.test-case.stories-Cq5J45Io.js} +2 -2
- package/dist/assets/pie-chart.stories-Duex2I6n.js +45 -0
- package/dist/assets/preview-BBDnT5_b.js +30 -0
- package/dist/assets/preview-D4u66u8a.js +2 -0
- package/dist/assets/preview-FHoZfaOb.js +17 -0
- package/dist/assets/react-18-Xi5cNDBV.js +1 -0
- package/dist/assets/scatter-chart.stories-D0618GGr.js +41 -0
- package/dist/assets/syntaxhighlighter-MJWPISIS-Bmhn3z6A.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/bar-chart.stories.d.ts +807 -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 +206 -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 +84 -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 +4 -0
- package/dist/common/helpers/enums.d.ts +80 -0
- package/dist/common/helpers/get-chart-annotation.d.ts +90 -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-close-values.test.d.ts +1 -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/range/range.test.d.ts +1 -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/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 +2 -0
- package/dist/common/legend-component/state/legend-context.d.ts +12 -0
- package/dist/common/legend-component/state/legend-state-reducer.d.ts +26 -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/helpers.test.d.ts +1 -0
- package/dist/common/plugins/annotation-dragger-plugin/point-annotation-label.d.ts +5 -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 +7 -1
- package/dist/iframe.html +51 -259
- package/dist/index.d.ts +1 -8
- package/dist/index.html +30 -80
- package/dist/index.json +1 -1
- package/dist/line-chart/__tests__/test-data/app-test-case-1.json.d.ts +8733 -0
- package/dist/line-chart/__tests__/test-data/app-test-case-2.json.d.ts +11614 -0
- package/dist/line-chart/__tests__/test-data/app-test-case-3.json.d.ts +34 -0
- package/dist/line-chart/__tests__/test-data/app-test-case-4.json.d.ts +411 -0
- package/dist/line-chart/__tests__/test-data/app-test-case-5.json.d.ts +2734 -0
- package/dist/line-chart/__tests__/test-data/app-test-case-6.json.d.ts +2236 -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/action-types.d.ts +5 -0
- package/dist/line-chart/controls/axes-options/axes-options-form-state.d.ts +23 -0
- package/dist/line-chart/controls/axes-options/axes-options-form-state.test.d.ts +1 -0
- package/dist/line-chart/controls/axes-options/axes-options-interfaces.d.ts +54 -0
- package/dist/line-chart/controls/axes-options/axes-options.d.ts +6 -0
- package/dist/line-chart/controls/controls-interfaces.d.ts +20 -0
- package/dist/line-chart/controls/controls.d.ts +6 -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 +32 -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 +17 -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/initialize/initialize-line-chart.test.d.ts +1 -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 +146 -0
- package/dist/line-chart/line-chart.stories.d.ts +1729 -0
- package/dist/line-chart/line-chart.test-case.stories.d.ts +29 -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/line-chart.minor-gridlines-plugin.test.d.ts +1 -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/initial-state.d.ts +14 -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 +34 -0
- package/dist/line-chart/utils/__tests__/get-annotations-data.test.d.ts +1 -0
- package/dist/line-chart/utils/__tests__/get-axes-data-from-metasets.test.d.ts +1 -0
- package/dist/line-chart/utils/__tests__/get-axes-type-from-key.test.d.ts +1 -0
- package/dist/line-chart/utils/__tests__/get-axis-range-by-type.test.d.ts +1 -0
- package/dist/line-chart/utils/__tests__/get-line-chart-tooltips.test.d.ts +1 -0
- package/dist/line-chart/utils/axis-formatting/axis-formatting.d.ts +2 -0
- package/dist/line-chart/utils/axis-formatting/axis-formatting.test.d.ts +1 -0
- package/dist/line-chart/utils/axis-scales/axis-scales.d.ts +11 -0
- package/dist/line-chart/utils/axis-scales/axis-scales.test.d.ts +1 -0
- package/dist/line-chart/utils/check-custom-option/check-custom-option.d.ts +12 -0
- package/dist/line-chart/utils/check-custom-option/check-custom-option.test.d.ts +1 -0
- package/dist/line-chart/utils/datalabels-alignment/__tests__/get-alignment-condition.test.d.ts +1 -0
- package/dist/line-chart/utils/datalabels-alignment/__tests__/get-alignment-data.test.d.ts +1 -0
- package/dist/line-chart/utils/datalabels-alignment/__tests__/get-datalabels-position.test.d.ts +1 -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 +19 -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 +20 -0
- package/dist/line-chart/utils/line-chart-utils.d.ts +32 -0
- package/dist/line-chart/utils/translations/get-translations.d.ts +8 -0
- package/dist/line-chart/utils/translations/get-translations.test.d.ts +1 -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/pie-chart.stories.d.ts +263 -0
- package/dist/pie-chart/use-pie-chart-config.d.ts +41 -0
- package/dist/project.json +1 -1
- package/dist/sb-addons/actions-0/manager-bundle.js +3 -0
- package/dist/sb-addons/actions-0/manager-bundle.js.LEGAL.txt +0 -0
- package/dist/sb-addons/storybook-dark-mode-esm-preset-1/manager-bundle.js +5 -0
- package/dist/sb-addons/storybook-dark-mode-esm-preset-1/manager-bundle.js.LEGAL.txt +0 -0
- package/dist/sb-common-assets/fonts.css +31 -0
- package/dist/sb-manager/WithTooltip-V3YHNWJZ-MXTFSDU5.js +1 -0
- package/dist/sb-manager/chunk-5QAFKPS7.js +7 -0
- package/dist/sb-manager/chunk-7PRFHFSS.js +9 -0
- package/dist/sb-manager/chunk-XE6LDGTE.js +406 -0
- package/dist/sb-manager/chunk-YDUB7CS6.js +348 -0
- package/dist/sb-manager/chunk-ZEU7PDD3.js +1 -0
- package/dist/sb-manager/formatter-SWP5E3XI-7BGIK6BL.js +156 -0
- package/dist/sb-manager/globals-module-info.js +1 -1051
- package/dist/sb-manager/globals.js +1 -48
- package/dist/sb-manager/index.js +1 -0
- package/dist/sb-manager/runtime.js +1 -12048
- package/dist/sb-manager/syntaxhighlighter-MJWPISIS-JOSCT6CQ.js +1 -0
- package/dist/sb-preview/globals.js +1 -0
- package/dist/sb-preview/runtime.js +112 -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/scatter-chart.stories.d.ts +279 -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/dist/src/components/bar-chart/bar-chart-const.d.ts +2 -0
- package/dist/src/components/bar-chart/bar-chart-default-props.d.ts +2 -0
- package/dist/src/components/bar-chart/bar-chart.d.ts +3 -0
- package/dist/src/components/bar-chart/bar-chart.interface.d.ts +96 -0
- package/dist/src/components/bar-chart/utils/get-bar-chart-data-labels.d.ts +10 -0
- package/dist/src/components/bar-chart/utils/get-bar-chart-scales.d.ts +3 -0
- package/dist/src/components/bar-chart/utils/get-bar-chart-tooltips.d.ts +6 -0
- package/dist/src/components/bar-chart/utils/use-bar-chart-config.d.ts +13 -0
- package/dist/src/components/bar-chart/utils/use-bar-chart-options.d.ts +55 -0
- package/dist/src/components/common/common.interface.d.ts +206 -0
- package/dist/src/components/common/controls-portal.d.ts +7 -0
- package/dist/src/components/common/enums.d.ts +10 -0
- package/dist/src/components/common/helpers/chart-border-plugin.d.ts +16 -0
- package/dist/src/components/common/helpers/chart-consts.d.ts +39 -0
- package/dist/src/components/common/helpers/chart-utils.d.ts +84 -0
- package/dist/src/components/common/helpers/container.d.ts +18 -0
- package/dist/src/components/common/helpers/custom-format-number.d.ts +1 -0
- package/dist/src/components/common/helpers/download-pgn.d.ts +4 -0
- package/dist/src/components/common/helpers/enums.d.ts +80 -0
- package/dist/src/components/common/helpers/get-chart-annotation.d.ts +90 -0
- package/dist/src/components/common/helpers/get-custom-legend-plugin-example.d.ts +8 -0
- package/dist/src/components/common/helpers/get-draggableData.d.ts +18 -0
- package/dist/src/components/common/helpers/range/estimate-data-series-have-close-values.d.ts +8 -0
- package/dist/src/components/common/helpers/range/range.d.ts +33 -0
- package/dist/src/components/common/helpers/text.d.ts +1 -0
- package/dist/src/components/common/helpers/to-annotation.d.ts +4 -0
- package/dist/src/components/common/hooks/use-generated-labels.d.ts +4 -0
- package/dist/src/components/common/hooks/use-legend-state.d.ts +28 -0
- package/dist/src/components/common/hooks/use-legend.d.ts +4 -0
- package/dist/src/components/common/hooks/use-reset.d.ts +3 -0
- package/dist/src/components/common/legend-component/legend-dropzone.d.ts +3 -0
- package/dist/src/components/common/legend-component/legend-interface.d.ts +48 -0
- package/dist/src/components/common/legend-component/legend-item/LegendItemLine.d.ts +5 -0
- package/dist/src/components/common/legend-component/legend-item/legend-item.d.ts +3 -0
- package/dist/src/components/common/legend-component/legend-panel.d.ts +3 -0
- package/dist/src/components/common/legend-component/legend.d.ts +3 -0
- package/dist/src/components/common/legend-component/state/legend-action-types.d.ts +2 -0
- package/dist/src/components/common/legend-component/state/legend-context.d.ts +12 -0
- package/dist/src/components/common/legend-component/state/legend-state-reducer.d.ts +26 -0
- package/dist/src/components/common/legend-component/utils/create-style-object.d.ts +27 -0
- package/dist/src/components/common/legend-component/utils/get-generated-labels.d.ts +2 -0
- package/dist/src/components/common/plugins/annotation-dragger-plugin/annotation-dragger-plugin.d.ts +15 -0
- package/dist/src/components/common/plugins/annotation-dragger-plugin/enums.d.ts +20 -0
- package/dist/src/components/common/plugins/annotation-dragger-plugin/event-helpers.d.ts +6 -0
- package/dist/src/components/common/plugins/annotation-dragger-plugin/helpers.d.ts +53 -0
- package/dist/src/components/common/plugins/annotation-dragger-plugin/point-annotation-label.d.ts +5 -0
- package/dist/src/components/common/plugins/gradient-background-plugin/enums.d.ts +10 -0
- package/dist/src/components/common/plugins/gradient-background-plugin/gradient-background-plugin.d.ts +2 -0
- package/dist/src/components/line-chart/constants/default-translations.d.ts +25 -0
- package/dist/src/components/line-chart/constants/line-chart-consts.d.ts +13 -0
- package/dist/src/components/line-chart/controls/axes-options/action-types.d.ts +5 -0
- package/dist/src/components/line-chart/controls/axes-options/axes-options-form-state.d.ts +23 -0
- package/dist/src/components/line-chart/controls/axes-options/axes-options-interfaces.d.ts +54 -0
- package/dist/src/components/line-chart/controls/axes-options/axes-options.d.ts +6 -0
- package/dist/src/components/line-chart/controls/controls-interfaces.d.ts +20 -0
- package/dist/src/components/line-chart/controls/controls.d.ts +6 -0
- package/dist/src/components/line-chart/controls/drag-options-interfaces.d.ts +14 -0
- package/dist/src/components/line-chart/controls/drag-options.d.ts +23 -0
- package/dist/src/components/line-chart/controls/line-options.d.ts +19 -0
- package/dist/src/components/line-chart/hooks/use-chart-functions.d.ts +32 -0
- package/dist/src/components/line-chart/hooks/use-chart-options.d.ts +16 -0
- package/dist/src/components/line-chart/hooks/use-chart-plugins.d.ts +7 -0
- package/dist/src/components/line-chart/hooks/use-chart-state.d.ts +17 -0
- package/dist/src/components/line-chart/hooks/use-toggle-handler.d.ts +12 -0
- package/dist/src/components/line-chart/initialize/config.d.ts +12 -0
- package/dist/src/components/line-chart/initialize/initialize-line-chart.d.ts +12 -0
- package/dist/src/components/line-chart/line-chart-get-default-props.d.ts +2 -0
- package/dist/src/components/line-chart/line-chart.d.ts +3 -0
- package/dist/src/components/line-chart/line-chart.interface.d.ts +146 -0
- package/dist/src/components/line-chart/plugins/chart-area-text-plugin.d.ts +17 -0
- package/dist/src/components/line-chart/plugins/line-chart.minor-gridlines-plugin.d.ts +8 -0
- package/dist/src/components/line-chart/plugins/plugin-constants.d.ts +11 -0
- package/dist/src/components/line-chart/plugins/plugins.interface.d.ts +9 -0
- package/dist/src/components/line-chart/state/action-types.d.ts +12 -0
- package/dist/src/components/line-chart/state/initial-state.d.ts +14 -0
- package/dist/src/components/line-chart/state/line-chart-reducer.d.ts +2 -0
- package/dist/src/components/line-chart/state/manage-state-in-local-storage.d.ts +15 -0
- package/dist/src/components/line-chart/state/state.interfaces.d.ts +34 -0
- package/dist/src/components/line-chart/utils/axis-formatting/axis-formatting.d.ts +2 -0
- package/dist/src/components/line-chart/utils/axis-scales/axis-scales.d.ts +11 -0
- package/dist/src/components/line-chart/utils/check-custom-option/check-custom-option.d.ts +12 -0
- package/dist/src/components/line-chart/utils/datalabels-alignment/datalabels-alignment.interface.d.ts +20 -0
- package/dist/src/components/line-chart/utils/datalabels-alignment/get-alignment-condition.d.ts +8 -0
- package/dist/src/components/line-chart/utils/datalabels-alignment/get-alignment-data.d.ts +11 -0
- package/dist/src/components/line-chart/utils/datalabels-alignment/get-datalabels-position.d.ts +6 -0
- package/dist/src/components/line-chart/utils/enums.d.ts +4 -0
- package/dist/src/components/line-chart/utils/generate-line-chart-datasets.d.ts +8 -0
- package/dist/src/components/line-chart/utils/get-annotations-data.d.ts +1 -0
- package/dist/src/components/line-chart/utils/get-axes-data-from-metasets.d.ts +1 -0
- package/dist/src/components/line-chart/utils/get-axes-ranges-from-chart.d.ts +9 -0
- package/dist/src/components/line-chart/utils/get-axis-range-by-type.d.ts +10 -0
- package/dist/src/components/line-chart/utils/get-generated-labels.d.ts +2 -0
- package/dist/src/components/line-chart/utils/get-line-chart-data-labels.d.ts +19 -0
- package/dist/src/components/line-chart/utils/get-line-chart-scales.d.ts +4 -0
- package/dist/src/components/line-chart/utils/get-line-chart-tooltips.d.ts +20 -0
- package/dist/src/components/line-chart/utils/line-chart-utils.d.ts +32 -0
- package/dist/src/components/line-chart/utils/translations/get-translations.d.ts +8 -0
- package/dist/src/components/pie-chart/pie-chart-defalut-props.interface.d.ts +50 -0
- package/dist/src/components/pie-chart/pie-chart-get-default-props.d.ts +3 -0
- package/dist/src/components/pie-chart/pie-chart.d.ts +3 -0
- package/dist/src/components/pie-chart/pie-chart.interface.d.ts +70 -0
- package/dist/src/components/pie-chart/use-pie-chart-config.d.ts +41 -0
- package/dist/src/components/scatter-chart/hooks/use-scatter-chart-config.d.ts +113 -0
- package/dist/src/components/scatter-chart/scatter-chart-default-props.interface.d.ts +71 -0
- package/dist/src/components/scatter-chart/scatter-chart-get-default-props.d.ts +3 -0
- package/dist/src/components/scatter-chart/scatter-chart.d.ts +3 -0
- package/dist/src/components/scatter-chart/scatter-chart.interface.d.ts +81 -0
- package/dist/src/components/scatter-chart/utils/get-scales-config.d.ts +49 -0
- package/dist/src/components/scatter-chart/utils/get-tooltip-config.d.ts +21 -0
- package/dist/stories.json +1 -0
- package/package.json +3 -2
- package/dist/assets/Color-YHDXOIA2-D6i6tiFz.js +0 -1
- package/dist/assets/DocsRenderer-CFRXHY34-D88vu1Xb.js +0 -580
- package/dist/assets/client-9BU5HM4U.js +0 -1
- package/dist/assets/entry-preview-D2XJoWVM.js +0 -10
- package/dist/assets/entry-preview-docs-z3mMcuG4.js +0 -46
- package/dist/assets/get-draggableData-DO0Px5pc.js +0 -2
- package/dist/assets/iframe-DLnw2TiW.js +0 -217
- package/dist/assets/index-B-BONL6g.js +0 -1
- package/dist/assets/index-BGqSdrBK.js +0 -1
- package/dist/assets/index-CVdx34fM.js +0 -1
- package/dist/assets/index-D3-0uUTW.js +0 -24
- package/dist/assets/index-Dytf1aFS.js +0 -8
- package/dist/assets/index-eCxJ45ll.js +0 -9
- package/dist/assets/jsx-runtime-Y5Ju2SGo.js +0 -9
- package/dist/assets/legend-BI53UIaI.js +0 -1346
- package/dist/assets/legend-context-BNCYpFYh.js +0 -68
- package/dist/assets/line-chart-BdFuLh7N.js +0 -1
- package/dist/assets/line-chart.stories-BVsiy8CQ.js +0 -1130
- package/dist/assets/pie-chart.stories-BVurv17M.js +0 -45
- package/dist/assets/preview-CLM2f008.js +0 -2
- package/dist/assets/preview-DD_OYowb.js +0 -1
- package/dist/assets/preview-XObsormK.js +0 -3
- package/dist/assets/react-18-DZY5LW1V.js +0 -1
- package/dist/assets/react-CxVRKATl.js +0 -1
- package/dist/assets/scatter-chart.stories-DnivHhIH.js +0 -41
- 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/sb-addons/actions-1/manager-bundle.js +0 -3
- package/dist/sb-addons/docs-2/manager-bundle.js +0 -242
- package/dist/sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js +0 -3
- package/dist/sb-addons/storybook-dark-mode-esm-preset-3/manager-bundle.js +0 -5
- package/dist/sb-common-assets/favicon.svg +0 -1
- package/dist/sb-manager/globals-runtime.js +0 -41591
|
@@ -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,23 @@
|
|
|
1
|
+
import { IState } from '../../state/state.interfaces';
|
|
2
|
+
import { IAction, IFormState, IInitializeAxisFormState } from './axes-options-interfaces.ts';
|
|
3
|
+
/**
|
|
4
|
+
* Initialize local component form state for a custom loads density table
|
|
5
|
+
*
|
|
6
|
+
* @param {Object} args
|
|
7
|
+
* @param {Object} args.initialAxesRanges
|
|
8
|
+
* @param {Array} [args.axes]
|
|
9
|
+
* @returns {Object} formState
|
|
10
|
+
*/
|
|
11
|
+
export declare const initializeFormState: ({ initialAxesRanges, axes, }: Partial<IState>) => IInitializeAxisFormState;
|
|
12
|
+
export declare const validateAxes: (formState: IFormState) => {
|
|
13
|
+
errors: never[];
|
|
14
|
+
valid: boolean;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* Local component form state reducer for a axes options form
|
|
18
|
+
*
|
|
19
|
+
* @param {Object} state Local component form state
|
|
20
|
+
* @param {Action} action Action with type and payload
|
|
21
|
+
* @returns {Object} FormState
|
|
22
|
+
*/
|
|
23
|
+
export declare const reducer: (state: IFormState, action: IAction) => IInitializeAxisFormState;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { IUnitOptions } from '../../line-chart.interface.ts';
|
|
2
|
+
import { IAxisState, IInitAxisRange } from '../../state/state.interfaces.ts';
|
|
3
|
+
export interface IDepthType {
|
|
4
|
+
selectedDepthType?: string;
|
|
5
|
+
setSelectedDepthType?: (type: string) => void;
|
|
6
|
+
options?: Array<string>;
|
|
7
|
+
}
|
|
8
|
+
export interface IAxisControlLabel {
|
|
9
|
+
id: string;
|
|
10
|
+
label: string;
|
|
11
|
+
}
|
|
12
|
+
export interface IAxesOptions {
|
|
13
|
+
initialAxesRanges: IInitAxisRange[];
|
|
14
|
+
axes: IAxisState[];
|
|
15
|
+
controlsAxesLabels: IAxisControlLabel[];
|
|
16
|
+
onUpdateAxes: ({ axes }: {
|
|
17
|
+
axes: IAxisState;
|
|
18
|
+
}) => void;
|
|
19
|
+
onResetAxes: () => void;
|
|
20
|
+
depthType?: IDepthType | object;
|
|
21
|
+
close?: () => void;
|
|
22
|
+
}
|
|
23
|
+
export interface IOnEdit {
|
|
24
|
+
name?: string;
|
|
25
|
+
value?: string;
|
|
26
|
+
id?: string;
|
|
27
|
+
}
|
|
28
|
+
export interface IAxisFormState {
|
|
29
|
+
id: string;
|
|
30
|
+
min: number | string;
|
|
31
|
+
max: number | string;
|
|
32
|
+
unit?: string | IUnitOptions;
|
|
33
|
+
}
|
|
34
|
+
export type IInitializeAxisFormState = IAxisFormState[];
|
|
35
|
+
export interface IError {
|
|
36
|
+
id: string;
|
|
37
|
+
min: string[];
|
|
38
|
+
max: string[];
|
|
39
|
+
}
|
|
40
|
+
export interface IFormState extends IInitializeAxisFormState {
|
|
41
|
+
errors?: IError[];
|
|
42
|
+
valid?: boolean;
|
|
43
|
+
}
|
|
44
|
+
type ActionType = 'reset' | 'valueUpdated' | 'unitUpdated';
|
|
45
|
+
export type AxisKey = 'min' | 'max' | 'unit';
|
|
46
|
+
interface ActionPayload extends IOnEdit {
|
|
47
|
+
initialAxesRanges?: IInitAxisRange[];
|
|
48
|
+
axes?: IAxisState[];
|
|
49
|
+
}
|
|
50
|
+
export interface IAction {
|
|
51
|
+
type: ActionType;
|
|
52
|
+
payload: ActionPayload;
|
|
53
|
+
}
|
|
54
|
+
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 '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?: Element;
|
|
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,6 @@
|
|
|
1
|
+
import { IControls } from './controls-interfaces';
|
|
2
|
+
/**
|
|
3
|
+
* @param {import('./controls-interfaces').IControls} obj
|
|
4
|
+
*/
|
|
5
|
+
declare const Controls: ({ headerComponent, subheaderComponent, table, chartRef, state, options, dispatch, generatedDatasets, translations, controlsPortalId, }: IControls) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
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,32 @@
|
|
|
1
|
+
import { Dispatch, KeyboardEvent, RefObject, SetStateAction } from '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>>) => (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
|
+
};
|
|
32
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Dispatch, RefObject } from 'react';
|
|
2
|
+
import { Chart } 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) => any;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Dispatch, RefObject } from 'react';
|
|
2
|
+
import { Chart } from 'chart.js';
|
|
3
|
+
import { IState } from '../state/state.interfaces';
|
|
4
|
+
import { ILineChartDataset, ILineChartOptions } from '../line-chart.interface';
|
|
5
|
+
interface IUseChartState {
|
|
6
|
+
chartRef: RefObject<Chart>;
|
|
7
|
+
options: ILineChartOptions;
|
|
8
|
+
state: IState;
|
|
9
|
+
dispatch: Dispatch<any>;
|
|
10
|
+
persistenceId?: string;
|
|
11
|
+
generatedDatasets: ILineChartDataset[];
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Hook for managing the state of the chart.
|
|
15
|
+
*/
|
|
16
|
+
export declare const useChartState: ({ chartRef, options, state, dispatch, persistenceId, generatedDatasets, }: IUseChartState) => void;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Dispatch } from '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
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Retrieve the value for the given key from the config object.
|
|
3
|
+
* @param {string} key - The key to access the corresponding value in the config object.
|
|
4
|
+
* @returns {*} - The value associated with the given key in the config object or config.
|
|
5
|
+
*/
|
|
6
|
+
export declare const getConfig: (key?: string) => any;
|
|
7
|
+
/**
|
|
8
|
+
* Set a new value for the given key in the config object.
|
|
9
|
+
* @param {string} key - The key to access the corresponding value in the config object.
|
|
10
|
+
* @param {*} newValue - The new value to be set for the given key.
|
|
11
|
+
*/
|
|
12
|
+
export declare const setConfig: (key: string, newValue: string | Record<string, string>) => void;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Initialize the charts library with the provided configurations.
|
|
3
|
+
* This function will store the configuration options in a config object.
|
|
4
|
+
* @param {object} options - An object containing the configuration options for the library.
|
|
5
|
+
* @param {object} options.translations - The translations to be used in the library.
|
|
6
|
+
* @param {string} options.languageKey - The language key to be stored in the config object, used for translations.
|
|
7
|
+
* @param {...object} options - Any additional options to be stored in the config object.
|
|
8
|
+
*/
|
|
9
|
+
export declare const initializeLineChart: ({ languageKey, ...options }: {
|
|
10
|
+
[x: string]: any;
|
|
11
|
+
languageKey?: string | undefined;
|
|
12
|
+
}) => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { ICommonAnnotations, ICommonChartOptions, ICommonCustomLegend, ICommonData, ICommonDataset, ICommonDataValue, ICommonDragData, ICommonInteractions, ICommonLegend, ICommonOptions, ICommonScales, ICommonStyling, ICommonTooltip } from '../common/common.interface';
|
|
3
|
+
export interface ILChartOptions extends ICommonChartOptions {
|
|
4
|
+
showPoints: boolean;
|
|
5
|
+
closeOnOutsideClick: boolean;
|
|
6
|
+
showLine: boolean;
|
|
7
|
+
enableDragAnnotation?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface ILineChartGraph {
|
|
10
|
+
lineTension: number;
|
|
11
|
+
spanGaps: boolean;
|
|
12
|
+
showDataLabels: boolean;
|
|
13
|
+
showMinorGridlines: boolean;
|
|
14
|
+
}
|
|
15
|
+
export interface ILineChartTooltip extends ICommonTooltip {
|
|
16
|
+
hideSimulationName: boolean;
|
|
17
|
+
scientificNotation: boolean;
|
|
18
|
+
}
|
|
19
|
+
export interface ILineChartRange {
|
|
20
|
+
min: number;
|
|
21
|
+
max: number;
|
|
22
|
+
}
|
|
23
|
+
export interface ILineRange {
|
|
24
|
+
[key: string]: ILineChartRange;
|
|
25
|
+
}
|
|
26
|
+
export interface ILineChartAdditionalAxesOptions {
|
|
27
|
+
chartScaleType: 'linear' | 'logarithmic';
|
|
28
|
+
reverse: boolean;
|
|
29
|
+
beginAtZero: boolean;
|
|
30
|
+
stepSize?: number;
|
|
31
|
+
suggestedMin?: number;
|
|
32
|
+
suggestedMax?: number;
|
|
33
|
+
range?: ILineRange;
|
|
34
|
+
autoAxisPadding: boolean;
|
|
35
|
+
}
|
|
36
|
+
export interface IUnitOptions {
|
|
37
|
+
options: string[];
|
|
38
|
+
selectedUnit: string;
|
|
39
|
+
setSelectedUnit: () => void;
|
|
40
|
+
}
|
|
41
|
+
export interface ILineChartAxis<PositionType = any> {
|
|
42
|
+
id?: string;
|
|
43
|
+
label: string;
|
|
44
|
+
position: PositionType;
|
|
45
|
+
color: string | string[];
|
|
46
|
+
unit?: IUnitOptions;
|
|
47
|
+
stepSize?: number;
|
|
48
|
+
gridLines?: ILineChartGraph;
|
|
49
|
+
}
|
|
50
|
+
export interface ILineChartAxes {
|
|
51
|
+
x: ILineChartAxis<'top' | 'bottom'>[];
|
|
52
|
+
y: ILineChartAxis<'left' | 'right'>[];
|
|
53
|
+
[key: string]: ILineChartAxis[];
|
|
54
|
+
}
|
|
55
|
+
export interface IDepthType {
|
|
56
|
+
options: string[];
|
|
57
|
+
selectedUnit: string;
|
|
58
|
+
setSelectedUnit: () => void;
|
|
59
|
+
}
|
|
60
|
+
export interface ILineChartStyling extends ICommonStyling {
|
|
61
|
+
squareAspectRatio?: number | boolean;
|
|
62
|
+
layoutPadding?: number | {
|
|
63
|
+
top: number;
|
|
64
|
+
bottom: number;
|
|
65
|
+
left: number;
|
|
66
|
+
right: number;
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
export interface ILineInteractions extends ICommonInteractions {
|
|
70
|
+
onAnimationComplete?: () => void;
|
|
71
|
+
}
|
|
72
|
+
export interface ILineLegend extends ICommonLegend {
|
|
73
|
+
customLegend?: ICommonCustomLegend<any>;
|
|
74
|
+
usePointStyle?: boolean;
|
|
75
|
+
}
|
|
76
|
+
export interface ILineChartOptions extends ICommonOptions {
|
|
77
|
+
title?: string | string[];
|
|
78
|
+
axes: ILineChartAxes;
|
|
79
|
+
scales: ICommonScales;
|
|
80
|
+
additionalAxesOptions: ILineChartAdditionalAxesOptions;
|
|
81
|
+
chartStyling: ILineChartStyling;
|
|
82
|
+
tooltip: ILineChartTooltip;
|
|
83
|
+
graph: ILineChartGraph;
|
|
84
|
+
annotations: ICommonAnnotations;
|
|
85
|
+
legend: ILineLegend;
|
|
86
|
+
chartOptions: ILChartOptions;
|
|
87
|
+
interactions: ILineInteractions;
|
|
88
|
+
dragData?: ICommonDragData;
|
|
89
|
+
depthType?: IDepthType | object;
|
|
90
|
+
}
|
|
91
|
+
export interface ILineChartDataset extends ICommonDataset {
|
|
92
|
+
lineTension?: number;
|
|
93
|
+
pointBackgroundColor?: string;
|
|
94
|
+
pointRadius?: number;
|
|
95
|
+
pointHoverRadius?: number;
|
|
96
|
+
pointHitRadius?: number;
|
|
97
|
+
fill?: boolean;
|
|
98
|
+
xAxisID?: string;
|
|
99
|
+
yAxisID?: string;
|
|
100
|
+
formation?: boolean;
|
|
101
|
+
displayGroup?: string | number;
|
|
102
|
+
pointStyle?: string;
|
|
103
|
+
}
|
|
104
|
+
export interface ILineChartData extends ICommonData {
|
|
105
|
+
data?: {
|
|
106
|
+
datasets: ILineChartDataset[];
|
|
107
|
+
};
|
|
108
|
+
options: ILineChartOptions;
|
|
109
|
+
persistenceId?: string;
|
|
110
|
+
controlsPortalId?: string;
|
|
111
|
+
}
|
|
112
|
+
export interface ILineChartProps {
|
|
113
|
+
chart: ILineChartData;
|
|
114
|
+
table?: ReactNode;
|
|
115
|
+
}
|
|
116
|
+
export interface IGeneratedLineChartDataset {
|
|
117
|
+
label?: string;
|
|
118
|
+
data: ICommonDataValue[];
|
|
119
|
+
showLine?: boolean;
|
|
120
|
+
lineTension: number;
|
|
121
|
+
spanGaps: boolean;
|
|
122
|
+
borderWidth: number;
|
|
123
|
+
borderDash: number[];
|
|
124
|
+
borderJoinStyle: 'round' | 'bevel' | 'miter';
|
|
125
|
+
borderColor: string;
|
|
126
|
+
backgroundColor: string | string[];
|
|
127
|
+
pointBackgroundColor: string;
|
|
128
|
+
pointRadius: number;
|
|
129
|
+
pointHoverRadius: number;
|
|
130
|
+
pointHitRadius: number;
|
|
131
|
+
isAnnotation?: boolean;
|
|
132
|
+
annotationType?: string;
|
|
133
|
+
annotationIndex?: number;
|
|
134
|
+
annotationLabel?: string;
|
|
135
|
+
annotationBackgroundColor?: string;
|
|
136
|
+
annotationPointBackgroundColor?: string;
|
|
137
|
+
annotationBorderColor?: string;
|
|
138
|
+
annotationBorderDash?: number[];
|
|
139
|
+
annotationBorderWidth?: number;
|
|
140
|
+
displayGroup?: string | number;
|
|
141
|
+
hideLegend?: boolean;
|
|
142
|
+
pointStyle?: string;
|
|
143
|
+
xAxisID?: string;
|
|
144
|
+
yAxisID?: string;
|
|
145
|
+
}
|
|
146
|
+
export type TGeneratedLineChartDatasets = IGeneratedLineChartDataset[];
|