@gravity-ui/chartkit 2.4.1 → 2.5.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 CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [2.5.0](https://github.com/gravity-ui/chartkit/compare/v2.4.1...v2.5.0) (2023-05-03)
4
+
5
+
6
+ ### Features
7
+
8
+ * **Highcharts plugin:** add config.tooltip property ([#156](https://github.com/gravity-ui/chartkit/issues/156)) ([8a8229e](https://github.com/gravity-ui/chartkit/commit/8a8229e4ee8401a8cfce4d0689a047e830d1a5e9))
9
+
3
10
  ## [2.4.1](https://github.com/gravity-ui/chartkit/compare/v2.4.0...v2.4.1) (2023-04-19)
4
11
 
5
12
 
@@ -898,7 +898,8 @@ export function hideFixedTooltip(tooltip, isMobile) {
898
898
  }
899
899
  }
900
900
  function fixTooltip(tooltip, options, event) {
901
- if (options.splitTooltip) {
901
+ const pinable = get(options, 'tooltip.pinable', true);
902
+ if (options.splitTooltip || !pinable) {
902
903
  return false;
903
904
  }
904
905
  if (tooltip.fixed) {
@@ -83,6 +83,12 @@ export declare type HighchartsWidgetData = {
83
83
  * Used to modify tooltip data
84
84
  */
85
85
  manageTooltipConfig?: HighchartsManageTooltipConfig;
86
+ /**
87
+ * Tooltip config
88
+ */
89
+ tooltip?: {
90
+ pinable?: boolean;
91
+ };
86
92
  };
87
93
  libraryConfig: Highcharts.Options;
88
94
  params?: StringParams;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravity-ui/chartkit",
3
- "version": "2.4.1",
3
+ "version": "2.5.0",
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",