@gravity-ui/chartkit 1.6.1 → 1.6.3

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,20 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.6.3](https://github.com/gravity-ui/chartkit/compare/v1.6.2...v1.6.3) (2023-02-08)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **Highcharts plugin:** fix updating point x value ([#121](https://github.com/gravity-ui/chartkit/issues/121)) ([0ffe89f](https://github.com/gravity-ui/chartkit/commit/0ffe89fb9f6112166765dd997cf549c6ca2665d9))
9
+
10
+ ## [1.6.2](https://github.com/gravity-ui/chartkit/compare/v1.6.1...v1.6.2) (2023-01-24)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * **Highcharts plugin:** fix tooltip behaviour ([#119](https://github.com/gravity-ui/chartkit/issues/119)) ([5dffcc3](https://github.com/gravity-ui/chartkit/commit/5dffcc3224b415a2e64fe331a4a72a4f90266ae2))
16
+ * **Highcharts plugin:** fix tooltip behaviour for onChartLoad & onRender callbacks ([5dffcc3](https://github.com/gravity-ui/chartkit/commit/5dffcc3224b415a2e64fe331a4a72a4f90266ae2))
17
+
3
18
  ## [1.6.1](https://github.com/gravity-ui/chartkit/compare/v1.6.0...v1.6.1) (2023-01-24)
4
19
 
5
20
 
@@ -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();
@@ -35,7 +35,10 @@ function getGraph({ options, data, comments, isMobile, holidays }) {
35
35
  data[index - 1].y == null) &&
36
36
  // eslint-disable-next-line eqeqeq, no-eq-null
37
37
  (index === data.length - 1 || data[index + 1].y == null)) {
38
- point.update({ marker: { enabled: true } }, false, false);
38
+ point.update({
39
+ marker: { enabled: true },
40
+ x: point.x,
41
+ }, false, false);
39
42
  needRedraw = true;
40
43
  }
41
44
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravity-ui/chartkit",
3
- "version": "1.6.1",
3
+ "version": "1.6.3",
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",