@neo4j-ndl/react-charts 0.0.39 → 0.0.41
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/lib/cjs/charts/Chart.js +90 -84
- package/lib/cjs/charts/Chart.js.map +1 -1
- package/lib/cjs/charts/ChartTooltip.js +2 -2
- package/lib/cjs/charts/ChartTooltip.js.map +1 -1
- package/lib/cjs/charts/user-option-utils.js +46 -15
- package/lib/cjs/charts/user-option-utils.js.map +1 -1
- package/lib/esm/charts/Chart.js +90 -85
- package/lib/esm/charts/Chart.js.map +1 -1
- package/lib/esm/charts/ChartTooltip.js +2 -2
- package/lib/esm/charts/ChartTooltip.js.map +1 -1
- package/lib/esm/charts/user-option-utils.js +46 -15
- package/lib/esm/charts/user-option-utils.js.map +1 -1
- package/lib/types/charts/Chart.d.ts +6 -3
- package/lib/types/charts/ChartTooltip.d.ts +1 -1
- package/package.json +3 -3
|
@@ -29,11 +29,14 @@ export interface ThresholdLineSeriesOption<T extends NotificationType> extends O
|
|
|
29
29
|
yAxis: number;
|
|
30
30
|
xAxis: [number, number];
|
|
31
31
|
notificationType: T;
|
|
32
|
-
color
|
|
32
|
+
color?: string;
|
|
33
33
|
condition?: Condition;
|
|
34
34
|
customConditionText?: string;
|
|
35
35
|
customCondition?: CustomCondition;
|
|
36
36
|
}
|
|
37
|
+
export declare const defaultThresholdLineSeriesOption: {
|
|
38
|
+
condition: Condition;
|
|
39
|
+
};
|
|
37
40
|
export type Values<T> = T[keyof T];
|
|
38
41
|
export type SeriesOption = Values<RegisteredSeriesOption>;
|
|
39
42
|
export type EchartsSeries = SeriesOption | SeriesOption[];
|
|
@@ -51,7 +54,7 @@ export interface ChartProps {
|
|
|
51
54
|
show?: boolean;
|
|
52
55
|
wrappingType?: LegendProps['wrappingType'];
|
|
53
56
|
};
|
|
54
|
-
option
|
|
57
|
+
option?: Omit<EChartsOption, 'series' | 'dataset' | 'legend' | 'xAxis' | 'yAxis'>;
|
|
55
58
|
style?: CSSProperties;
|
|
56
59
|
settings?: SetOptionOpts;
|
|
57
60
|
isLoading?: boolean;
|
|
@@ -63,5 +66,5 @@ export interface ChartProps {
|
|
|
63
66
|
};
|
|
64
67
|
dataZoom?: EChartsOption['dataZoom'];
|
|
65
68
|
}
|
|
66
|
-
export declare function Chart({ dataset, option: userOption, xAxis, yAxis, series, style, settings, isLoading, legend, callbacks, }: ChartProps): React.JSX.Element;
|
|
69
|
+
export declare function Chart({ dataset, option: userOption, xAxis, yAxis, series: propsSeries, style, settings, isLoading, legend, callbacks, }: ChartProps): React.JSX.Element;
|
|
67
70
|
export {};
|
|
@@ -38,7 +38,7 @@ export type NotificationType = 'warning' | 'danger';
|
|
|
38
38
|
export type Notification = {
|
|
39
39
|
leftElement: React.ReactNode;
|
|
40
40
|
rightElement: React.ReactNode;
|
|
41
|
-
|
|
41
|
+
notificationType: NotificationType;
|
|
42
42
|
id: string;
|
|
43
43
|
};
|
|
44
44
|
export type ChartTooltipContentProps = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neo4j-ndl/react-charts",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.41",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"description": "React implementation of charts from Neo4j Design System",
|
|
6
6
|
"keywords": [
|
|
@@ -52,13 +52,13 @@
|
|
|
52
52
|
"peerDependencies": {
|
|
53
53
|
"react": ">=16.8.0",
|
|
54
54
|
"react-dom": ">=16.8.0",
|
|
55
|
-
"@neo4j-ndl/base": "^3.2.
|
|
55
|
+
"@neo4j-ndl/base": "^3.2.8"
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
58
|
"classnames": "2.5.1",
|
|
59
59
|
"echarts": "5.5.1",
|
|
60
60
|
"usehooks-ts": "3.1.0",
|
|
61
|
-
"@neo4j-ndl/react": "^3.2.
|
|
61
|
+
"@neo4j-ndl/react": "^3.2.16"
|
|
62
62
|
},
|
|
63
63
|
"scripts": {
|
|
64
64
|
"test": "pnpm test:playwright",
|