@oliasoft-open-source/charts-library 3.7.0-beta-3 → 3.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +379 -512
- package/dist/index.js.map +1 -1
- package/dist/src/components/common/helpers/chart-consts.d.ts +3 -3
- package/package.json +2 -2
- package/dist/src/components/scatter-chart/scatter-chart.d.ts +0 -7
- package/dist/src/components/scatter-chart/scatter-chart.intefrace.d.ts +0 -18
- package/dist/src/components/scatter-chart/scatter-chart.stories.d.ts +0 -118
|
@@ -4,9 +4,9 @@ export declare const BORDER_WIDTH: {
|
|
|
4
4
|
};
|
|
5
5
|
export declare const BORDER_COLOR = "rgba(0,0,0,0.1)";
|
|
6
6
|
export declare const ANNOTATION_DASH: number[];
|
|
7
|
-
export declare const DEFAULT_FONT_SIZE =
|
|
8
|
-
export declare const DEFAULT_FONT_FAMILY = "\"
|
|
9
|
-
export declare const DEFAULT_COLOR = "
|
|
7
|
+
export declare const DEFAULT_FONT_SIZE = 13;
|
|
8
|
+
export declare const DEFAULT_FONT_FAMILY = "\"Lato\", sans-serif";
|
|
9
|
+
export declare const DEFAULT_COLOR = "rgba(0,0,0,.87)";
|
|
10
10
|
export declare const LEGEND_LABEL_BOX_SIZE = 12;
|
|
11
11
|
export declare const TOOLTIP_PADDING = 8;
|
|
12
12
|
export declare const TOOLTIP_BOX_PADDING = 4;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oliasoft-open-source/charts-library",
|
|
3
|
-
"version": "3.7.
|
|
3
|
+
"version": "3.7.1",
|
|
4
4
|
"description": "React Chart Library (based on Chart.js and react-chart-js-2)",
|
|
5
5
|
"homepage": "https://gitlab.com/oliasoft-open-source/charts-library",
|
|
6
6
|
"resolutions": {
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"react-use": "^17.4.0"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"@oliasoft-open-source/react-ui-library": "
|
|
59
|
+
"@oliasoft-open-source/react-ui-library": "^3.13.9",
|
|
60
60
|
"@oliasoft-open-source/units": "^3.4.2",
|
|
61
61
|
"@storybook/addon-actions": "^7.0.18",
|
|
62
62
|
"@storybook/addon-docs": "^7.0.18",
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { ICommonChartPlugins, ICommonData, ICommonDataset, ICommonOptions } from '../common/common.interface';
|
|
2
|
-
export interface IScatterChartOptions extends Partial<ICommonOptions> {
|
|
3
|
-
responsive: boolean;
|
|
4
|
-
maintainAspectRatio: boolean;
|
|
5
|
-
plugins: ICommonChartPlugins;
|
|
6
|
-
}
|
|
7
|
-
export interface IScatterChartDataset extends ICommonDataset {
|
|
8
|
-
showLine: boolean;
|
|
9
|
-
}
|
|
10
|
-
export interface IScatterChartData extends ICommonData {
|
|
11
|
-
data: {
|
|
12
|
-
datasets: IScatterChartDataset[];
|
|
13
|
-
};
|
|
14
|
-
options: IScatterChartOptions;
|
|
15
|
-
}
|
|
16
|
-
export interface IScatterChartProps {
|
|
17
|
-
chart: IScatterChartData;
|
|
18
|
-
}
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
declare namespace _default {
|
|
2
|
-
export const title: string;
|
|
3
|
-
export { ScatterChart as component };
|
|
4
|
-
export namespace args {
|
|
5
|
-
export { chartDefault as chart };
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
export default _default;
|
|
9
|
-
export function Default(args: any): import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
export function Linear(args: any): import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export namespace Linear {
|
|
12
|
-
export namespace args_1 {
|
|
13
|
-
export { chartWithLine as chart };
|
|
14
|
-
}
|
|
15
|
-
export { args_1 as args };
|
|
16
|
-
}
|
|
17
|
-
export function MultiLines(args: any): import("react/jsx-runtime").JSX.Element;
|
|
18
|
-
export namespace MultiLines {
|
|
19
|
-
export namespace args_2 {
|
|
20
|
-
export { multiLines as chart };
|
|
21
|
-
}
|
|
22
|
-
export { args_2 as args };
|
|
23
|
-
}
|
|
24
|
-
export function Reverse(args: any): import("react/jsx-runtime").JSX.Element;
|
|
25
|
-
export namespace Reverse {
|
|
26
|
-
export namespace args_3 {
|
|
27
|
-
export { chartReverse as chart };
|
|
28
|
-
}
|
|
29
|
-
export { args_3 as args };
|
|
30
|
-
}
|
|
31
|
-
export function LegendRight(args: any): import("react/jsx-runtime").JSX.Element;
|
|
32
|
-
export namespace LegendRight {
|
|
33
|
-
export namespace args_4 {
|
|
34
|
-
export { chartLegendRight as chart };
|
|
35
|
-
}
|
|
36
|
-
export { args_4 as args };
|
|
37
|
-
}
|
|
38
|
-
import ScatterChart from './scatter-chart';
|
|
39
|
-
declare namespace chartDefault {
|
|
40
|
-
namespace data {
|
|
41
|
-
const datasets: {
|
|
42
|
-
label: string;
|
|
43
|
-
data: {
|
|
44
|
-
x: number;
|
|
45
|
-
y: number;
|
|
46
|
-
label: string;
|
|
47
|
-
}[];
|
|
48
|
-
borderColor: string;
|
|
49
|
-
backgroundColor: string;
|
|
50
|
-
}[];
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
declare namespace chartWithLine {
|
|
54
|
-
export namespace data_1 {
|
|
55
|
-
const datasets_1: {
|
|
56
|
-
label: string;
|
|
57
|
-
data: {
|
|
58
|
-
x: number;
|
|
59
|
-
y: number;
|
|
60
|
-
label: string;
|
|
61
|
-
}[];
|
|
62
|
-
borderColor: string;
|
|
63
|
-
backgroundColor: string;
|
|
64
|
-
showLine: boolean;
|
|
65
|
-
}[];
|
|
66
|
-
export { datasets_1 as datasets };
|
|
67
|
-
}
|
|
68
|
-
export { data_1 as data };
|
|
69
|
-
}
|
|
70
|
-
declare namespace multiLines {
|
|
71
|
-
export namespace data_2 {
|
|
72
|
-
export { datasetMultiLines as datasets };
|
|
73
|
-
}
|
|
74
|
-
export { data_2 as data };
|
|
75
|
-
}
|
|
76
|
-
declare namespace chartReverse {
|
|
77
|
-
export namespace data_3 {
|
|
78
|
-
export { datasetMultiLines as datasets };
|
|
79
|
-
}
|
|
80
|
-
export { data_3 as data };
|
|
81
|
-
export namespace options {
|
|
82
|
-
namespace scales {
|
|
83
|
-
namespace y {
|
|
84
|
-
const reverse: boolean;
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
declare namespace chartLegendRight {
|
|
90
|
-
export namespace data_4 {
|
|
91
|
-
export { datasetMultiLines as datasets };
|
|
92
|
-
}
|
|
93
|
-
export { data_4 as data };
|
|
94
|
-
export namespace options_1 {
|
|
95
|
-
namespace plugins {
|
|
96
|
-
export namespace legend {
|
|
97
|
-
const position: string;
|
|
98
|
-
}
|
|
99
|
-
export namespace title_1 {
|
|
100
|
-
const display: boolean;
|
|
101
|
-
const text: string;
|
|
102
|
-
}
|
|
103
|
-
export { title_1 as title };
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
export { options_1 as options };
|
|
107
|
-
}
|
|
108
|
-
declare const datasetMultiLines: {
|
|
109
|
-
label: string;
|
|
110
|
-
data: {
|
|
111
|
-
x: number;
|
|
112
|
-
y: number;
|
|
113
|
-
label: string;
|
|
114
|
-
}[];
|
|
115
|
-
borderColor: string;
|
|
116
|
-
backgroundColor: string;
|
|
117
|
-
showLine: boolean;
|
|
118
|
-
}[];
|