@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,113 @@
|
|
|
1
|
+
import { ActiveElement, AnimationSpec, Chart, ChartEvent } from 'chart.js';
|
|
2
|
+
import { IScatterChartDefaultProps } from '../scatter-chart-default-props.interface';
|
|
3
|
+
import { MutableRefObject } from 'react';
|
|
4
|
+
import { ICommonHoveredItems } from '../../common/common.interface';
|
|
5
|
+
import { TGeneratedScatterChartDatasets } from '../scatter-chart.interface';
|
|
6
|
+
export declare const useScatterChartConfig: (chart: IScatterChartDefaultProps, chartRef: MutableRefObject<Chart | null>) => {
|
|
7
|
+
generatedDatasets: TGeneratedScatterChartDatasets;
|
|
8
|
+
scatterOptions: {
|
|
9
|
+
interactions: {
|
|
10
|
+
onLegendClick: (_: import('../../common/common.interface').UnusedParameter, legendItem: import('chart.js').LegendItem) => void;
|
|
11
|
+
onHover: (evt: ChartEvent, hoveredItems: ICommonHoveredItems[]) => void;
|
|
12
|
+
};
|
|
13
|
+
scales: {
|
|
14
|
+
x: {
|
|
15
|
+
type: "linear";
|
|
16
|
+
position: any;
|
|
17
|
+
beginAtZero: boolean;
|
|
18
|
+
reverse: boolean;
|
|
19
|
+
suggestedMax: number | undefined;
|
|
20
|
+
suggestedMin: number | undefined;
|
|
21
|
+
min: number | undefined;
|
|
22
|
+
max: number | undefined;
|
|
23
|
+
title: {
|
|
24
|
+
display: boolean;
|
|
25
|
+
text: string | undefined;
|
|
26
|
+
padding: number;
|
|
27
|
+
};
|
|
28
|
+
ticks: {
|
|
29
|
+
includeBounds: boolean;
|
|
30
|
+
font: {
|
|
31
|
+
size: number;
|
|
32
|
+
};
|
|
33
|
+
stepSize: number | undefined;
|
|
34
|
+
};
|
|
35
|
+
grid: {};
|
|
36
|
+
};
|
|
37
|
+
y: {
|
|
38
|
+
type: "linear";
|
|
39
|
+
position: any;
|
|
40
|
+
beginAtZero: boolean;
|
|
41
|
+
reverse: boolean;
|
|
42
|
+
suggestedMax: number | undefined;
|
|
43
|
+
suggestedMin: number | undefined;
|
|
44
|
+
min: number | undefined;
|
|
45
|
+
max: number | undefined;
|
|
46
|
+
title: {
|
|
47
|
+
display: boolean;
|
|
48
|
+
text: string | undefined;
|
|
49
|
+
padding: number;
|
|
50
|
+
};
|
|
51
|
+
ticks: {
|
|
52
|
+
includeBounds: boolean;
|
|
53
|
+
font: {
|
|
54
|
+
size: number;
|
|
55
|
+
};
|
|
56
|
+
stepSize: number | undefined;
|
|
57
|
+
};
|
|
58
|
+
grid: {};
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
animation: Partial<AnimationSpec<"scatter">>;
|
|
62
|
+
plugins: {
|
|
63
|
+
legend: {
|
|
64
|
+
display: boolean;
|
|
65
|
+
events: never[];
|
|
66
|
+
position: any;
|
|
67
|
+
align: "center" | "start" | "end";
|
|
68
|
+
labels: {
|
|
69
|
+
boxHeight: number;
|
|
70
|
+
boxWidth: number | undefined;
|
|
71
|
+
usePointStyle: boolean | undefined;
|
|
72
|
+
};
|
|
73
|
+
onClick: (_: import('../../common/common.interface').UnusedParameter, legendItem: import('chart.js').LegendItem) => void;
|
|
74
|
+
};
|
|
75
|
+
customLegendPlugin: {
|
|
76
|
+
htmlLegend: any;
|
|
77
|
+
};
|
|
78
|
+
title: {
|
|
79
|
+
display: boolean;
|
|
80
|
+
text: string | string[] | undefined;
|
|
81
|
+
} | {
|
|
82
|
+
display?: undefined;
|
|
83
|
+
text?: undefined;
|
|
84
|
+
};
|
|
85
|
+
annotation: {
|
|
86
|
+
annotations: {};
|
|
87
|
+
};
|
|
88
|
+
chartAreaBorder: {
|
|
89
|
+
borderColor: string;
|
|
90
|
+
};
|
|
91
|
+
datalabels: {
|
|
92
|
+
display: boolean;
|
|
93
|
+
};
|
|
94
|
+
tooltip: {
|
|
95
|
+
enabled: boolean;
|
|
96
|
+
callbacks: {
|
|
97
|
+
title: (tooltipItems: import('chart.js').TooltipItem<"scatter">[]) => string | undefined;
|
|
98
|
+
label: (tooltipItems: import('../utils/get-tooltip-config').IScatterTooltipItem) => string;
|
|
99
|
+
};
|
|
100
|
+
backgroundColor: string;
|
|
101
|
+
displayColors: boolean;
|
|
102
|
+
padding: number;
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
width?: number | string;
|
|
106
|
+
height?: number | string;
|
|
107
|
+
maintainAspectRatio: boolean;
|
|
108
|
+
staticChartHeight: boolean;
|
|
109
|
+
performanceMode: boolean;
|
|
110
|
+
onClick: (_evt: ChartEvent, _elements: ActiveElement[], chartInstance: Chart) => void;
|
|
111
|
+
onHover: (evt: ChartEvent, hoveredItems: ICommonHoveredItems[]) => void;
|
|
112
|
+
};
|
|
113
|
+
};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { ChartEvent } from 'chart.js';
|
|
2
|
+
import { ICommonAdditionalAxesOptions, ICommonAnnotations, ICommonCustomLegend, ICommonLegend } from '../common/common.interface';
|
|
3
|
+
import { ChartDirection } from '../common/enums';
|
|
4
|
+
import { IScatterAxes, IScatterChartDataset } from './scatter-chart.interface';
|
|
5
|
+
export interface IDefaultChartStyling {
|
|
6
|
+
width?: number | string;
|
|
7
|
+
height?: number | string;
|
|
8
|
+
maintainAspectRatio: boolean;
|
|
9
|
+
staticChartHeight: boolean;
|
|
10
|
+
performanceMode: boolean;
|
|
11
|
+
}
|
|
12
|
+
interface IDefaultTooltip {
|
|
13
|
+
enabled: boolean;
|
|
14
|
+
tooltips: boolean;
|
|
15
|
+
showLabelsInTooltips: boolean;
|
|
16
|
+
backgroundColor: string;
|
|
17
|
+
displayColors: boolean;
|
|
18
|
+
scientificNotation: boolean;
|
|
19
|
+
}
|
|
20
|
+
interface IDefaultScatterGraph {
|
|
21
|
+
showMinorGridlines: boolean;
|
|
22
|
+
showDataLabels: boolean;
|
|
23
|
+
}
|
|
24
|
+
export interface IDefaultScatterLegend extends ICommonLegend {
|
|
25
|
+
customLegend?: ICommonCustomLegend<any>;
|
|
26
|
+
}
|
|
27
|
+
interface IDefaultChartOptions {
|
|
28
|
+
enableZoom: boolean;
|
|
29
|
+
enablePan: boolean;
|
|
30
|
+
}
|
|
31
|
+
export interface IDefaultInteractions {
|
|
32
|
+
onLegendClick?: (text: string, hidden: boolean) => void;
|
|
33
|
+
onHover?: (event?: ChartEvent, datasetIndex?: number, index?: number, generatedDataset?: IScatterChartDataset[]) => void;
|
|
34
|
+
onUnhover?: (event?: ChartEvent, datasetIndex?: number, index?: number, generatedDataset?: any[]) => void;
|
|
35
|
+
onAnimationComplete?: () => void;
|
|
36
|
+
}
|
|
37
|
+
interface IDefaultChartData {
|
|
38
|
+
labels: string[];
|
|
39
|
+
datasets: IScatterChartDataset[];
|
|
40
|
+
}
|
|
41
|
+
export interface IDefaultScatterOptions {
|
|
42
|
+
title: string | string[];
|
|
43
|
+
chartStyling: IDefaultChartStyling;
|
|
44
|
+
tooltip: IDefaultTooltip;
|
|
45
|
+
graph: IDefaultScatterGraph;
|
|
46
|
+
axes: IScatterAxes;
|
|
47
|
+
additionalAxesOptions: ICommonAdditionalAxesOptions;
|
|
48
|
+
legend: IDefaultScatterLegend;
|
|
49
|
+
chartOptions: IDefaultChartOptions;
|
|
50
|
+
interactions: IDefaultInteractions;
|
|
51
|
+
annotations?: ICommonAnnotations;
|
|
52
|
+
direction: ChartDirection;
|
|
53
|
+
}
|
|
54
|
+
export interface IScatterChartDefaultProps {
|
|
55
|
+
testId: string | null;
|
|
56
|
+
data: IDefaultChartData;
|
|
57
|
+
options: {
|
|
58
|
+
title: string | string[];
|
|
59
|
+
chartStyling: IDefaultChartStyling;
|
|
60
|
+
tooltip: IDefaultTooltip;
|
|
61
|
+
graph: IDefaultScatterGraph;
|
|
62
|
+
axes: IScatterAxes;
|
|
63
|
+
additionalAxesOptions: ICommonAdditionalAxesOptions;
|
|
64
|
+
legend: IDefaultScatterLegend;
|
|
65
|
+
chartOptions: IDefaultChartOptions;
|
|
66
|
+
interactions: IDefaultInteractions;
|
|
67
|
+
annotations?: ICommonAnnotations;
|
|
68
|
+
direction: ChartDirection;
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
export {};
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { ChartDirection } from '../common/enums.ts';
|
|
2
|
+
import { ICommonAdditionalAxesOptions, ICommonAxis, ICommonData, ICommonDataset, ICommonDataValue, ICommonLegend, ICommonOptions } from '../common/common.interface';
|
|
3
|
+
export interface IScatterLegend extends ICommonLegend {
|
|
4
|
+
useDataset?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export interface IScatterGraph {
|
|
7
|
+
showMinorGridlines?: boolean;
|
|
8
|
+
showDataLabels?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export interface IScatterTooltip {
|
|
11
|
+
enabled?: boolean;
|
|
12
|
+
tooltips?: boolean;
|
|
13
|
+
showLabelsInTooltips: boolean;
|
|
14
|
+
backgroundColor?: string;
|
|
15
|
+
displayColors?: boolean;
|
|
16
|
+
scientificNotation?: boolean;
|
|
17
|
+
}
|
|
18
|
+
export interface IScatterAxes {
|
|
19
|
+
x: ICommonAxis<'top' | 'bottom'>[];
|
|
20
|
+
y: ICommonAxis<'left' | 'right'>[];
|
|
21
|
+
[key: string]: ICommonAxis[];
|
|
22
|
+
}
|
|
23
|
+
export interface IScatterOptions extends ICommonOptions {
|
|
24
|
+
graph?: IScatterGraph;
|
|
25
|
+
legend?: IScatterLegend;
|
|
26
|
+
axes?: IScatterAxes;
|
|
27
|
+
additionalAxesOptions?: ICommonAdditionalAxesOptions;
|
|
28
|
+
direction: ChartDirection;
|
|
29
|
+
}
|
|
30
|
+
export interface IScatterDataValue extends ICommonDataValue {
|
|
31
|
+
label?: string;
|
|
32
|
+
}
|
|
33
|
+
export interface IScatterChartDataset extends ICommonDataset {
|
|
34
|
+
data: IScatterDataValue[];
|
|
35
|
+
hideLegend?: boolean;
|
|
36
|
+
}
|
|
37
|
+
export interface IScatterData {
|
|
38
|
+
labels?: string[];
|
|
39
|
+
datasets?: IScatterChartDataset[];
|
|
40
|
+
xUnit?: string;
|
|
41
|
+
yUnit?: string;
|
|
42
|
+
}
|
|
43
|
+
export interface IScatterChartData extends ICommonData {
|
|
44
|
+
data: IScatterData;
|
|
45
|
+
options: IScatterOptions;
|
|
46
|
+
}
|
|
47
|
+
export interface IScatterChartProps {
|
|
48
|
+
chart: IScatterChartData;
|
|
49
|
+
testId?: string | null;
|
|
50
|
+
}
|
|
51
|
+
export interface IScatterGeneratedLabel {
|
|
52
|
+
text: string;
|
|
53
|
+
fillStyle: string;
|
|
54
|
+
strokeStyle: string;
|
|
55
|
+
index: number;
|
|
56
|
+
}
|
|
57
|
+
export interface IScatterLegendItemFilter {
|
|
58
|
+
index: number;
|
|
59
|
+
datasetIndex: number;
|
|
60
|
+
hidden: boolean;
|
|
61
|
+
}
|
|
62
|
+
export interface IScatterDataLabelsOptions {
|
|
63
|
+
display?: 'auto' | boolean;
|
|
64
|
+
align?: 'center';
|
|
65
|
+
anchor?: 'center';
|
|
66
|
+
formatter?: (_value: any, context: any) => any;
|
|
67
|
+
}
|
|
68
|
+
export interface IGeneratedScatterChartDataset {
|
|
69
|
+
label: string;
|
|
70
|
+
backgroundColor: string[];
|
|
71
|
+
borderColor: string;
|
|
72
|
+
borderWidth: number;
|
|
73
|
+
borderDash: number[];
|
|
74
|
+
annotationType?: string;
|
|
75
|
+
data: IScatterDataValue[];
|
|
76
|
+
hideLegend?: boolean;
|
|
77
|
+
displayGroup?: string | number;
|
|
78
|
+
isAnnotation?: boolean;
|
|
79
|
+
annotationIndex?: number;
|
|
80
|
+
}
|
|
81
|
+
export type TGeneratedScatterChartDatasets = IGeneratedScatterChartDataset[];
|
|
@@ -0,0 +1,279 @@
|
|
|
1
|
+
import { ScatterChart } from './scatter-chart';
|
|
2
|
+
declare namespace _default {
|
|
3
|
+
export let title: string;
|
|
4
|
+
export { ScatterChart as component };
|
|
5
|
+
export namespace args {
|
|
6
|
+
export { singleScatterChart as chart };
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
export default _default;
|
|
10
|
+
export function Default(args: any): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export namespace Default {
|
|
12
|
+
export namespace args_1 {
|
|
13
|
+
export { singleScatterChart as chart };
|
|
14
|
+
}
|
|
15
|
+
export { args_1 as args };
|
|
16
|
+
}
|
|
17
|
+
export function StyledChart(args: any): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export namespace StyledChart {
|
|
19
|
+
export namespace args_2 {
|
|
20
|
+
export { styledScatterChart as chart };
|
|
21
|
+
}
|
|
22
|
+
export { args_2 as args };
|
|
23
|
+
}
|
|
24
|
+
export function MultipleDatasets(args: any): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export namespace MultipleDatasets {
|
|
26
|
+
export namespace args_3 {
|
|
27
|
+
export { multipleScatterData as chart };
|
|
28
|
+
}
|
|
29
|
+
export { args_3 as args };
|
|
30
|
+
}
|
|
31
|
+
export function WithDataLabels(args: any): import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
export namespace WithDataLabels {
|
|
33
|
+
export namespace args_4 {
|
|
34
|
+
export { scatterWithDataLabels as chart };
|
|
35
|
+
}
|
|
36
|
+
export { args_4 as args };
|
|
37
|
+
}
|
|
38
|
+
export function WithTooltips(args: any): import("react/jsx-runtime").JSX.Element;
|
|
39
|
+
export namespace WithTooltips {
|
|
40
|
+
export namespace args_5 {
|
|
41
|
+
export { scatterWithTooltips as chart };
|
|
42
|
+
}
|
|
43
|
+
export { args_5 as args };
|
|
44
|
+
}
|
|
45
|
+
export function WithAnnotation(args: any): import("react/jsx-runtime").JSX.Element;
|
|
46
|
+
export namespace WithAnnotation {
|
|
47
|
+
export namespace args_6 {
|
|
48
|
+
export { scatterWithAnnotation as chart };
|
|
49
|
+
}
|
|
50
|
+
export { args_6 as args };
|
|
51
|
+
}
|
|
52
|
+
export function WithAxesLabels(args: any): import("react/jsx-runtime").JSX.Element;
|
|
53
|
+
export namespace WithAxesLabels {
|
|
54
|
+
export namespace args_7 {
|
|
55
|
+
export { scatterWithAxesLabels as chart };
|
|
56
|
+
}
|
|
57
|
+
export { args_7 as args };
|
|
58
|
+
}
|
|
59
|
+
export function WithGradient(args: any): import("react/jsx-runtime").JSX.Element;
|
|
60
|
+
export namespace WithGradient {
|
|
61
|
+
export namespace args_8 {
|
|
62
|
+
export { scatterWithGradient as chart };
|
|
63
|
+
}
|
|
64
|
+
export { args_8 as args };
|
|
65
|
+
}
|
|
66
|
+
export function WithDatapointsHavingLabel(args: any): import("react/jsx-runtime").JSX.Element;
|
|
67
|
+
export namespace WithDatapointsHavingLabel {
|
|
68
|
+
export namespace args_9 {
|
|
69
|
+
export { scatterWithDatapointsHavingLabel as chart };
|
|
70
|
+
}
|
|
71
|
+
export { args_9 as args };
|
|
72
|
+
}
|
|
73
|
+
export function CustomPointColor(args: any): import("react/jsx-runtime").JSX.Element;
|
|
74
|
+
export namespace CustomPointColor {
|
|
75
|
+
export namespace args_10 {
|
|
76
|
+
export { scatterWithCustomColors as chart };
|
|
77
|
+
}
|
|
78
|
+
export { args_10 as args };
|
|
79
|
+
}
|
|
80
|
+
declare namespace singleScatterChart {
|
|
81
|
+
namespace data {
|
|
82
|
+
export { labels1 as labels };
|
|
83
|
+
export let datasets: {
|
|
84
|
+
label: string;
|
|
85
|
+
data: {
|
|
86
|
+
x: number;
|
|
87
|
+
y: number;
|
|
88
|
+
}[];
|
|
89
|
+
}[];
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
declare namespace styledScatterChart {
|
|
93
|
+
export namespace data_1 {
|
|
94
|
+
export { labels1 as labels };
|
|
95
|
+
let datasets_1: {
|
|
96
|
+
label: string;
|
|
97
|
+
data: {
|
|
98
|
+
x: number;
|
|
99
|
+
y: number;
|
|
100
|
+
}[];
|
|
101
|
+
}[];
|
|
102
|
+
export { datasets_1 as datasets };
|
|
103
|
+
}
|
|
104
|
+
export { data_1 as data };
|
|
105
|
+
export namespace options {
|
|
106
|
+
namespace chartStyling {
|
|
107
|
+
let height: number;
|
|
108
|
+
let width: number;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
declare namespace multipleScatterData {
|
|
113
|
+
export namespace data_2 {
|
|
114
|
+
export { labels1 as labels };
|
|
115
|
+
let datasets_2: {
|
|
116
|
+
label: string;
|
|
117
|
+
data: {
|
|
118
|
+
x: number;
|
|
119
|
+
y: number;
|
|
120
|
+
}[];
|
|
121
|
+
}[];
|
|
122
|
+
export { datasets_2 as datasets };
|
|
123
|
+
}
|
|
124
|
+
export { data_2 as data };
|
|
125
|
+
}
|
|
126
|
+
declare namespace scatterWithDataLabels {
|
|
127
|
+
export namespace data_3 {
|
|
128
|
+
export { labels1 as labels };
|
|
129
|
+
let datasets_3: {
|
|
130
|
+
label: string;
|
|
131
|
+
data: {
|
|
132
|
+
x: number;
|
|
133
|
+
y: number;
|
|
134
|
+
}[];
|
|
135
|
+
}[];
|
|
136
|
+
export { datasets_3 as datasets };
|
|
137
|
+
}
|
|
138
|
+
export { data_3 as data };
|
|
139
|
+
export namespace options_1 {
|
|
140
|
+
let title_1: string;
|
|
141
|
+
export { title_1 as title };
|
|
142
|
+
export namespace graph {
|
|
143
|
+
let showDataLabels: boolean;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
export { options_1 as options };
|
|
147
|
+
}
|
|
148
|
+
declare namespace scatterWithTooltips {
|
|
149
|
+
export namespace data_4 {
|
|
150
|
+
export { labels1 as labels };
|
|
151
|
+
let datasets_4: {
|
|
152
|
+
label: string;
|
|
153
|
+
data: {
|
|
154
|
+
x: number;
|
|
155
|
+
y: number;
|
|
156
|
+
}[];
|
|
157
|
+
}[];
|
|
158
|
+
export { datasets_4 as datasets };
|
|
159
|
+
}
|
|
160
|
+
export { data_4 as data };
|
|
161
|
+
export namespace options_2 {
|
|
162
|
+
let title_2: string;
|
|
163
|
+
export { title_2 as title };
|
|
164
|
+
export namespace tooltip {
|
|
165
|
+
let title_3: string;
|
|
166
|
+
export { title_3 as title };
|
|
167
|
+
export let showLabelsInTooltips: boolean;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
export { options_2 as options };
|
|
171
|
+
}
|
|
172
|
+
declare namespace scatterWithAnnotation {
|
|
173
|
+
export namespace data_5 {
|
|
174
|
+
export { labels1 as labels };
|
|
175
|
+
let datasets_5: {
|
|
176
|
+
label: string;
|
|
177
|
+
data: {
|
|
178
|
+
x: number;
|
|
179
|
+
y: number;
|
|
180
|
+
}[];
|
|
181
|
+
}[];
|
|
182
|
+
export { datasets_5 as datasets };
|
|
183
|
+
}
|
|
184
|
+
export { data_5 as data };
|
|
185
|
+
export namespace options_3 {
|
|
186
|
+
let title_4: string;
|
|
187
|
+
export { title_4 as title };
|
|
188
|
+
export namespace annotations {
|
|
189
|
+
let showAnnotations: boolean;
|
|
190
|
+
let annotationsData: {
|
|
191
|
+
annotationAxis: string;
|
|
192
|
+
label: string;
|
|
193
|
+
value: number;
|
|
194
|
+
color: string;
|
|
195
|
+
}[];
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
export { options_3 as options };
|
|
199
|
+
}
|
|
200
|
+
declare namespace scatterWithAxesLabels {
|
|
201
|
+
export namespace data_6 {
|
|
202
|
+
export { labels1 as labels };
|
|
203
|
+
let datasets_6: {
|
|
204
|
+
label: string;
|
|
205
|
+
data: {
|
|
206
|
+
x: number;
|
|
207
|
+
y: number;
|
|
208
|
+
}[];
|
|
209
|
+
}[];
|
|
210
|
+
export { datasets_6 as datasets };
|
|
211
|
+
}
|
|
212
|
+
export { data_6 as data };
|
|
213
|
+
export namespace options_4 {
|
|
214
|
+
let title_5: string;
|
|
215
|
+
export { title_5 as title };
|
|
216
|
+
export namespace axes {
|
|
217
|
+
let x: {
|
|
218
|
+
label: string;
|
|
219
|
+
}[];
|
|
220
|
+
let y: {
|
|
221
|
+
label: string;
|
|
222
|
+
}[];
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
export { options_4 as options };
|
|
226
|
+
}
|
|
227
|
+
declare namespace scatterWithGradient {
|
|
228
|
+
export namespace options_5 {
|
|
229
|
+
let title_6: string;
|
|
230
|
+
export { title_6 as title };
|
|
231
|
+
export namespace chartStyling_1 {
|
|
232
|
+
namespace gradient {
|
|
233
|
+
let display: boolean;
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
export { chartStyling_1 as chartStyling };
|
|
237
|
+
}
|
|
238
|
+
export { options_5 as options };
|
|
239
|
+
}
|
|
240
|
+
declare namespace scatterWithDatapointsHavingLabel {
|
|
241
|
+
export namespace data_7 {
|
|
242
|
+
let datasets_7: {
|
|
243
|
+
label: string;
|
|
244
|
+
data: {
|
|
245
|
+
x: number;
|
|
246
|
+
y: number;
|
|
247
|
+
}[];
|
|
248
|
+
}[];
|
|
249
|
+
export { datasets_7 as datasets };
|
|
250
|
+
}
|
|
251
|
+
export { data_7 as data };
|
|
252
|
+
export namespace options_6 {
|
|
253
|
+
let title_7: string;
|
|
254
|
+
export { title_7 as title };
|
|
255
|
+
export namespace tooltip_1 {
|
|
256
|
+
let showLabelsInTooltips_1: boolean;
|
|
257
|
+
export { showLabelsInTooltips_1 as showLabelsInTooltips };
|
|
258
|
+
}
|
|
259
|
+
export { tooltip_1 as tooltip };
|
|
260
|
+
}
|
|
261
|
+
export { options_6 as options };
|
|
262
|
+
}
|
|
263
|
+
declare namespace scatterWithCustomColors {
|
|
264
|
+
export namespace data_8 {
|
|
265
|
+
export { labels1 as labels };
|
|
266
|
+
let datasets_8: {
|
|
267
|
+
backgroundColor: string;
|
|
268
|
+
borderColor: string;
|
|
269
|
+
label: string;
|
|
270
|
+
data: {
|
|
271
|
+
x: number;
|
|
272
|
+
y: number;
|
|
273
|
+
}[];
|
|
274
|
+
}[];
|
|
275
|
+
export { datasets_8 as datasets };
|
|
276
|
+
}
|
|
277
|
+
export { data_8 as data };
|
|
278
|
+
}
|
|
279
|
+
declare const labels1: string[];
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { IDefaultScatterOptions } from '../scatter-chart-default-props.interface';
|
|
2
|
+
export declare const getScatterChartScales: (options: IDefaultScatterOptions) => {
|
|
3
|
+
x: {
|
|
4
|
+
type: "linear";
|
|
5
|
+
position: any;
|
|
6
|
+
beginAtZero: boolean;
|
|
7
|
+
reverse: boolean;
|
|
8
|
+
suggestedMax: number | undefined;
|
|
9
|
+
suggestedMin: number | undefined;
|
|
10
|
+
min: number | undefined;
|
|
11
|
+
max: number | undefined;
|
|
12
|
+
title: {
|
|
13
|
+
display: boolean;
|
|
14
|
+
text: string | undefined;
|
|
15
|
+
padding: number;
|
|
16
|
+
};
|
|
17
|
+
ticks: {
|
|
18
|
+
includeBounds: boolean;
|
|
19
|
+
font: {
|
|
20
|
+
size: number;
|
|
21
|
+
};
|
|
22
|
+
stepSize: number | undefined;
|
|
23
|
+
};
|
|
24
|
+
grid: {};
|
|
25
|
+
};
|
|
26
|
+
y: {
|
|
27
|
+
type: "linear";
|
|
28
|
+
position: any;
|
|
29
|
+
beginAtZero: boolean;
|
|
30
|
+
reverse: boolean;
|
|
31
|
+
suggestedMax: number | undefined;
|
|
32
|
+
suggestedMin: number | undefined;
|
|
33
|
+
min: number | undefined;
|
|
34
|
+
max: number | undefined;
|
|
35
|
+
title: {
|
|
36
|
+
display: boolean;
|
|
37
|
+
text: string | undefined;
|
|
38
|
+
padding: number;
|
|
39
|
+
};
|
|
40
|
+
ticks: {
|
|
41
|
+
includeBounds: boolean;
|
|
42
|
+
font: {
|
|
43
|
+
size: number;
|
|
44
|
+
};
|
|
45
|
+
stepSize: number | undefined;
|
|
46
|
+
};
|
|
47
|
+
grid: {};
|
|
48
|
+
};
|
|
49
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { TooltipItem } from 'chart.js';
|
|
2
|
+
import { IDefaultScatterOptions } from '../scatter-chart-default-props.interface';
|
|
3
|
+
interface IRawData {
|
|
4
|
+
x: number;
|
|
5
|
+
y: number;
|
|
6
|
+
label?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface IScatterTooltipItem extends TooltipItem<'scatter'> {
|
|
9
|
+
raw: IRawData;
|
|
10
|
+
}
|
|
11
|
+
export declare const getTooltipsConfig: (options: IDefaultScatterOptions) => {
|
|
12
|
+
enabled: boolean;
|
|
13
|
+
callbacks: {
|
|
14
|
+
title: (tooltipItems: TooltipItem<"scatter">[]) => string | undefined;
|
|
15
|
+
label: (tooltipItems: IScatterTooltipItem) => string;
|
|
16
|
+
};
|
|
17
|
+
backgroundColor: string;
|
|
18
|
+
displayColors: boolean;
|
|
19
|
+
padding: number;
|
|
20
|
+
};
|
|
21
|
+
export {};
|