@gravity-ui/chartkit 7.44.0 → 7.44.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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @gravity-ui/chartkit · [npm package](https://www.npmjs.com/package/@gravity-ui/chartkit) [License](LICENSE) [CI](https://github.com/gravity-ui/ChartKit/actions/workflows/ci.yml?query=branch:main) [storybook](https://preview.gravity-ui.com/chartkit/)
1
+ # Gravity UI ChartKit · [![npm package](https://img.shields.io/npm/v/@gravity-ui/chartkit)](https://www.npmjs.com/package/@gravity-ui/chartkit) [![License](https://img.shields.io/github/license/gravity-ui/ChartKit)](LICENSE) [![CI](https://img.shields.io/github/actions/workflow/status/gravity-ui/ChartKit/.github/workflows/ci.yml?label=CI&logo=github)](https://github.com/gravity-ui/ChartKit/actions/workflows/ci.yml?query=branch:main) [![storybook](https://img.shields.io/badge/Storybook-deployed-ff4685)](https://preview.gravity-ui.com/chartkit/)
2
2
 
3
3
  Plugin-based React component that provides a unified rendering interface for multiple charting libraries. You register one or more plugins and render charts via `<ChartKit type="..." data={...} />` — ChartKit dispatches to the correct renderer automatically.
4
4
 
@@ -1074,7 +1074,7 @@ function drillOnClick(event, { options, chartType }) {
1074
1074
  const point = event.point;
1075
1075
  const series = point.series;
1076
1076
  if (isColorDrillDown) {
1077
- return series.name;
1077
+ return series.drillDownFilterValue || series.name;
1078
1078
  }
1079
1079
  let drillDownFilter = point.options.drillDownFilterValue || point.category || point.name;
1080
1080
  const isDateTime = chartType !== 'pie' &&
@@ -49,13 +49,13 @@ export declare const getSortedData: <T extends Record<string, any>>(data: T[], s
49
49
  [Symbol.iterator]?: boolean | undefined;
50
50
  readonly [Symbol.unscopables]?: boolean | undefined;
51
51
  at?: boolean | undefined;
52
- } | ((start?: number, end?: number) => T[]) | (() => string) | {
52
+ } | (() => string) | {
53
53
  (): string;
54
54
  (locales: string | string[], options?: Intl.NumberFormatOptions & Intl.DateTimeFormatOptions): string;
55
55
  } | (() => T | undefined) | ((...items: T[]) => number) | {
56
56
  (...items: ConcatArray<T>[]): T[];
57
57
  (...items: (T | ConcatArray<T>)[]): T[];
58
- } | ((separator?: string) => string) | (() => T[]) | (() => T | undefined) | ((compareFn?: ((a: T, b: T) => number) | undefined) => T[]) | {
58
+ } | ((separator?: string) => string) | (() => T[]) | (() => T | undefined) | ((start?: number, end?: number) => T[]) | ((compareFn?: ((a: T, b: T) => number) | undefined) => T[]) | {
59
59
  (start: number, deleteCount?: number): T[];
60
60
  (start: number, deleteCount: number, ...items: T[]): T[];
61
61
  } | ((...items: T[]) => number) | ((searchElement: T, fromIndex?: number) => number) | ((searchElement: T, fromIndex?: number) => number) | {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravity-ui/chartkit",
3
- "version": "7.44.0",
3
+ "version": "7.44.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",
@@ -47,7 +47,7 @@
47
47
  ],
48
48
  "dependencies": {
49
49
  "@bem-react/classname": "^1.6.0",
50
- "@gravity-ui/charts": "^1.42.0",
50
+ "@gravity-ui/charts": "^1.42.2",
51
51
  "@gravity-ui/date-utils": "^2.1.0",
52
52
  "@gravity-ui/i18n": "^1.0.0",
53
53
  "@gravity-ui/yagr": "^4.11.0",