@oliasoft-open-source/charts-library 4.4.5 → 4.4.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +34 -15
- package/dist/index.js.map +1 -1
- package/dist/src/components/common/common.interface.d.ts +1 -0
- package/dist/src/components/common/helpers/custom-format-number.d.ts +1 -1
- package/dist/src/components/pie-chart/pie-chart-defalut-props.interface.d.ts +2 -5
- package/dist/src/components/scatter-chart/hooks/use-scatter-chart-config.d.ts +1 -1
- package/dist/src/components/scatter-chart/scatter-chart-default-props.interface.d.ts +1 -0
- package/dist/src/components/scatter-chart/scatter-chart.interface.d.ts +1 -0
- package/dist/src/components/scatter-chart/utils/get-tooltip-config.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const customFormatNumber: (labelNumber: number) => string;
|
|
1
|
+
export declare const customFormatNumber: (labelNumber: number, scientificNotation: boolean) => string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ChartEvent } from 'chart.js';
|
|
2
|
+
import { ICommonTooltip } from '../common/common.interface';
|
|
2
3
|
import { IPieChartDataset, IPieOptions } from './pie-chart.interface';
|
|
3
4
|
import { AlignOptions, Position } from '../common/helpers/enums';
|
|
4
5
|
export interface IDefaultChartStyling {
|
|
@@ -8,10 +9,6 @@ export interface IDefaultChartStyling {
|
|
|
8
9
|
staticChartHeight: boolean;
|
|
9
10
|
performanceMode: boolean;
|
|
10
11
|
}
|
|
11
|
-
interface IDefaultTooltip {
|
|
12
|
-
tooltips: boolean;
|
|
13
|
-
showLabelsInTooltips: boolean;
|
|
14
|
-
}
|
|
15
12
|
interface IDefaultPieGraph {
|
|
16
13
|
showDataLabels: boolean;
|
|
17
14
|
stacked: boolean;
|
|
@@ -39,7 +36,7 @@ interface IDefaultChartData {
|
|
|
39
36
|
interface IDefaultPieOptions extends IPieOptions {
|
|
40
37
|
title: string | string[];
|
|
41
38
|
chartStyling: IDefaultChartStyling;
|
|
42
|
-
tooltip:
|
|
39
|
+
tooltip: ICommonTooltip;
|
|
43
40
|
graph: IDefaultPieGraph;
|
|
44
41
|
legend: IDefaultPieLegend;
|
|
45
42
|
chartOptions: IDefaultChartOptions;
|
|
@@ -94,7 +94,7 @@ export declare const useScatterChartConfig: (chart: IScatterChartDefaultProps, c
|
|
|
94
94
|
enabled: boolean;
|
|
95
95
|
callbacks: {
|
|
96
96
|
title: (tooltipItems: import("chart.js").TooltipItem<"scatter">[]) => string | undefined;
|
|
97
|
-
label: (
|
|
97
|
+
label: (tooltipItems: import('../../scatter-chart/utils/get-tooltip-config').IScatterTooltipItem) => string;
|
|
98
98
|
};
|
|
99
99
|
backgroundColor: string;
|
|
100
100
|
displayColors: boolean;
|
|
@@ -12,7 +12,7 @@ export declare const getTooltipsConfig: (options: IDefaultScatterOptions) => {
|
|
|
12
12
|
enabled: boolean;
|
|
13
13
|
callbacks: {
|
|
14
14
|
title: (tooltipItems: TooltipItem<'scatter'>[]) => string | undefined;
|
|
15
|
-
label: (
|
|
15
|
+
label: (tooltipItems: IScatterTooltipItem) => string;
|
|
16
16
|
};
|
|
17
17
|
backgroundColor: string;
|
|
18
18
|
displayColors: boolean;
|
package/package.json
CHANGED