@gravity-ui/chartkit 2.7.0 → 2.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/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [2.7.1](https://github.com/gravity-ui/chartkit/compare/v2.7.0...v2.7.1) (2023-05-17)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * remove onSeriesClick due to it uselessness ([#162](https://github.com/gravity-ui/chartkit/issues/162)) ([ca993d6](https://github.com/gravity-ui/chartkit/commit/ca993d6987f9c0a4ade0c154eb25d99a6d7e0027))
9
+
3
10
  ## [2.7.0](https://github.com/gravity-ui/chartkit/compare/v2.6.0...v2.7.0) (2023-05-10)
4
11
 
5
12
 
@@ -1255,9 +1255,6 @@ export function prepareConfig(data, options, isMobile, holidays) {
1255
1255
  else {
1256
1256
  fixTooltipOnClick.bind(this)(event, { options });
1257
1257
  }
1258
- if (options.onSeriesClick) {
1259
- options.onSeriesClick({ event, series: this });
1260
- }
1261
1258
  },
1262
1259
  },
1263
1260
  point: {
@@ -38,6 +38,8 @@ declare module 'highcharts' {
38
38
 
39
39
  // for Stock chart from https://github.com/highcharts/highcharts/blob/master/ts/Stock/Navigator/NavigatorComposition.ts#L65
40
40
  interface Series {
41
+ // https://github.com/highcharts/highcharts/blob/master/ts/Core/Series/Series.ts#L1023
42
+ getPointsCollection: () => Point[];
41
43
  xData: number[];
42
44
  baseSeries?: Series;
43
45
  navigatorSeries?: Series;
@@ -89,13 +89,6 @@ export declare type HighchartsWidgetData = {
89
89
  * Used to modify tooltip data
90
90
  */
91
91
  manageTooltipConfig?: HighchartsManageTooltipConfig;
92
- /**
93
- * Highcharts series click handler
94
- */
95
- onSeriesClick?: (args: {
96
- event: Highcharts.SeriesClickEventObject;
97
- series: Highcharts.Series;
98
- }) => void;
99
92
  };
100
93
  libraryConfig: Highcharts.Options;
101
94
  params?: StringParams;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravity-ui/chartkit",
3
- "version": "2.7.0",
3
+ "version": "2.7.1",
4
4
  "description": "React component used to render charts based on any sources you need",
5
5
  "license": "MIT",
6
6
  "repository": "git@github.com:gravity-ui/ChartKit.git",