@gravity-ui/chartkit 2.0.0 → 2.2.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/CHANGELOG.md +19 -2
- package/build/components/ErrorView/ErrorView.js +2 -1
- package/build/plugins/highcharts/__stories__/Line.stories.js +1 -1
- package/build/plugins/highcharts/__stories__/Pie.stories.js +1 -1
- package/build/plugins/highcharts/__stories__/area/Range.stories.js +1 -1
- package/build/plugins/highcharts/__stories__/area/Stacked.stories.js +1 -1
- package/build/plugins/highcharts/__stories__/column/HorizontalStacked.stories.js +1 -1
- package/build/plugins/highcharts/__stories__/column/Vertical.stories.js +1 -1
- package/build/plugins/highcharts/__stories__/column/VerticalStacked.stories.js +1 -1
- package/build/plugins/highcharts/__stories__/combined/ComboChartWithSameLegendValues.stories.js +1 -1
- package/build/plugins/highcharts/__stories__/complex/TwoAxis.stories.js +1 -1
- package/build/plugins/highcharts/__stories__/components/ChartStory.js +1 -1
- package/build/plugins/highcharts/__tests__/prepare-data.test.d.ts +1 -0
- package/build/plugins/highcharts/__tests__/prepare-data.test.js +13 -0
- package/build/plugins/highcharts/mocks/area-range.d.ts +2 -0
- package/build/plugins/highcharts/mocks/area-stacked.d.ts +2 -0
- package/build/plugins/highcharts/mocks/column-hor-stacked.d.ts +2 -0
- package/build/plugins/highcharts/mocks/column-ver-stacked.d.ts +2 -0
- package/build/plugins/highcharts/mocks/column-ver.d.ts +2 -0
- package/build/plugins/highcharts/mocks/combo-chart-with-same-legend-titles.d.ts +2 -0
- package/build/plugins/highcharts/mocks/complex.d.ts +2 -0
- package/build/plugins/highcharts/mocks/line.d.ts +2 -0
- package/build/plugins/highcharts/{__stories__/mocks → mocks}/line.js +7 -2
- package/build/plugins/highcharts/mocks/pie.d.ts +2 -0
- package/build/plugins/highcharts/renderer/components/HighchartsComponent.d.ts +3 -0
- package/build/plugins/highcharts/renderer/helpers/config/config.d.ts +3 -0
- package/build/plugins/highcharts/renderer/helpers/config/config.js +15 -1
- package/build/plugins/highcharts/renderer/helpers/constants.d.ts +1 -0
- package/build/plugins/highcharts/renderer/helpers/constants.js +1 -0
- package/build/plugins/highcharts/renderer/helpers/graph.d.ts +3 -0
- package/build/plugins/highcharts/renderer/helpers/highcharts/highcharts.js +9 -5
- package/build/plugins/highcharts/renderer/helpers/prepare-data.js +3 -1
- package/build/plugins/highcharts/renderer/helpers/tooltip/index.js +2 -1
- package/build/plugins/highcharts/types/widget.d.ts +37 -0
- package/package.json +1 -1
- package/build/plugins/highcharts/__stories__/mocks/area-range.d.ts +0 -2
- package/build/plugins/highcharts/__stories__/mocks/area-stacked.d.ts +0 -2
- package/build/plugins/highcharts/__stories__/mocks/column-hor-stacked.d.ts +0 -2
- package/build/plugins/highcharts/__stories__/mocks/column-ver-stacked.d.ts +0 -2
- package/build/plugins/highcharts/__stories__/mocks/column-ver.d.ts +0 -2
- package/build/plugins/highcharts/__stories__/mocks/combo-chart-with-same-legend-titles.d.ts +0 -2
- package/build/plugins/highcharts/__stories__/mocks/complex.d.ts +0 -2
- package/build/plugins/highcharts/__stories__/mocks/line.d.ts +0 -2
- package/build/plugins/highcharts/__stories__/mocks/pie.d.ts +0 -2
- /package/build/plugins/highcharts/{__stories__/mocks → mocks}/area-range.js +0 -0
- /package/build/plugins/highcharts/{__stories__/mocks → mocks}/area-stacked.js +0 -0
- /package/build/plugins/highcharts/{__stories__/mocks → mocks}/column-hor-stacked.js +0 -0
- /package/build/plugins/highcharts/{__stories__/mocks → mocks}/column-ver-stacked.js +0 -0
- /package/build/plugins/highcharts/{__stories__/mocks → mocks}/column-ver.js +0 -0
- /package/build/plugins/highcharts/{__stories__/mocks → mocks}/combo-chart-with-same-legend-titles.js +0 -0
- /package/build/plugins/highcharts/{__stories__/mocks → mocks}/complex.js +0 -0
- /package/build/plugins/highcharts/{__stories__/mocks → mocks}/holidays.d.ts +0 -0
- /package/build/plugins/highcharts/{__stories__/mocks → mocks}/holidays.js +0 -0
- /package/build/plugins/highcharts/{__stories__/mocks → mocks}/pie.js +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,16 +1,33 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.2.0](https://github.com/gravity-ui/chartkit/compare/v2.1.0...v2.2.0) (2023-03-21)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* **Higcharts plugin:** add type for manageTooltipConfig ([#139](https://github.com/gravity-ui/chartkit/issues/139)) ([f781cca](https://github.com/gravity-ui/chartkit/commit/f781cca112bb1e87607d24916aa38bf44fe2abf6))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **Highcharts:** fix resetZoomButton styles ([#137](https://github.com/gravity-ui/chartkit/issues/137)) ([07f610e](https://github.com/gravity-ui/chartkit/commit/07f610e443f2c9a2543ac68bbff443112a1d650a))
|
|
14
|
+
|
|
15
|
+
## [2.1.0](https://github.com/gravity-ui/chartkit/compare/v2.0.0...v2.1.0) (2023-03-13)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Features
|
|
19
|
+
|
|
20
|
+
* **Highcharts:** add linesLimit property to HighchartsWidgetData.config ([#135](https://github.com/gravity-ui/chartkit/issues/135)) ([91d16a3](https://github.com/gravity-ui/chartkit/commit/91d16a32aad00fb683c68f3f39a6477f14f18c33))
|
|
21
|
+
|
|
3
22
|
## [2.0.0](https://github.com/gravity-ui/chartkit/compare/v1.6.7...v2.0.0) (2023-03-09)
|
|
4
23
|
|
|
5
24
|
|
|
6
25
|
### ⚠ BREAKING CHANGES
|
|
7
26
|
|
|
8
|
-
* update uikit up to 4
|
|
9
27
|
* update uikit up to 4 ([#133](https://github.com/gravity-ui/chartkit/issues/133))
|
|
10
28
|
|
|
11
29
|
### Features
|
|
12
30
|
|
|
13
|
-
* update uikit up to 4 ([8ae0c8d](https://github.com/gravity-ui/chartkit/commit/8ae0c8d179273a448de8f670dfe1b3f2314c0523))
|
|
14
31
|
* update uikit up to 4 ([#133](https://github.com/gravity-ui/chartkit/issues/133)) ([8ae0c8d](https://github.com/gravity-ui/chartkit/commit/8ae0c8d179273a448de8f670dfe1b3f2314c0523))
|
|
15
32
|
|
|
16
33
|
## [1.6.7](https://github.com/gravity-ui/chartkit/compare/v1.6.6...v1.6.7) (2023-02-21)
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { i18n } from '../../i18n';
|
|
3
3
|
export const ErrorView = ({ error }) => {
|
|
4
|
-
const
|
|
4
|
+
const code = 'code' in error && error.code;
|
|
5
|
+
const message = error.message || code || i18n('error', 'label_unknown-error');
|
|
5
6
|
return React.createElement("div", null, message);
|
|
6
7
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ChartKit } from '../../../components/ChartKit';
|
|
3
|
-
import { data } from '
|
|
3
|
+
import { data } from '../mocks/line';
|
|
4
4
|
import { ChartStory } from './components/ChartStory';
|
|
5
5
|
export default {
|
|
6
6
|
title: 'Plugins/Highcharts/Line',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ChartKit } from '../../../components/ChartKit';
|
|
3
|
-
import { data } from '
|
|
3
|
+
import { data } from '../mocks/pie';
|
|
4
4
|
import { ChartStory } from './components/ChartStory';
|
|
5
5
|
export default {
|
|
6
6
|
title: 'Plugins/Highcharts/Pie',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ChartKit } from '../../../../components/ChartKit';
|
|
3
|
-
import { data } from '
|
|
3
|
+
import { data } from '../../mocks/area-range';
|
|
4
4
|
import { ChartStory } from '../components/ChartStory';
|
|
5
5
|
export default {
|
|
6
6
|
title: 'Plugins/Highcharts/Area',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ChartKit } from '../../../../components/ChartKit';
|
|
3
|
-
import { data } from '
|
|
3
|
+
import { data } from '../../mocks/area-stacked';
|
|
4
4
|
import { ChartStory } from '../components/ChartStory';
|
|
5
5
|
export default {
|
|
6
6
|
title: 'Plugins/Highcharts/Area',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ChartKit } from '../../../../components/ChartKit';
|
|
3
|
-
import { data } from '
|
|
3
|
+
import { data } from '../../mocks/column-hor-stacked';
|
|
4
4
|
import { ChartStory } from '../components/ChartStory';
|
|
5
5
|
export default {
|
|
6
6
|
title: 'Plugins/Highcharts/Column',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ChartKit } from '../../../../components/ChartKit';
|
|
3
|
-
import { data } from '
|
|
3
|
+
import { data } from '../../mocks/column-ver';
|
|
4
4
|
import { ChartStory } from '../components/ChartStory';
|
|
5
5
|
export default {
|
|
6
6
|
title: 'Plugins/Highcharts/Column',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ChartKit } from '../../../../components/ChartKit';
|
|
3
|
-
import { data } from '
|
|
3
|
+
import { data } from '../../mocks/column-ver-stacked';
|
|
4
4
|
import { ChartStory } from '../components/ChartStory';
|
|
5
5
|
export default {
|
|
6
6
|
title: 'Plugins/Highcharts/Column',
|
package/build/plugins/highcharts/__stories__/combined/ComboChartWithSameLegendValues.stories.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ChartKit } from '../../../../components/ChartKit';
|
|
3
|
-
import { data } from '
|
|
3
|
+
import { data } from '../../mocks/combo-chart-with-same-legend-titles';
|
|
4
4
|
import { ChartStory } from '../components/ChartStory';
|
|
5
5
|
export default {
|
|
6
6
|
title: 'Plugins/Highcharts/Combined Charts',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ChartKit } from '../../../../components/ChartKit';
|
|
3
3
|
import { ChartStory } from '../components/ChartStory';
|
|
4
|
-
import { data } from '
|
|
4
|
+
import { data } from '../../mocks/complex';
|
|
5
5
|
export default {
|
|
6
6
|
title: 'Plugins/Highcharts/TwoAxis',
|
|
7
7
|
component: ChartKit,
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { Button } from '@gravity-ui/uikit';
|
|
3
3
|
import { settings } from '../../../../libs';
|
|
4
4
|
import { HighchartsPlugin } from '../../index';
|
|
5
|
-
import holidays from '
|
|
5
|
+
import holidays from '../../mocks/holidays';
|
|
6
6
|
import { ChartKit } from '../../../../components/ChartKit';
|
|
7
7
|
const DEFAULT_STORY_HEIGHT = '300px';
|
|
8
8
|
const DEFAULT_STORY_WIDTH = '100%';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { prepareData } from '../renderer/helpers/prepare-data';
|
|
2
|
+
import { data } from '../mocks/line';
|
|
3
|
+
describe('plugins/highcharts/helpers', () => {
|
|
4
|
+
describe('prepareData', () => {
|
|
5
|
+
it('should not throw an error', () => {
|
|
6
|
+
expect(() => prepareData(data.data, data.config)).not.toThrowError();
|
|
7
|
+
});
|
|
8
|
+
it('should throw an error', () => {
|
|
9
|
+
const configWithLinesLimit = Object.assign(Object.assign({}, data.config), { linesLimit: 1 });
|
|
10
|
+
expect(() => prepareData(data.data, configWithLinesLimit)).toThrowError();
|
|
11
|
+
});
|
|
12
|
+
});
|
|
13
|
+
});
|
|
@@ -83,13 +83,18 @@ export const data = {
|
|
|
83
83
|
categories: ['Furniture', 'Office Supplies', 'Technology'],
|
|
84
84
|
},
|
|
85
85
|
config: {
|
|
86
|
-
|
|
86
|
+
precision: 2,
|
|
87
87
|
hideHolidaysBands: true,
|
|
88
88
|
enableSum: true,
|
|
89
|
-
precision: 2,
|
|
90
89
|
hideHolidays: false,
|
|
91
90
|
normalizeDiv: false,
|
|
92
91
|
normalizeSub: false,
|
|
92
|
+
manageTooltipConfig: (config) => {
|
|
93
|
+
config.lines.forEach((line, index) => {
|
|
94
|
+
line.commentText = `Some comment ${index + 1}`;
|
|
95
|
+
});
|
|
96
|
+
return config;
|
|
97
|
+
},
|
|
93
98
|
},
|
|
94
99
|
libraryConfig: {
|
|
95
100
|
chart: {
|
|
@@ -924,7 +924,7 @@ function fixTooltip(tooltip, options, event) {
|
|
|
924
924
|
top = tooltipRect.top;
|
|
925
925
|
tooltip.preFixationHeight = height;
|
|
926
926
|
}
|
|
927
|
-
tooltip.lastVisibleRowIndex =
|
|
927
|
+
tooltip.lastVisibleRowIndex = undefined;
|
|
928
928
|
tooltip.update({
|
|
929
929
|
style: Object.assign(Object.assign({}, tooltip.style), { pointerEvents: 'auto' }),
|
|
930
930
|
});
|
|
@@ -1324,6 +1324,20 @@ export function prepareConfig(data, options, isMobile, holidays) {
|
|
|
1324
1324
|
return Highcharts.Axis.prototype.defaultLabelFormatter.call(this);
|
|
1325
1325
|
},
|
|
1326
1326
|
},
|
|
1327
|
+
events: {
|
|
1328
|
+
setExtremes: function () {
|
|
1329
|
+
// There is no better way to align zoom button text
|
|
1330
|
+
// Callback setExtremes used because of it obligatory invocation on every zoom event
|
|
1331
|
+
// setTimeout used because of absence resetZoomButton node in dom on first zoom event
|
|
1332
|
+
setTimeout(() => {
|
|
1333
|
+
var _a;
|
|
1334
|
+
const text = (_a = this.chart.resetZoomButton) === null || _a === void 0 ? void 0 : _a.text;
|
|
1335
|
+
if (text) {
|
|
1336
|
+
text.translate(0, -6);
|
|
1337
|
+
}
|
|
1338
|
+
}, 0);
|
|
1339
|
+
},
|
|
1340
|
+
},
|
|
1327
1341
|
}, yAxis: {
|
|
1328
1342
|
crosshair: options.splitTooltip
|
|
1329
1343
|
? getCrosshairConfig(hasScatterSeries ? 'scatter' : chartType, true)
|
|
@@ -31,11 +31,15 @@ Highcharts.setOptions({
|
|
|
31
31
|
resetZoomButton: {
|
|
32
32
|
relativeTo: 'chart',
|
|
33
33
|
theme: {
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
r: 6,
|
|
35
|
+
width: 12,
|
|
36
|
+
height: 12,
|
|
36
37
|
'text-align': 'center',
|
|
37
38
|
opacity: '0.8',
|
|
38
39
|
cursor: 'pointer',
|
|
40
|
+
style: {
|
|
41
|
+
fontSize: '20px',
|
|
42
|
+
},
|
|
39
43
|
},
|
|
40
44
|
position: {
|
|
41
45
|
y: 30,
|
|
@@ -223,7 +227,7 @@ function initHighcharts({ isMobile }) {
|
|
|
223
227
|
});
|
|
224
228
|
Highcharts.wrap(Highcharts.Tooltip.prototype, 'hide', function (proceed, ...rest) {
|
|
225
229
|
if (this.lastVisibleRowIndex) {
|
|
226
|
-
this.lastVisibleRowIndex =
|
|
230
|
+
this.lastVisibleRowIndex = undefined;
|
|
227
231
|
}
|
|
228
232
|
if (this.scrollHandler && !this.fixed) {
|
|
229
233
|
window.removeEventListener('scroll', this.scrollHandler);
|
|
@@ -257,7 +261,7 @@ function initHighcharts({ isMobile }) {
|
|
|
257
261
|
const isFixation = rest[1];
|
|
258
262
|
if ((!this.fixed || isFixation) && points) {
|
|
259
263
|
if (isFixation) {
|
|
260
|
-
this.lastVisibleRowIndex =
|
|
264
|
+
this.lastVisibleRowIndex = undefined;
|
|
261
265
|
}
|
|
262
266
|
proceed.apply(this, [points, ...rest]);
|
|
263
267
|
if (chartType === 'timeline') {
|
|
@@ -292,7 +296,7 @@ function initHighcharts({ isMobile }) {
|
|
|
292
296
|
const bottomPadding = parseFloat(window.getComputedStyle(tooltipNode, null).getPropertyValue('padding-bottom'), 10);
|
|
293
297
|
const containerBottomEdge = top + height;
|
|
294
298
|
const rows = tooltipNode.querySelectorAll(`.${TOOLTIP_LIST_CLASS_NAME} .${TOOLTIP_ROW_CLASS_NAME}`);
|
|
295
|
-
let lastVisibleRowIndex
|
|
299
|
+
let lastVisibleRowIndex;
|
|
296
300
|
const selectedSeriesIndex = this.chart.hoverPoints.indexOf(this.chart.hoverPoint);
|
|
297
301
|
const rowForSelectedSeriesHeight = selectedSeriesIndex >= 0
|
|
298
302
|
? rows[selectedSeriesIndex].getBoundingClientRect().height
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import moment from 'moment';
|
|
2
2
|
import lodashMin from 'lodash/min';
|
|
3
3
|
import { ChartKitError, CHARTKIT_ERROR_CODE } from '../../../../libs';
|
|
4
|
+
import { DEFAULT_LINES_LIMIT } from './constants';
|
|
4
5
|
function prepareValue(value, firstValue, options) {
|
|
5
6
|
if (value === null) {
|
|
6
7
|
return null;
|
|
@@ -83,6 +84,7 @@ function removeHolidays(data, options, holidays) {
|
|
|
83
84
|
}
|
|
84
85
|
// eslint-disable-next-line complexity
|
|
85
86
|
export function prepareData(data, options, holidays) {
|
|
87
|
+
const limit = options.linesLimit || DEFAULT_LINES_LIMIT;
|
|
86
88
|
if (!data ||
|
|
87
89
|
(typeof data === 'object' && !Object.keys(data).length) ||
|
|
88
90
|
(data.graphs &&
|
|
@@ -91,7 +93,7 @@ export function prepareData(data, options, holidays) {
|
|
|
91
93
|
throw new ChartKitError({ code: CHARTKIT_ERROR_CODE.NO_DATA });
|
|
92
94
|
}
|
|
93
95
|
if (data.graphs) {
|
|
94
|
-
if (data.graphs.length >
|
|
96
|
+
if (data.graphs.length > limit && !options.withoutLineLimit) {
|
|
95
97
|
throw new ChartKitError({ code: CHARTKIT_ERROR_CODE.TOO_MANY_LINES });
|
|
96
98
|
}
|
|
97
99
|
data.graphs.forEach((graph) => {
|
|
@@ -160,7 +160,8 @@ export const formatTooltip = (data, tooltip, isMobile) => {
|
|
|
160
160
|
cellsRenderers,
|
|
161
161
|
useCompareFrom: data.useCompareFrom,
|
|
162
162
|
isSelectedLine: true,
|
|
163
|
-
allowComment:
|
|
163
|
+
allowComment: typeof tooltip.lastVisibleRowIndex === 'number' &&
|
|
164
|
+
selectedLineIndex > tooltip.lastVisibleRowIndex,
|
|
164
165
|
};
|
|
165
166
|
// @ts-ignore
|
|
166
167
|
const windowHeight = document.body.clientHeight / ((window.visualViewport && window.visualViewport.scale) || 1);
|
|
@@ -1,11 +1,32 @@
|
|
|
1
1
|
import type { Highcharts } from './lib';
|
|
2
2
|
import type { HighchartsComment } from './comments';
|
|
3
3
|
import type { DrillDownConfig, StringParams } from './misc';
|
|
4
|
+
import type { TooltipData, TooltipLine } from '../renderer/helpers/tooltip/types';
|
|
4
5
|
export declare type CkHighchartsSeriesOptionsType = Highcharts.SeriesOptionsType & {
|
|
5
6
|
title?: string;
|
|
6
7
|
sname?: string;
|
|
7
8
|
fname?: string;
|
|
8
9
|
};
|
|
10
|
+
export declare type HighchartsManageTooltipConfigOptions = {
|
|
11
|
+
count: number;
|
|
12
|
+
lines: TooltipLine[];
|
|
13
|
+
shared: boolean;
|
|
14
|
+
this: {
|
|
15
|
+
x: string;
|
|
16
|
+
y: number;
|
|
17
|
+
points: Highcharts.Point[];
|
|
18
|
+
};
|
|
19
|
+
activeRowAlwaysFirstInTooltip?: boolean;
|
|
20
|
+
hiddenRowsNumber?: number;
|
|
21
|
+
hiddenRowsSum?: string;
|
|
22
|
+
splitTooltip?: boolean;
|
|
23
|
+
tooltipHeader?: string;
|
|
24
|
+
unsafe?: boolean;
|
|
25
|
+
useCompareFrom?: boolean;
|
|
26
|
+
withPercent?: boolean;
|
|
27
|
+
xComments?: TooltipData['xComments'];
|
|
28
|
+
};
|
|
29
|
+
export declare type HighchartsManageTooltipConfig = (options: HighchartsManageTooltipConfigOptions, chart: Highcharts.Chart) => HighchartsManageTooltipConfigOptions;
|
|
9
30
|
export declare type HighchartsWidgetData = {
|
|
10
31
|
data: (CkHighchartsSeriesOptionsType[] | {
|
|
11
32
|
graphs: CkHighchartsSeriesOptionsType[];
|
|
@@ -27,14 +48,26 @@ export declare type HighchartsWidgetData = {
|
|
|
27
48
|
showLegend?: boolean;
|
|
28
49
|
/**
|
|
29
50
|
* Percentage value displayed in tooltip.
|
|
51
|
+
*
|
|
30
52
|
* Relevant in case of initialized [stacking](https://api.highcharts.com/highcharts/plotOptions.column.stacking) property only.
|
|
31
53
|
*/
|
|
32
54
|
showPercentInTooltip?: boolean;
|
|
33
55
|
disableExternalComments?: boolean;
|
|
34
56
|
normalizeDiv?: boolean;
|
|
35
57
|
normalizeSub?: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* Used to ignore `linesLimit` option
|
|
60
|
+
*/
|
|
36
61
|
withoutLineLimit?: boolean;
|
|
37
62
|
precision?: number;
|
|
63
|
+
/**
|
|
64
|
+
* Lines (series) count limit.
|
|
65
|
+
*
|
|
66
|
+
* If you have lines more than `limit`, your chart will throw an error 'ERR.CK.TOO_MANY_LINES'.
|
|
67
|
+
*
|
|
68
|
+
* Ingnored in case of `withoutLineLimit: true`. Default: 50.
|
|
69
|
+
*/
|
|
70
|
+
linesLimit?: number;
|
|
38
71
|
title?: string;
|
|
39
72
|
subtitle?: string;
|
|
40
73
|
highstock?: {
|
|
@@ -46,6 +79,10 @@ export declare type HighchartsWidgetData = {
|
|
|
46
79
|
drillDown?: DrillDownConfig;
|
|
47
80
|
enableSum?: boolean;
|
|
48
81
|
unsafe?: boolean;
|
|
82
|
+
/**
|
|
83
|
+
* Used to modify tooltip data
|
|
84
|
+
*/
|
|
85
|
+
manageTooltipConfig?: HighchartsManageTooltipConfig;
|
|
49
86
|
};
|
|
50
87
|
libraryConfig: Highcharts.Options;
|
|
51
88
|
params?: StringParams;
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/build/plugins/highcharts/{__stories__/mocks → mocks}/combo-chart-with-same-legend-titles.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|