@gravity-ui/chartkit 1.6.1 → 1.6.2
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,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.6.2](https://github.com/gravity-ui/chartkit/compare/v1.6.1...v1.6.2) (2023-01-24)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **Highcharts plugin:** fix tooltip behaviour ([#119](https://github.com/gravity-ui/chartkit/issues/119)) ([5dffcc3](https://github.com/gravity-ui/chartkit/commit/5dffcc3224b415a2e64fe331a4a72a4f90266ae2))
|
|
9
|
+
* **Highcharts plugin:** fix tooltip behaviour for onChartLoad & onRender callbacks ([5dffcc3](https://github.com/gravity-ui/chartkit/commit/5dffcc3224b415a2e64fe331a4a72a4f90266ae2))
|
|
10
|
+
|
|
3
11
|
## [1.6.1](https://github.com/gravity-ui/chartkit/compare/v1.6.0...v1.6.1) (2023-01-24)
|
|
4
12
|
|
|
5
13
|
|
|
@@ -105,6 +105,10 @@ export class HighchartsComponent extends React.PureComponent {
|
|
|
105
105
|
(_b = (_a = this.props).onRender) === null || _b === void 0 ? void 0 : _b.call(_a, {
|
|
106
106
|
renderTime: getChartPerformanceDuration(this.getId()),
|
|
107
107
|
});
|
|
108
|
+
const widget = this.chartComponent.current ? this.chartComponent.current.chart : null;
|
|
109
|
+
if (this.state.callback && widget) {
|
|
110
|
+
this.state.callback(widget);
|
|
111
|
+
}
|
|
108
112
|
return;
|
|
109
113
|
}
|
|
110
114
|
this.onLoad();
|
package/package.json
CHANGED