@oliasoft-open-source/charts-library 4.8.3-beta-6 → 5.0.0-beta-2
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-D6i6tiFz.js +1 -0
- package/dist/assets/DocsRenderer-CFRXHY34-D88vu1Xb.js +580 -0
- package/dist/assets/bar-chart-const-Cgj9sgUU.js +1 -0
- package/dist/assets/bar-chart.stories-D9mtWCnD.js +153 -0
- package/dist/assets/client-9BU5HM4U.js +1 -0
- package/dist/assets/entry-preview-D2XJoWVM.js +10 -0
- package/dist/assets/entry-preview-docs-z3mMcuG4.js +46 -0
- package/dist/assets/get-custom-legend-plugin-example-Bx2dNJXg.js +1 -0
- package/dist/assets/get-draggableData-DO0Px5pc.js +2 -0
- package/dist/assets/iframe-DLnw2TiW.js +217 -0
- package/dist/assets/index-B-BONL6g.js +1 -0
- package/dist/assets/index-BGqSdrBK.js +1 -0
- package/dist/assets/index-CVdx34fM.js +1 -0
- package/dist/assets/index-D3-0uUTW.js +24 -0
- package/dist/assets/index-Dytf1aFS.js +8 -0
- package/dist/assets/index-eCxJ45ll.js +9 -0
- package/dist/assets/jsx-runtime-Y5Ju2SGo.js +9 -0
- package/dist/assets/legend-BI53UIaI.js +1346 -0
- package/dist/assets/legend-context-BNCYpFYh.js +68 -0
- package/dist/assets/line-chart-BdFuLh7N.js +1 -0
- package/dist/assets/line-chart.stories-BVsiy8CQ.js +1130 -0
- package/dist/assets/line-chart.test-case.stories-DgfMW1VB.js +142 -0
- package/dist/assets/pie-chart.stories-BVurv17M.js +45 -0
- package/dist/assets/preview-CLM2f008.js +2 -0
- package/dist/assets/preview-DD_OYowb.js +1 -0
- package/dist/assets/preview-XObsormK.js +3 -0
- package/dist/assets/react-18-DZY5LW1V.js +1 -0
- package/dist/assets/react-CxVRKATl.js +1 -0
- package/dist/assets/scatter-chart.stories-DnivHhIH.js +41 -0
- package/dist/favicon.svg +1 -0
- package/dist/iframe.html +666 -0
- package/dist/index.d.ts +8 -1
- package/dist/index.html +149 -0
- package/dist/{index.js → index.js.js} +2582 -2494
- package/dist/{index.js.map → index.js.js.map} +1 -1
- package/dist/index.json +1 -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/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/package.json +54 -54
- package/dist/src/components/bar-chart/bar-chart-const.d.ts +0 -2
- package/dist/src/components/bar-chart/bar-chart-default-props.d.ts +0 -2
- package/dist/src/components/bar-chart/bar-chart.d.ts +0 -3
- package/dist/src/components/bar-chart/bar-chart.interface.d.ts +0 -96
- package/dist/src/components/bar-chart/bar-chart.stories.d.ts +0 -807
- package/dist/src/components/bar-chart/utils/get-bar-chart-data-labels.d.ts +0 -10
- package/dist/src/components/bar-chart/utils/get-bar-chart-scales.d.ts +0 -3
- package/dist/src/components/bar-chart/utils/get-bar-chart-tooltips.d.ts +0 -6
- package/dist/src/components/bar-chart/utils/use-bar-chart-config.d.ts +0 -13
- package/dist/src/components/bar-chart/utils/use-bar-chart-options.d.ts +0 -55
- package/dist/src/components/common/common.interface.d.ts +0 -206
- package/dist/src/components/common/controls-portal.d.ts +0 -7
- package/dist/src/components/common/enums.d.ts +0 -10
- package/dist/src/components/common/helpers/chart-border-plugin.d.ts +0 -16
- package/dist/src/components/common/helpers/chart-consts.d.ts +0 -39
- package/dist/src/components/common/helpers/chart-utils.d.ts +0 -85
- package/dist/src/components/common/helpers/container.d.ts +0 -18
- package/dist/src/components/common/helpers/custom-format-number.d.ts +0 -1
- package/dist/src/components/common/helpers/download-pgn.d.ts +0 -4
- package/dist/src/components/common/helpers/enums.d.ts +0 -80
- package/dist/src/components/common/helpers/get-chart-annotation.d.ts +0 -90
- package/dist/src/components/common/helpers/get-custom-legend-plugin-example.d.ts +0 -8
- package/dist/src/components/common/helpers/get-draggableData.d.ts +0 -18
- package/dist/src/components/common/helpers/range/estimate-close-values.test.d.ts +0 -1
- package/dist/src/components/common/helpers/range/estimate-data-series-have-close-values.d.ts +0 -8
- package/dist/src/components/common/helpers/range/range.d.ts +0 -33
- package/dist/src/components/common/helpers/range/range.test.d.ts +0 -1
- package/dist/src/components/common/helpers/text.d.ts +0 -1
- package/dist/src/components/common/helpers/to-annotation.d.ts +0 -4
- package/dist/src/components/common/hooks/use-generated-labels.d.ts +0 -4
- package/dist/src/components/common/hooks/use-legend-state.d.ts +0 -28
- package/dist/src/components/common/hooks/use-legend.d.ts +0 -4
- package/dist/src/components/common/hooks/use-reset.d.ts +0 -3
- package/dist/src/components/common/legend-component/legend-dropzone.d.ts +0 -3
- package/dist/src/components/common/legend-component/legend-interface.d.ts +0 -48
- package/dist/src/components/common/legend-component/legend-item/LegendItemLine.d.ts +0 -5
- package/dist/src/components/common/legend-component/legend-item/legend-item.d.ts +0 -3
- package/dist/src/components/common/legend-component/legend-panel.d.ts +0 -3
- package/dist/src/components/common/legend-component/legend.d.ts +0 -3
- package/dist/src/components/common/legend-component/state/legend-action-types.d.ts +0 -2
- package/dist/src/components/common/legend-component/state/legend-context.d.ts +0 -12
- package/dist/src/components/common/legend-component/state/legend-state-reducer.d.ts +0 -26
- package/dist/src/components/common/legend-component/utils/create-style-object.d.ts +0 -27
- package/dist/src/components/common/legend-component/utils/get-generated-labels.d.ts +0 -2
- package/dist/src/components/common/plugins/annotation-dragger-plugin/annotation-dragger-plugin.d.ts +0 -15
- package/dist/src/components/common/plugins/annotation-dragger-plugin/enums.d.ts +0 -20
- package/dist/src/components/common/plugins/annotation-dragger-plugin/event-helpers.d.ts +0 -6
- package/dist/src/components/common/plugins/annotation-dragger-plugin/helpers.d.ts +0 -53
- package/dist/src/components/common/plugins/annotation-dragger-plugin/helpers.test.d.ts +0 -1
- package/dist/src/components/common/plugins/annotation-dragger-plugin/point-annotation-label.d.ts +0 -5
- package/dist/src/components/common/plugins/gradient-background-plugin/enums.d.ts +0 -10
- package/dist/src/components/common/plugins/gradient-background-plugin/gradient-background-plugin.d.ts +0 -2
- package/dist/src/components/line-chart/constants/default-translations.d.ts +0 -25
- package/dist/src/components/line-chart/constants/line-chart-consts.d.ts +0 -13
- package/dist/src/components/line-chart/controls/axes-options/axes-options-interfaces.d.ts +0 -56
- package/dist/src/components/line-chart/controls/axes-options/axes-options.d.ts +0 -6
- package/dist/src/components/line-chart/controls/axes-options/axes-validation.d.ts +0 -8
- package/dist/src/components/line-chart/controls/controls-interfaces.d.ts +0 -20
- package/dist/src/components/line-chart/controls/controls.d.ts +0 -3
- package/dist/src/components/line-chart/controls/drag-options-interfaces.d.ts +0 -14
- package/dist/src/components/line-chart/controls/drag-options.d.ts +0 -23
- package/dist/src/components/line-chart/controls/line-options.d.ts +0 -19
- package/dist/src/components/line-chart/hooks/use-chart-functions.d.ts +0 -32
- package/dist/src/components/line-chart/hooks/use-chart-options.d.ts +0 -16
- package/dist/src/components/line-chart/hooks/use-chart-plugins.d.ts +0 -7
- package/dist/src/components/line-chart/hooks/use-chart-state.d.ts +0 -16
- package/dist/src/components/line-chart/hooks/use-toggle-handler.d.ts +0 -12
- package/dist/src/components/line-chart/initialize/config.d.ts +0 -12
- package/dist/src/components/line-chart/initialize/initialize-line-chart.d.ts +0 -12
- package/dist/src/components/line-chart/initialize/initialize-line-chart.test.d.ts +0 -1
- package/dist/src/components/line-chart/line-chart-get-default-props.d.ts +0 -2
- package/dist/src/components/line-chart/line-chart.d.ts +0 -3
- package/dist/src/components/line-chart/line-chart.interface.d.ts +0 -150
- package/dist/src/components/line-chart/line-chart.stories.d.ts +0 -1729
- package/dist/src/components/line-chart/line-chart.test-case.stories.d.ts +0 -29
- package/dist/src/components/line-chart/plugins/chart-area-text-plugin.d.ts +0 -17
- package/dist/src/components/line-chart/plugins/line-chart.minor-gridlines-plugin.d.ts +0 -8
- package/dist/src/components/line-chart/plugins/line-chart.minor-gridlines-plugin.test.d.ts +0 -1
- package/dist/src/components/line-chart/plugins/plugin-constants.d.ts +0 -11
- package/dist/src/components/line-chart/plugins/plugins.interface.d.ts +0 -9
- package/dist/src/components/line-chart/state/action-types.d.ts +0 -11
- package/dist/src/components/line-chart/state/helpers.d.ts +0 -13
- package/dist/src/components/line-chart/state/initial-state.d.ts +0 -14
- package/dist/src/components/line-chart/state/line-chart-reducer.d.ts +0 -2
- package/dist/src/components/line-chart/state/manage-state-in-local-storage.d.ts +0 -15
- package/dist/src/components/line-chart/state/state.interfaces.d.ts +0 -25
- package/dist/src/components/line-chart/utils/__tests__/get-annotations-data.test.d.ts +0 -1
- package/dist/src/components/line-chart/utils/__tests__/get-axes-data-from-metasets.test.d.ts +0 -1
- package/dist/src/components/line-chart/utils/__tests__/get-axes-type-from-key.test.d.ts +0 -1
- package/dist/src/components/line-chart/utils/__tests__/get-axis-range-by-type.test.d.ts +0 -1
- package/dist/src/components/line-chart/utils/__tests__/get-line-chart-tooltips.test.d.ts +0 -1
- package/dist/src/components/line-chart/utils/axis-formatting/axis-formatting.d.ts +0 -2
- package/dist/src/components/line-chart/utils/axis-formatting/axis-formatting.test.d.ts +0 -1
- package/dist/src/components/line-chart/utils/axis-scales/axis-scales.d.ts +0 -11
- package/dist/src/components/line-chart/utils/axis-scales/axis-scales.test.d.ts +0 -1
- package/dist/src/components/line-chart/utils/check-custom-option/check-custom-option.d.ts +0 -12
- package/dist/src/components/line-chart/utils/check-custom-option/check-custom-option.test.d.ts +0 -1
- package/dist/src/components/line-chart/utils/datalabels-alignment/__tests__/get-alignment-condition.test.d.ts +0 -1
- package/dist/src/components/line-chart/utils/datalabels-alignment/__tests__/get-alignment-data.test.d.ts +0 -1
- package/dist/src/components/line-chart/utils/datalabels-alignment/__tests__/get-datalabels-position.test.d.ts +0 -1
- package/dist/src/components/line-chart/utils/datalabels-alignment/datalabels-alignment.interface.d.ts +0 -20
- package/dist/src/components/line-chart/utils/datalabels-alignment/get-alignment-condition.d.ts +0 -8
- package/dist/src/components/line-chart/utils/datalabels-alignment/get-alignment-data.d.ts +0 -11
- package/dist/src/components/line-chart/utils/datalabels-alignment/get-datalabels-position.d.ts +0 -6
- package/dist/src/components/line-chart/utils/enums.d.ts +0 -4
- package/dist/src/components/line-chart/utils/generate-line-chart-datasets.d.ts +0 -8
- package/dist/src/components/line-chart/utils/get-annotations-data.d.ts +0 -1
- package/dist/src/components/line-chart/utils/get-axes-data-from-metasets.d.ts +0 -1
- package/dist/src/components/line-chart/utils/get-axes-ranges-from-chart.d.ts +0 -9
- package/dist/src/components/line-chart/utils/get-axis-range-by-type.d.ts +0 -10
- package/dist/src/components/line-chart/utils/get-generated-labels.d.ts +0 -2
- package/dist/src/components/line-chart/utils/get-line-chart-data-labels.d.ts +0 -19
- package/dist/src/components/line-chart/utils/get-line-chart-scales.d.ts +0 -4
- package/dist/src/components/line-chart/utils/get-line-chart-tooltips.d.ts +0 -20
- package/dist/src/components/line-chart/utils/line-chart-utils.d.ts +0 -32
- package/dist/src/components/line-chart/utils/translations/get-translations.d.ts +0 -8
- package/dist/src/components/line-chart/utils/translations/get-translations.test.d.ts +0 -1
- package/dist/src/components/pie-chart/pie-chart-defalut-props.interface.d.ts +0 -50
- package/dist/src/components/pie-chart/pie-chart-get-default-props.d.ts +0 -3
- package/dist/src/components/pie-chart/pie-chart.d.ts +0 -3
- package/dist/src/components/pie-chart/pie-chart.interface.d.ts +0 -70
- package/dist/src/components/pie-chart/pie-chart.stories.d.ts +0 -263
- package/dist/src/components/pie-chart/use-pie-chart-config.d.ts +0 -41
- package/dist/src/components/scatter-chart/hooks/use-scatter-chart-config.d.ts +0 -113
- package/dist/src/components/scatter-chart/scatter-chart-default-props.interface.d.ts +0 -71
- package/dist/src/components/scatter-chart/scatter-chart-get-default-props.d.ts +0 -3
- package/dist/src/components/scatter-chart/scatter-chart.d.ts +0 -3
- package/dist/src/components/scatter-chart/scatter-chart.interface.d.ts +0 -81
- package/dist/src/components/scatter-chart/scatter-chart.stories.d.ts +0 -279
- package/dist/src/components/scatter-chart/utils/get-scales-config.d.ts +0 -49
- package/dist/src/components/scatter-chart/utils/get-tooltip-config.d.ts +0 -21
|
@@ -1,16 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Dispatch, RefObject } from 'react';
|
|
2
|
-
import { Chart } from 'chart.js';
|
|
3
|
-
import { IState } from '../state/state.interfaces';
|
|
4
|
-
import { 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
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Hook for managing the state of the chart.
|
|
14
|
-
*/
|
|
15
|
-
export declare const useChartState: ({ chartRef, options, state, dispatch, persistenceId, }: IUseChartState) => void;
|
|
16
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
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;
|
|
@@ -1,12 +0,0 @@
|
|
|
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;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,150 +0,0 @@
|
|
|
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
|
-
min?: number | string;
|
|
50
|
-
max?: number | string;
|
|
51
|
-
}
|
|
52
|
-
export interface ILineChartAxes {
|
|
53
|
-
x: ILineChartAxis<'top' | 'bottom'>[];
|
|
54
|
-
y: ILineChartAxis<'left' | 'right'>[];
|
|
55
|
-
[key: string]: ILineChartAxis[];
|
|
56
|
-
}
|
|
57
|
-
export interface IDepthType {
|
|
58
|
-
options: string[];
|
|
59
|
-
selectedUnit: string;
|
|
60
|
-
setSelectedUnit: () => void;
|
|
61
|
-
}
|
|
62
|
-
export interface ILineChartStyling extends ICommonStyling {
|
|
63
|
-
squareAspectRatio?: number | boolean;
|
|
64
|
-
layoutPadding?: number | {
|
|
65
|
-
top: number;
|
|
66
|
-
bottom: number;
|
|
67
|
-
left: number;
|
|
68
|
-
right: number;
|
|
69
|
-
};
|
|
70
|
-
}
|
|
71
|
-
export interface ILineInteractions extends ICommonInteractions {
|
|
72
|
-
onAnimationComplete?: () => void;
|
|
73
|
-
}
|
|
74
|
-
export interface ILineLegend extends ICommonLegend {
|
|
75
|
-
customLegend?: ICommonCustomLegend<any>;
|
|
76
|
-
usePointStyle?: boolean;
|
|
77
|
-
}
|
|
78
|
-
export interface ILineChartOptions extends ICommonOptions {
|
|
79
|
-
title?: string | string[];
|
|
80
|
-
axes: ILineChartAxes;
|
|
81
|
-
scales: ICommonScales;
|
|
82
|
-
additionalAxesOptions: ILineChartAdditionalAxesOptions;
|
|
83
|
-
chartStyling: ILineChartStyling;
|
|
84
|
-
tooltip: ILineChartTooltip;
|
|
85
|
-
graph: ILineChartGraph;
|
|
86
|
-
annotations: ICommonAnnotations;
|
|
87
|
-
legend: ILineLegend;
|
|
88
|
-
chartOptions: ILChartOptions;
|
|
89
|
-
interactions: ILineInteractions;
|
|
90
|
-
dragData?: ICommonDragData;
|
|
91
|
-
depthType?: IDepthType | object;
|
|
92
|
-
}
|
|
93
|
-
export interface ILineChartDataset extends ICommonDataset {
|
|
94
|
-
lineTension?: number;
|
|
95
|
-
pointBackgroundColor?: string;
|
|
96
|
-
pointRadius?: number;
|
|
97
|
-
pointHoverRadius?: number;
|
|
98
|
-
pointHitRadius?: number;
|
|
99
|
-
fill?: boolean;
|
|
100
|
-
xAxisID?: string;
|
|
101
|
-
yAxisID?: string;
|
|
102
|
-
formation?: boolean;
|
|
103
|
-
displayGroup?: string | number;
|
|
104
|
-
pointStyle?: string;
|
|
105
|
-
}
|
|
106
|
-
export interface ILineChartData extends ICommonData {
|
|
107
|
-
data?: {
|
|
108
|
-
datasets: ILineChartDataset[];
|
|
109
|
-
};
|
|
110
|
-
options: ILineChartOptions;
|
|
111
|
-
persistenceId?: string;
|
|
112
|
-
controlsPortalId?: string;
|
|
113
|
-
}
|
|
114
|
-
export interface ILineChartProps {
|
|
115
|
-
chart: ILineChartData;
|
|
116
|
-
table?: ReactNode;
|
|
117
|
-
headerComponent?: ReactNode;
|
|
118
|
-
subheaderComponent?: ReactNode;
|
|
119
|
-
}
|
|
120
|
-
export interface IGeneratedLineChartDataset {
|
|
121
|
-
label?: string;
|
|
122
|
-
data: ICommonDataValue[];
|
|
123
|
-
showLine?: boolean;
|
|
124
|
-
lineTension: number;
|
|
125
|
-
spanGaps: boolean;
|
|
126
|
-
borderWidth: number;
|
|
127
|
-
borderDash: number[];
|
|
128
|
-
borderJoinStyle: 'round' | 'bevel' | 'miter';
|
|
129
|
-
borderColor: string;
|
|
130
|
-
backgroundColor: string | string[];
|
|
131
|
-
pointBackgroundColor: string;
|
|
132
|
-
pointRadius: number;
|
|
133
|
-
pointHoverRadius: number;
|
|
134
|
-
pointHitRadius: number;
|
|
135
|
-
isAnnotation?: boolean;
|
|
136
|
-
annotationType?: string;
|
|
137
|
-
annotationIndex?: number;
|
|
138
|
-
annotationLabel?: string;
|
|
139
|
-
annotationBackgroundColor?: string;
|
|
140
|
-
annotationPointBackgroundColor?: string;
|
|
141
|
-
annotationBorderColor?: string;
|
|
142
|
-
annotationBorderDash?: number[];
|
|
143
|
-
annotationBorderWidth?: number;
|
|
144
|
-
displayGroup?: string | number;
|
|
145
|
-
hideLegend?: boolean;
|
|
146
|
-
pointStyle?: string;
|
|
147
|
-
xAxisID?: string;
|
|
148
|
-
yAxisID?: string;
|
|
149
|
-
}
|
|
150
|
-
export type TGeneratedLineChartDatasets = IGeneratedLineChartDataset[];
|