@gravity-ui/charts 1.27.3 → 1.27.4

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.
@@ -89,7 +89,7 @@ export async function prepareSvgYAxisTitle({ axis, axisTop, axisHeight, axisWidt
89
89
  : Math.min(0, calculateCos(rotateAngle) * originalTextSize.width);
90
90
  const x = axis.position === 'left'
91
91
  ? -left - axisLabelsWidth - axis.labels.margin - axis.title.margin
92
- : -left + axisWidth + axisLabelsWidth + axis.labels.margin + axis.title.margin;
92
+ : axisWidth + axisLabelsWidth + axis.labels.margin + axis.title.margin;
93
93
  return {
94
94
  html: false,
95
95
  content: titleContent,
@@ -89,7 +89,7 @@ export async function prepareSvgYAxisTitle({ axis, axisTop, axisHeight, axisWidt
89
89
  : Math.min(0, calculateCos(rotateAngle) * originalTextSize.width);
90
90
  const x = axis.position === 'left'
91
91
  ? -left - axisLabelsWidth - axis.labels.margin - axis.title.margin
92
- : -left + axisWidth + axisLabelsWidth + axis.labels.margin + axis.title.margin;
92
+ : axisWidth + axisLabelsWidth + axis.labels.margin + axis.title.margin;
93
93
  return {
94
94
  html: false,
95
95
  content: titleContent,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravity-ui/charts",
3
- "version": "1.27.3",
3
+ "version": "1.27.4",
4
4
  "description": "React component used to render charts",
5
5
  "license": "MIT",
6
6
  "main": "dist/cjs/index.js",