@gravity-ui/chartkit 5.6.0 → 5.8.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/build/plugins/d3/examples/area/NegativeValues.d.ts +2 -0
- package/build/plugins/d3/examples/area/NegativeValues.js +24 -0
- package/build/plugins/d3/examples/bar-x/NegativeValues.d.ts +2 -0
- package/build/plugins/d3/examples/bar-x/NegativeValues.js +41 -0
- package/build/plugins/d3/examples/bar-y/NegativeValues.d.ts +2 -0
- package/build/plugins/d3/examples/bar-y/NegativeValues.js +40 -0
- package/build/plugins/d3/renderer/components/AxisX.d.ts +2 -1
- package/build/plugins/d3/renderer/components/AxisX.js +13 -3
- package/build/plugins/d3/renderer/components/AxisY.d.ts +4 -3
- package/build/plugins/d3/renderer/components/AxisY.js +17 -8
- package/build/plugins/d3/renderer/components/Chart.js +14 -3
- package/build/plugins/d3/renderer/components/PlotTitle.d.ts +7 -0
- package/build/plugins/d3/renderer/components/PlotTitle.js +12 -0
- package/build/plugins/d3/renderer/components/styles.css +7 -1
- package/build/plugins/d3/renderer/hooks/index.d.ts +1 -0
- package/build/plugins/d3/renderer/hooks/index.js +1 -0
- package/build/plugins/d3/renderer/hooks/useAxisScales/index.d.ts +3 -1
- package/build/plugins/d3/renderer/hooks/useAxisScales/index.js +30 -14
- package/build/plugins/d3/renderer/hooks/useChartDimensions/utils.js +13 -2
- package/build/plugins/d3/renderer/hooks/useChartOptions/types.d.ts +1 -0
- package/build/plugins/d3/renderer/hooks/useChartOptions/x-axis.d.ts +2 -2
- package/build/plugins/d3/renderer/hooks/useChartOptions/x-axis.js +14 -2
- package/build/plugins/d3/renderer/hooks/useChartOptions/y-axis.d.ts +2 -2
- package/build/plugins/d3/renderer/hooks/useChartOptions/y-axis.js +18 -8
- package/build/plugins/d3/renderer/hooks/useSeries/prepare-bar-y.js +2 -1
- package/build/plugins/d3/renderer/hooks/useShapes/area/prepare-data.js +15 -5
- package/build/plugins/d3/renderer/hooks/useShapes/bar-x/prepare-data.js +5 -3
- package/build/plugins/d3/renderer/hooks/useShapes/bar-y/prepare-data.js +5 -3
- package/build/plugins/d3/renderer/hooks/useShapes/index.d.ts +2 -1
- package/build/plugins/d3/renderer/hooks/useShapes/index.js +2 -1
- package/build/plugins/d3/renderer/hooks/useShapes/line/prepare-data.d.ts +6 -4
- package/build/plugins/d3/renderer/hooks/useShapes/line/prepare-data.js +6 -3
- package/build/plugins/d3/renderer/hooks/useSplit/index.d.ts +14 -0
- package/build/plugins/d3/renderer/hooks/useSplit/index.js +57 -0
- package/build/plugins/d3/renderer/hooks/useSplit/types.d.ts +17 -0
- package/build/plugins/d3/renderer/hooks/useSplit/types.js +1 -0
- package/build/plugins/d3/renderer/utils/axis-generators/bottom.d.ts +1 -1
- package/build/plugins/d3/renderer/utils/axis-generators/bottom.js +16 -8
- package/build/plugins/d3/renderer/utils/axis.d.ts +6 -2
- package/build/plugins/d3/renderer/utils/axis.js +7 -0
- package/build/plugins/d3/renderer/utils/index.d.ts +4 -1
- package/build/plugins/d3/renderer/utils/index.js +51 -25
- package/build/plugins/highcharts/renderer/helpers/config/config.js +2 -2
- package/build/types/widget-data/axis.d.ts +10 -0
- package/build/types/widget-data/bar-y.d.ts +2 -1
- package/build/types/widget-data/index.d.ts +8 -3
- package/build/types/widget-data/index.js +1 -0
- package/build/types/widget-data/split.d.ts +13 -0
- package/build/types/widget-data/split.js +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { BaseTextStyle } from './base';
|
|
2
|
+
export type SplitPlotOptions = {
|
|
3
|
+
title?: {
|
|
4
|
+
text: string;
|
|
5
|
+
style?: Partial<BaseTextStyle>;
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
export type ChartKitWidgetSplit = {
|
|
9
|
+
enable: boolean;
|
|
10
|
+
layout?: 'vertical';
|
|
11
|
+
gap?: string | number;
|
|
12
|
+
plots?: SplitPlotOptions[];
|
|
13
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED