@gravity-ui/charts 1.10.1 → 1.10.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.
@@ -312,8 +312,11 @@ export const Legend = (props) => {
312
312
  },
313
313
  });
314
314
  const tickTop = legend.title.height + legend.title.margin + rectHeight;
315
+ const legendAxisClassname = b('axis');
316
+ svgElement.selectAll(`.${legendAxisClassname}`).remove();
315
317
  svgElement
316
318
  .append('g')
319
+ .attr('class', legendAxisClassname)
317
320
  .attr('transform', `translate(0, ${tickTop})`)
318
321
  .call(xAxisGenerator);
319
322
  legendWidth = legend.width;
@@ -312,8 +312,11 @@ export const Legend = (props) => {
312
312
  },
313
313
  });
314
314
  const tickTop = legend.title.height + legend.title.margin + rectHeight;
315
+ const legendAxisClassname = b('axis');
316
+ svgElement.selectAll(`.${legendAxisClassname}`).remove();
315
317
  svgElement
316
318
  .append('g')
319
+ .attr('class', legendAxisClassname)
317
320
  .attr('transform', `translate(0, ${tickTop})`)
318
321
  .call(xAxisGenerator);
319
322
  legendWidth = legend.width;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravity-ui/charts",
3
- "version": "1.10.1",
3
+ "version": "1.10.2",
4
4
  "description": "React component used to render charts",
5
5
  "license": "MIT",
6
6
  "main": "dist/cjs/index.js",