pace-chart-lib 1.0.48 → 1.0.49

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.
@@ -13353,7 +13353,8 @@ function commonAnnotations(chartData, xScale, yScaleLeft, yScaleRight, margin, d
13353
13353
  let axis2 = d.x.axis;
13354
13354
  return dataLabelsPositionForBarChartFamily(formatOptions, d.x.measure ? d.x.measure : 0, d.position, requiredXScale, minValue, void 0, chartType, isSensitivityChart, axis2);
13355
13355
  } else if (chartType === chartTypes.ColumnChart) {
13356
- const legend = xScaleForLegends(d.currentLegend);
13356
+ const legendUniqueId = d.legendUniqueId.includes("~$~") ? d.legendUniqueId.split("~$~")[0] : d.legendUniqueId;
13357
+ const legend = xScaleForLegends(legendUniqueId);
13357
13358
  const x2 = legend != null ? xScale(d.x) + legend - (columnWidth - xScaleForLegends.bandwidth()) / 2 : xScale(d.x);
13358
13359
  return x2;
13359
13360
  } else {
@@ -18213,6 +18214,7 @@ const CustomColumnChart = ({
18213
18214
  const getChartType = (lineData) => {
18214
18215
  lineData.forEach((data2) => {
18215
18216
  switch (data2.properties.type) {
18217
+ default:
18216
18218
  case chartTypes.ColumnChart:
18217
18219
  drawColumnChart(data2);
18218
18220
  break;
@@ -13356,7 +13356,8 @@
13356
13356
  let axis2 = d.x.axis;
13357
13357
  return dataLabelsPositionForBarChartFamily(formatOptions, d.x.measure ? d.x.measure : 0, d.position, requiredXScale, minValue, void 0, chartType, isSensitivityChart, axis2);
13358
13358
  } else if (chartType === chartTypes.ColumnChart) {
13359
- const legend = xScaleForLegends(d.currentLegend);
13359
+ const legendUniqueId = d.legendUniqueId.includes("~$~") ? d.legendUniqueId.split("~$~")[0] : d.legendUniqueId;
13360
+ const legend = xScaleForLegends(legendUniqueId);
13360
13361
  const x2 = legend != null ? xScale(d.x) + legend - (columnWidth - xScaleForLegends.bandwidth()) / 2 : xScale(d.x);
13361
13362
  return x2;
13362
13363
  } else {
@@ -18216,6 +18217,7 @@
18216
18217
  const getChartType = (lineData) => {
18217
18218
  lineData.forEach((data2) => {
18218
18219
  switch (data2.properties.type) {
18220
+ default:
18219
18221
  case chartTypes.ColumnChart:
18220
18222
  drawColumnChart(data2);
18221
18223
  break;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pace-chart-lib",
3
- "version": "1.0.48",
3
+ "version": "1.0.49",
4
4
  "description": "A simple React + Vite + TS UI library with a Button using custom fonts via SCSS.",
5
5
  "license": "MIT",
6
6
  "type": "module",