@gravity-ui/chartkit 2.3.0 → 2.3.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.3.1](https://github.com/gravity-ui/chartkit/compare/v2.3.0...v2.3.1) (2023-04-12)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **Highcharts plugin:** navigator series visibility on legend item click ([#148](https://github.com/gravity-ui/chartkit/issues/148)) ([ae7d38b](https://github.com/gravity-ui/chartkit/commit/ae7d38b3ffa8d4b037a762bf26f4e68b504c7886))
|
|
9
|
+
|
|
3
10
|
## [2.3.0](https://github.com/gravity-ui/chartkit/compare/v2.2.2...v2.3.0) (2023-04-11)
|
|
4
11
|
|
|
5
12
|
|
|
@@ -5,6 +5,9 @@ const getSeriesIdentifier = (item) => {
|
|
|
5
5
|
if (item instanceof Highcharts.Point) {
|
|
6
6
|
return item.name;
|
|
7
7
|
}
|
|
8
|
+
if (isNavigatorSeries(item) && item.baseSeries) {
|
|
9
|
+
return item.baseSeries.userOptions.id || item.baseSeries.name;
|
|
10
|
+
}
|
|
8
11
|
return item.userOptions.id || item.name;
|
|
9
12
|
};
|
|
10
13
|
const needSetVisible = (seriesName, seriesVisible, chartSeries) => {
|
|
@@ -35,4 +35,10 @@ declare module 'highcharts' {
|
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
interface SeriesOptionsRegistry extends Record<string, Record<string, unknown>> {}
|
|
38
|
+
|
|
39
|
+
// for Stock chart from https://github.com/highcharts/highcharts/blob/master/ts/Stock/Navigator/NavigatorComposition.ts#L65
|
|
40
|
+
interface Series {
|
|
41
|
+
baseSeries?: Series;
|
|
42
|
+
navigatorSeries?: Series;
|
|
43
|
+
}
|
|
38
44
|
}
|
package/package.json
CHANGED