@gravity-ui/charts 0.11.0 → 0.11.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 Charts · [![npm package](https://img.shields.io/npm/v/@gravity-ui/charts)](https://www.npmjs.com/package/@gravity-ui/charts) [![CI](https://img.shields.io/github/actions/workflow/status/gravity-ui/charts/.github/workflows/ci.yml?label=CI&logo=github)](https://github.com/gravity-ui/charts/actions/workflows/ci.yml?query=branch:main) [![storybook](https://img.shields.io/badge/Storybook-deployed-ff4685)](https://preview.gravity-ui.com/charts/)
1
+ # Gravity UI Charts · [![npm package](https://img.shields.io/npm/v/@gravity-ui/charts)](https://www.npmjs.com/package/@gravity-ui/charts) [![CI](https://img.shields.io/github/actions/workflow/status/gravity-ui/charts/.github/workflows/ci.yml?label=CI&logo=github)](https://github.com/gravity-ui/charts/actions/workflows/ci.yml?query=branch:main) [![storybook](https://img.shields.io/badge/Storybook-deployed-ff4685)](https://preview.gravity-ui.com/charts/)
2
2
 
3
3
  ## Install
4
4
 
@@ -43,7 +43,7 @@ export function prepareBarYSeries(args) {
43
43
  enabled: get(series, 'legend.enabled', legend.enabled),
44
44
  symbol: prepareLegendSymbol(series),
45
45
  },
46
- data: series.data,
46
+ data: series.data.filter((d) => d.x !== null),
47
47
  stacking: series.stacking,
48
48
  stackId: getSeriesStackId(series),
49
49
  dataLabels: prepareDataLabels(series),
@@ -43,7 +43,7 @@ export function prepareBarYSeries(args) {
43
43
  enabled: get(series, 'legend.enabled', legend.enabled),
44
44
  symbol: prepareLegendSymbol(series),
45
45
  },
46
- data: series.data,
46
+ data: series.data.filter((d) => d.x !== null),
47
47
  stacking: series.stacking,
48
48
  stackId: getSeriesStackId(series),
49
49
  dataLabels: prepareDataLabels(series),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravity-ui/charts",
3
- "version": "0.11.0",
3
+ "version": "0.11.1",
4
4
  "description": "React component used to render charts",
5
5
  "license": "MIT",
6
6
  "main": "dist/cjs/index.js",