pace-chart-lib 1.0.10 → 1.0.13

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.
Files changed (49) hide show
  1. package/dist/pace-chart-lib.es.js +177 -209
  2. package/dist/pace-chart-lib.umd.js +177 -209
  3. package/package.json +1 -1
  4. package/dist/Components/Charts/ChartsWithAxis/AreaFamily/AreaChart.d.ts +0 -4
  5. package/dist/Components/Charts/ChartsWithAxis/AreaFamily/NormalizedStackAreaChart.d.ts +0 -4
  6. package/dist/Components/Charts/ChartsWithAxis/AreaFamily/StackAreaChart.d.ts +0 -4
  7. package/dist/Components/Charts/ChartsWithAxis/ChartsWithAxisFunctions.d.ts +0 -667
  8. package/dist/Components/Charts/ChartsWithAxis/ChartsWithAxisTypes.types.d.ts +0 -171
  9. package/dist/Components/Charts/ChartsWithAxis/ColumnFamily/ColumnChart.d.ts +0 -4
  10. package/dist/Components/Charts/ChartsWithAxis/ColumnFamily/ColumnHistogramChart.d.ts +0 -4
  11. package/dist/Components/Charts/ChartsWithAxis/ColumnFamily/CustomColumnChart.d.ts +0 -4
  12. package/dist/Components/Charts/ChartsWithAxis/ColumnFamily/LayeredColumnChart.d.ts +0 -4
  13. package/dist/Components/Charts/ChartsWithAxis/ColumnFamily/NormalizedStackColumnChart.d.ts +0 -4
  14. package/dist/Components/Charts/ChartsWithAxis/ColumnFamily/StackColumnChart.d.ts +0 -4
  15. package/dist/Components/Charts/ChartsWithAxis/HorizontalBarFamily/HorizontalBarChart.d.ts +0 -4
  16. package/dist/Components/Charts/ChartsWithAxis/HorizontalBarFamily/HorizontalHistogramChart.d.ts +0 -4
  17. package/dist/Components/Charts/ChartsWithAxis/HorizontalBarFamily/LayeredHorizontalBarChart.d.ts +0 -4
  18. package/dist/Components/Charts/ChartsWithAxis/HorizontalBarFamily/NormalizedStackHorizontalBarChart.d.ts +0 -4
  19. package/dist/Components/Charts/ChartsWithAxis/HorizontalBarFamily/StackHorizontalBarChart.d.ts +0 -4
  20. package/dist/Components/Charts/ChartsWithAxis/LineFamily/LineChart.d.ts +0 -4
  21. package/dist/Components/Charts/ChartsWithAxis/LineFamily/NormalizedStackLineChart.d.ts +0 -4
  22. package/dist/Components/Charts/ChartsWithAxis/LineFamily/StackLineChart.d.ts +0 -4
  23. package/dist/Components/Charts/ChartsWithAxis/MiscellaneousChartFamily/TornadoChart.d.ts +0 -4
  24. package/dist/Components/Charts/ChartsWithAxis/MiscellaneousChartFamily/WaterfallChart.d.ts +0 -4
  25. package/dist/Components/Charts/ChartsWithoutAxis/ChartsWithoutAxisFunctions.d.ts +0 -92
  26. package/dist/Components/Charts/ChartsWithoutAxis/ChartsWithoutAxisTypes.types.d.ts +0 -111
  27. package/dist/Components/Charts/ChartsWithoutAxis/Maps/Cordinates.d.ts +0 -26
  28. package/dist/Components/Charts/ChartsWithoutAxis/Maps/Maps.d.ts +0 -4
  29. package/dist/Components/Charts/ChartsWithoutAxis/OtherCharts/BubbleChart.d.ts +0 -4
  30. package/dist/Components/Charts/ChartsWithoutAxis/OtherCharts/OrganizationChart.d.ts +0 -4
  31. package/dist/Components/Charts/ChartsWithoutAxis/OtherCharts/ProgressChart.d.ts +0 -3
  32. package/dist/Components/Charts/ChartsWithoutAxis/OtherCharts/PyramidChart.d.ts +0 -3
  33. package/dist/Components/Charts/ChartsWithoutAxis/OtherCharts/RadialBarChart.d.ts +0 -4
  34. package/dist/Components/Charts/ChartsWithoutAxis/OtherCharts/SankeyChart.d.ts +0 -4
  35. package/dist/Components/Charts/ChartsWithoutAxis/OtherCharts/ScatterChart.d.ts +0 -4
  36. package/dist/Components/Charts/ChartsWithoutAxis/OtherCharts/Speedometer.d.ts +0 -3
  37. package/dist/Components/Charts/ChartsWithoutAxis/OtherCharts/VennChart.d.ts +0 -4
  38. package/dist/Components/Charts/ChartsWithoutAxis/OtherCharts/WordCloud.d.ts +0 -4
  39. package/dist/Components/Charts/ChartsWithoutAxis/PieFamily/DonutChart.d.ts +0 -4
  40. package/dist/Components/Charts/ChartsWithoutAxis/PieFamily/PieChart.d.ts +0 -4
  41. package/dist/Components/Charts/ChartsWithoutAxis/PieFamily/PieFamilyCommonFunctions.d.ts +0 -10
  42. package/dist/Components/Charts/ChartsWithoutAxis/PieFamily/PieofPieChart.d.ts +0 -3
  43. package/dist/Components/Charts/ChartsWithoutAxis/PieFamily/TreemapChart.d.ts +0 -3
  44. package/dist/Components/Charts/Core/Common.types.d.ts +0 -369
  45. package/dist/Components/Charts/Core/CommonFunctions.d.ts +0 -239
  46. package/dist/Components/Charts/Core/DefaultChartDataProperties.d.ts +0 -65
  47. package/dist/Components/Charts/Core/DefaultProperties.types.d.ts +0 -595
  48. package/dist/Services/ErrorLog.d.ts +0 -1
  49. package/dist/index.d.ts +0 -35
@@ -11605,7 +11605,7 @@
11605
11605
  "Helvetica"
11606
11606
  )[1] : 0;
11607
11607
  yTitle = yTitle > width * 0.1 ? width * 0.1 : yTitle;
11608
- let yLabel = formatOptions.yAxisLabel.yAxisLabelVisibility ? responsiveYaxisMargin(maxNumberForPrimaryAxis, yMaxLeft, formatOptions, false, isNormalizedChart) : getYAxisLabel(formatOptions, max$2(legendList, (d) => d?.length || 0) || 0);
11608
+ let yLabel = formatOptions.yAxisLabel.yAxisLabelVisibility ? responsiveYaxisMargin(maxNumberForPrimaryAxis, yMaxLeft, formatOptions, false, isNormalizedChart) + 10 : getYAxisLabel(formatOptions, max$2(legendList, (d) => d?.length || 0) || 0) + 10;
11609
11609
  yLabel += 8;
11610
11610
  let secondaryYLabel = formatOptions.secondaryYAxisLabel.secondaryYAxisLabelVisibility ? responsiveYaxisMargin(
11611
11611
  maxNumberForSecondaryAxis,
@@ -15404,10 +15404,10 @@
15404
15404
  logError$2(fileName$b, "getNumberWithFormatFunction", error);
15405
15405
  }
15406
15406
  }
15407
- function showTooltipOnMouseMove(elements, chartFormatOptions, event2, markerProp) {
15407
+ function showTooltipOnMouseMove(elements, chartFormatOptions, event2, prop) {
15408
15408
  try {
15409
- const markerColor = markerProp?.markerColor ?? "blue";
15410
- const markerShape = markerProp?.markerShape.toLowerCase() ?? "circle";
15409
+ const markerColor = prop?.markerColor ?? "blue";
15410
+ const markerShape = prop?.markerShape.toLowerCase() ?? "circle";
15411
15411
  selectAll(".chartTooltip").style("visibility", "hidden");
15412
15412
  const tooltip = select$2("#chartTooltipDiv").html("").append("div").attr(
15413
15413
  "class",
@@ -15517,11 +15517,11 @@
15517
15517
  chartFormatOptions.chartTitle.chartTitleVisibility ? "visible" : "hidden"
15518
15518
  ).attr("transform", `translate(2,2)`).attr("class", "chartTitle").attr("width", chartTitleWidth).attr("height", chartTitleHeight + "px");
15519
15519
  if (chartFormatOptions.chartTitle.dynamicTitleText.length !== 0) {
15520
- object2.append("xhtml:div").style("color", "rgba(119,119,119)").attr("title", chartFormatOptions.chartTitle.chartTitleText).style("white-space", "pre").style("text-overflow", "ellipsis").html(
15520
+ object2.append("xhtml:div").style("color", "rgba(119,119,119)").attr("title", chartFormatOptions.chartTitle.chartTitleText).style("white-space", "pre").style("text-overflow", "ellipsis").style("overflow", "visible").style("line-height", "1.3em").html(
15521
15521
  chartFormatOptions.chartTitle.chartTitleHTML ? chartFormatOptions.chartTitle.chartTitleHTML : chartFormatOptions.chartTitle.chartTitleText
15522
15522
  );
15523
15523
  } else {
15524
- object2.append("xhtml:div").style("white-space", "pre").style("user-select", "none").style("text-overflow", "ellipsis").style("overflow", "hidden").attr("class", "chartTiltle").attr("id", "chartTitleId").style("text-anchor", "start").style("color", "rgba(119,119,119)").style("font-size", "16px").style(
15524
+ object2.append("xhtml:div").style("white-space", "pre").style("user-select", "none").style("text-overflow", "ellipsis").style("overflow", "visible").style("line-height", "1.3em").attr("class", "chartTiltle").attr("id", "chartTitleId").style("text-anchor", "start").style("color", "rgba(119,119,119)").style("font-size", "16px").style(
15525
15525
  "font-family",
15526
15526
  chartFormatOptions.chartTitle.chartTitleFontFamily
15527
15527
  ).attr("title", chartFormatOptions.chartTitle.chartTitleText).html(chartFormatOptions.chartTitle.chartTitleText);
@@ -15567,14 +15567,14 @@
15567
15567
  if (chartFormatOptions.legends.onHoverEffect) {
15568
15568
  selectAll(".parentGroup").classed("highlight", false).classed("unhighlight", true);
15569
15569
  selectAll(
15570
- '[hoverId="' + this.textContent.replace(/ /g, "-") + '"]'
15570
+ '[hoverId="' + ((this.textContent.match(/\(([^)]+)\)/) || [])[1] || this.textContent).replace(/ /g, "-") + '"]'
15571
15571
  ).classed("highlight", true).classed("unhighlight", false);
15572
15572
  }
15573
15573
  }).on("mouseout", function(d2) {
15574
15574
  if (chartFormatOptions.legends.onHoverEffect) {
15575
15575
  selectAll(".parentGroup").classed("highlight", false).classed("unhighlight", false);
15576
15576
  selectAll(
15577
- '[hoverId="' + this.textContent.replace(/ /g, "-") + '"]'
15577
+ '[hoverId="' + ((this.textContent.match(/\(([^)]+)\)/) || [])[1] || this.textContent).replace(/ /g, "-") + '"]'
15578
15578
  ).classed("highlight", false).classed("unhighlight", false);
15579
15579
  }
15580
15580
  });
@@ -15595,7 +15595,7 @@
15595
15595
  {
15596
15596
  if ((legendShape || customLegendShape) == staticLegendShape.circle) {
15597
15597
  getCircleShape(d, innerdiv);
15598
- } else if ((legendShape || customLegendShape) == staticLegendShape.circle) {
15598
+ } else if ((legendShape || customLegendShape) == staticLegendShape.hollowCircle) {
15599
15599
  getHollowCircleShape(d, innerdiv);
15600
15600
  } else if ((legendShape || customLegendShape) == staticLegendShape.line) {
15601
15601
  getLineShape(d, innerdiv, chartFormatOptions);
@@ -15641,7 +15641,7 @@
15641
15641
  }
15642
15642
  function getHollowCircleShape(d, innerDiv) {
15643
15643
  try {
15644
- innerDiv.append("div").style("height", "12px").style("width", "12px").style("border-radius", "50%").style("border", `3px solid ${d.properties.Color}`);
15644
+ innerDiv.append("div").style("height", "12px").style("width", "12px").style("border-radius", "50%").style("border", `3px solid ${d.properties.Color ?? d.properties.color}`);
15645
15645
  } catch (error) {
15646
15646
  logError$2(fileName$b, "getHollowCircleShape", error);
15647
15647
  }
@@ -15827,7 +15827,7 @@
15827
15827
  logError$2(fileName$b, "marginCalculationsForChartsWithoutAxis", error);
15828
15828
  }
15829
15829
  };
15830
- const initLegendListWithTotalValueAllowance = (chartFormatOptions, svg, seriesData, width, height, legendListWidth, chartTitleHeight, chartId, margins, shouldAllowTotalValueMargin = true) => {
15830
+ const initLegendListWithTotalValueAllowance = (chartFormatOptions, svg, seriesData, width, height, legendListWidth, chartTitleHeight, chartId, margins, staticLegendShape2, shouldAllowTotalValueMargin = true) => {
15831
15831
  try {
15832
15832
  let position = chartFormatOptions.legends.legendPosition;
15833
15833
  let totalPosition = chartFormatOptions.total.totalPosition;
@@ -15848,7 +15848,7 @@
15848
15848
  height - chartTitleHeight - 10 - (shouldTotalValueAdjustment ? totalPosition == staticTotalPosition.top && totalAlignment == staticTotalAlignment.end ? 10 : totalPosition == staticTotalPosition.bottom && totalAlignment == staticTotalAlignment.start ? 20 : 0 : 0),
15849
15849
  position,
15850
15850
  verticalLegendAlignment,
15851
- staticLegendShape.circle,
15851
+ staticLegendShape2,
15852
15852
  chartFormatOptions,
15853
15853
  chartId
15854
15854
  );
@@ -15863,7 +15863,7 @@
15863
15863
  30,
15864
15864
  position,
15865
15865
  horizontalLegendAlignment,
15866
- staticLegendShape.circle,
15866
+ staticLegendShape2,
15867
15867
  chartFormatOptions,
15868
15868
  chartId
15869
15869
  );
@@ -15878,7 +15878,7 @@
15878
15878
  height - chartTitleHeight - 10 - (shouldTotalValueAdjustment ? totalPosition == staticTotalPosition.top && totalAlignment == staticTotalAlignment.start ? 10 : totalPosition == staticTotalPosition.bottom && totalAlignment == staticTotalAlignment.start ? 20 : 0 : 0),
15879
15879
  position,
15880
15880
  verticalLegendAlignment,
15881
- staticLegendShape.circle,
15881
+ staticLegendShape2,
15882
15882
  chartFormatOptions,
15883
15883
  chartId
15884
15884
  );
@@ -15893,7 +15893,7 @@
15893
15893
  30,
15894
15894
  position,
15895
15895
  horizontalLegendAlignment,
15896
- staticLegendShape.circle,
15896
+ staticLegendShape2,
15897
15897
  chartFormatOptions,
15898
15898
  chartId
15899
15899
  );
@@ -19908,7 +19908,7 @@
19908
19908
  function logError$1(fileName2, functionName, error) {
19909
19909
  console.error(`[${fileName2}] [${functionName}]`, error);
19910
19910
  }
19911
- const ColumnHistogramChart$1 = ({
19911
+ const ColumnHistogramChart = ({
19912
19912
  isDateType,
19913
19913
  formatOptions,
19914
19914
  data
@@ -24320,7 +24320,7 @@
24320
24320
  }
24321
24321
  ) });
24322
24322
  };
24323
- const ColumnHistogramChart = ({
24323
+ const HorizontalHistogramChart = ({
24324
24324
  isDateType,
24325
24325
  formatOptions,
24326
24326
  data
@@ -24393,12 +24393,12 @@
24393
24393
  };
24394
24394
  require$$0$1.useEffect(() => {
24395
24395
  try {
24396
- createColumnChart();
24396
+ createHorizontalChart();
24397
24397
  } catch (error) {
24398
- logError$2("Columnchart", "createColumnChart", error);
24398
+ logError$2("HorizontalHistogramChart", "createHorizontalChart", error);
24399
24399
  }
24400
24400
  }, [formatOptions]);
24401
- const createColumnChart = () => {
24401
+ const createHorizontalChart = () => {
24402
24402
  ({ formatOptions, svg, width, height } = firstFunctionBeforeRender$1(
24403
24403
  svgRef,
24404
24404
  formatOptions
@@ -24447,25 +24447,28 @@
24447
24447
  seriesData,
24448
24448
  chartJSON.dimensionList
24449
24449
  ));
24450
- initSvg$1(
24451
- // for svg creation
24452
- svg,
24453
- width,
24454
- height,
24455
- formatOptions
24456
- );
24450
+ initSvg$1(svg, width, height, formatOptions);
24457
24451
  gTag = initChartArea$1(svg, margin);
24458
- initPlotArea(
24452
+ initPlotArea(gTag, formatOptions, dataTableHeight, innerWidth2, innerHeight2, chartType);
24453
+ binsCalculation();
24454
+ initScale();
24455
+ initAxis();
24456
+ initXaxis$1(
24459
24457
  gTag,
24458
+ chartJSON,
24459
+ xLabel,
24460
24460
  formatOptions,
24461
24461
  dataTableHeight,
24462
+ yScaleLeft,
24463
+ xAxis,
24464
+ dimensionHeightWidthArray,
24465
+ height,
24466
+ columnWidth,
24467
+ isDateType,
24462
24468
  innerWidth2,
24463
24469
  innerHeight2,
24464
- chartType
24470
+ filteredDimension
24465
24471
  );
24466
- binsCalculation();
24467
- initScale();
24468
- initAxis();
24469
24472
  initYaxis$1(
24470
24473
  gTag,
24471
24474
  formatOptions,
@@ -24582,7 +24585,7 @@
24582
24585
  const binsCalculation = () => {
24583
24586
  switch (formatOptions.bins.binsCalculation) {
24584
24587
  case "Automatic":
24585
- thresholds = innerWidth2 / 50;
24588
+ thresholds = innerHeight2 / 50;
24586
24589
  break;
24587
24590
  case "Number of Bins":
24588
24591
  calculatingPeriodsWithBins(false);
@@ -24592,11 +24595,7 @@
24592
24595
  }
24593
24596
  };
24594
24597
  const calculatingPeriodsWithBins = (isWithWidth) => {
24595
- filteredData.forEach(
24596
- (d) => d.data.sort(function(a2, b) {
24597
- return a2.value - b.value;
24598
- })
24599
- );
24598
+ filteredData.forEach((d) => d.data.sort((a2, b) => a2.value - b.value));
24600
24599
  let range2 = chartJSON.xMax - chartJSON.xMin;
24601
24600
  let tempPeriod;
24602
24601
  if (isWithWidth) {
@@ -24622,9 +24621,9 @@
24622
24621
  }
24623
24622
  };
24624
24623
  const initScale = () => {
24625
- xScale = linear$1().domain([chartJSON.xMin, chartJSON.xMax]).range([0, innerWidth2]);
24626
- const numberOfBins = periods.length > 0 ? periods : xScale.ticks(thresholds);
24627
- let histogram = bin().value((d) => d).domain(xScale.domain()).thresholds(numberOfBins);
24624
+ yScaleLeft = linear$1().domain([chartJSON.xMin, chartJSON.xMax]).range([innerHeight2, 0]);
24625
+ const numberOfBins = periods.length > 0 ? periods : yScaleLeft.ticks(thresholds);
24626
+ let histogram = bin().value((d) => d).domain(yScaleLeft.domain()).thresholds(numberOfBins);
24628
24627
  filteredData.forEach((d) => {
24629
24628
  let tempArray = histogram(d.data.map((val) => val.value));
24630
24629
  bins.push(tempArray);
@@ -24640,23 +24639,26 @@
24640
24639
  bins.forEach((d) => d.forEach((j) => cumulativeLength.push(j.length)));
24641
24640
  chartJSON.yMaxLeft = max$2(cumulativeLength);
24642
24641
  chartJSON.yMinLeft = min$2(cumulativeLength);
24643
- yScaleLeft = linear$1().range([innerHeight2, 0]).domain([customYaxisMinValue || customYaxisMinValue == 0 ? customYaxisMinValue : 0, customYaxisMaxValue || customYaxisMaxValue == 0 ? customYaxisMaxValue : chartJSON.yMaxLeft + 0.2 * chartJSON.yMaxLeft]);
24642
+ xScale = linear$1().domain([
24643
+ customXaxisMinValue || customXaxisMinValue == 0 ? customXaxisMinValue : 0,
24644
+ customXaxisMaxValue || customXaxisMaxValue == 0 ? customXaxisMaxValue : chartJSON.yMaxLeft + 0.2 * chartJSON.yMaxLeft
24645
+ ]).range([0, innerWidth2]);
24644
24646
  };
24645
24647
  const initAxis = () => {
24646
- getXAxis();
24648
+ getYAxis();
24647
24649
  {
24648
- let responsiveLablesObj = responsiveYaxisLabel$1(
24650
+ let responsiveLabelsObj = responsiveYaxisLabel$1(
24649
24651
  chartJSON.yMaxLeft,
24650
24652
  chartJSON.yMinLeft,
24651
- innerHeight2,
24653
+ innerWidth2,
24652
24654
  formatOptions,
24653
24655
  chartJSON,
24654
24656
  customYaxisMinValue,
24655
24657
  customYaxisMaxValue,
24656
24658
  false,
24657
- innerWidth2
24659
+ innerHeight2
24658
24660
  );
24659
- yAxisLeft = axisLeft(yScaleLeft).tickFormat(
24661
+ xAxis = axisBottom(xScale).tickFormat(
24660
24662
  (d) => getNumberWithFormat(
24661
24663
  d,
24662
24664
  formatOptions.yAxisLabel.yAxisDisplayUnits,
@@ -24664,15 +24666,14 @@
24664
24666
  formatOptions.yAxisLabel.yAxisLabelDecimalPrecision
24665
24667
  )
24666
24668
  ).tickSize(
24667
- formatOptions.plotArea.gridLinesVisibility ? formatOptions.plotArea.gridLinesHorizontal ? -innerWidth2 + 0 : 0 : 0
24668
- ).tickValues(responsiveLablesObj.autoLabelFlag ? void 0 : responsiveLablesObj.yAxisLabelArray).ticks(responsiveLablesObj.customTickValue).tickPadding(8).tickSizeOuter(0);
24669
+ formatOptions.plotArea.gridLinesVisibility ? formatOptions.plotArea.gridLinesHorizontal ? -innerHeight2 + 0 : 0 : 0
24670
+ ).tickValues(responsiveLabelsObj.autoLabelFlag ? void 0 : responsiveLabelsObj.yAxisLabelArray).ticks(responsiveLabelsObj.customTickValue).tickPadding(8).tickSizeOuter(0);
24669
24671
  }
24670
24672
  };
24671
- const getXAxis = () => {
24672
- let xaxisLabelPosition = parseInt(formatOptions.xAxisLabel.xAxisPosition);
24673
- let labelArray = responsiveXaxisLabelForNumericValue(chartJSON.xMax, chartJSON.xMin, innerWidth2, formatOptions, customXaxisMinValue, customXaxisMaxValue, innerHeight2, false).xAxisLabelArray;
24673
+ const getYAxis = () => {
24674
+ let labelArray = responsiveXaxisLabelForNumericValue(chartJSON.xMax, chartJSON.xMin, innerHeight2, formatOptions, customXaxisMinValue, customXaxisMaxValue, innerWidth2, false).xAxisLabelArray;
24674
24675
  labelArray.shift();
24675
- xAxis = (xaxisLabelPosition == 1 ? axisTop(xScale) : axisBottom(xScale)).tickFormat(
24676
+ yAxisLeft = axisLeft(yScaleLeft).tickFormat(
24676
24677
  (d) => getNumberWithFormat(
24677
24678
  d,
24678
24679
  formatOptions.xAxisLabel.xAxisDisplayUnits,
@@ -24681,32 +24682,29 @@
24681
24682
  false
24682
24683
  )
24683
24684
  ).tickSize(
24684
- formatOptions.plotArea.gridLinesVisibility ? formatOptions.plotArea.gridLinesVertical ? formatOptions.plotArea.gridLinesVertical ? -(dataTableHeight > 0 ? innerHeight2 - dataTableHeight : innerHeight2) : parseFloat(formatOptions.plotArea.ticksHeight) * ((dataTableHeight > 0 ? innerHeight2 - dataTableHeight : innerHeight2) / 100) * (formatOptions.xAxisLabel.xAxisPosition == "1" ? 1 : -1) : 0 : 0
24685
+ formatOptions.plotArea.gridLinesVisibility ? formatOptions.plotArea.gridLinesVertical ? -innerWidth2 : 0 : 0
24685
24686
  ).tickSizeOuter(0);
24686
- formatOptions.bins.binsCalculation === "Automatic" ? xAxis.ticks(thresholds) : xAxis.tickValues(periods).ticks(innerWidth2 / 50);
24687
+ formatOptions.bins.binsCalculation === "Automatic" ? yAxisLeft.ticks(thresholds) : yAxisLeft.tickValues(periods).ticks(innerHeight2 / 50);
24687
24688
  };
24688
24689
  const getChartType = (lineData) => {
24689
- gTag.append("g").attr("class", "parentGroup").selectAll("#scaling-svg" + chartId + " .rect").data(bins).enter().append("g").selectAll("rect").data((d) => d).enter().append("rect").attr("class", "rect").attr("stroke", formatOptions.bins.binsBorderVisibility && formatOptions.bins.binsBorderColor).attr(
24690
- "stroke-width",
24691
- formatOptions.bins.binsBorderVisibility && formatOptions.bins.binsBorderThickness
24692
- ).attr(
24693
- "stroke-opacity",
24694
- formatOptions.bins.binsBorderVisibility && formatOptions.bins.binsBorderOpacity
24695
- ).attr("x", 1).attr("transform", function(d) {
24696
- return "translate(" + xScale(d.x0) + "," + (yScaleLeft(d.length) > 0 ? yScaleLeft(d.length) : 0) + ")";
24697
- }).attr("width", function(d) {
24698
- return xScale(d.x1) - xScale(d.x0) - parseFloat(formatOptions.bins.binsGapWidth) < 0 ? 0 : xScale(d.x1) - xScale(d.x0) - parseFloat(formatOptions.bins.binsGapWidth);
24699
- }).attr("height", function(d) {
24700
- return innerHeight2 - yScaleLeft(d.length);
24701
- }).style("fill", (d) => d.color !== "#ffffff" ? d.color : "none").style("opacity", formatOptions.bins.binsFillOpacity).style("shape-rendering", "crispEdges").on("mousemove", (event2, d) => {
24690
+ gTag.append("g").attr("class", "parentGroup").selectAll("#scaling-svg" + chartId + " .rect").data(bins).enter().append("g").selectAll("rect").data((d) => d).enter().append("rect").attr("class", "rect").attr("stroke", formatOptions.bins.binsBorderVisibility && formatOptions.bins.binsBorderColor).attr("stroke-width", formatOptions.bins.binsBorderVisibility && formatOptions.bins.binsBorderThickness).attr("stroke-opacity", formatOptions.bins.binsBorderVisibility && formatOptions.bins.binsBorderOpacity).attr("x", 0).attr("y", (d) => {
24691
+ const y02 = yScaleLeft(d.x0);
24692
+ const y12 = yScaleLeft(d.x1);
24693
+ return Math.min(y02, y12);
24694
+ }).attr("height", (d) => {
24695
+ const y02 = yScaleLeft(d.x0);
24696
+ const y12 = yScaleLeft(d.x1);
24697
+ const gap = parseFloat(formatOptions.bins.binsGapWidth) || 0;
24698
+ return Math.max(1, Math.abs(y12 - y02) - gap);
24699
+ }).attr("width", (d) => xScale(d.length)).style("fill", (d) => d.color !== "#ffffff" ? d.color : "none").style("opacity", formatOptions.bins.binsFillOpacity).style("shape-rendering", "crispEdges").on("mousemove", (event2, d) => {
24702
24700
  showTooltipOnMouseMove(
24703
24701
  [
24704
24702
  {
24705
- key: formatOptions.xAxisTitle.xAxisTitleText.includes("~$~") ? formatOptions.xAxisTitle.xAxisTitleText.split("~$~")[1] : formatOptions.xAxisTitle.xAxisTitleText,
24703
+ key: formatOptions.yAxisTitle.yAxisTitleText,
24706
24704
  value: `${d["x0"]}-${d["x1"]}`
24707
24705
  },
24708
24706
  {
24709
- key: formatOptions.yAxisTitle.yAxisTitleText,
24707
+ key: formatOptions.xAxisTitle.xAxisTitleText,
24710
24708
  value: getNumberWithFormat(formatOptions.toolTip.toolTipNumberFormat == ",.0%" ? Math.abs(d.length / filteredData[0].data.length) : d.length, formatOptions.toolTip.toolTipDisplayUnits, formatOptions.toolTip.toolTipNumberFormat, formatOptions.toolTip.toolTipDecimalPrecision, false)
24711
24709
  }
24712
24710
  ],
@@ -24756,7 +24754,7 @@
24756
24754
  (d) => filteredDimension.includes(d.dimension)
24757
24755
  )
24758
24756
  );
24759
- getXAxis();
24757
+ getYAxis();
24760
24758
  drawColumnChart();
24761
24759
  })
24762
24760
  );
@@ -24773,35 +24771,20 @@
24773
24771
  (d) => filteredDimension.includes(d.dimension)
24774
24772
  )
24775
24773
  );
24776
- getXAxis();
24774
+ getYAxis();
24777
24775
  drawColumnChart();
24778
24776
  });
24779
24777
  }
24780
24778
  drawColumnChart();
24781
24779
  };
24782
24780
  const drawColumnChart = () => {
24783
- initXaxis$1(
24784
- gTag,
24785
- chartJSON,
24786
- xLabel,
24787
- formatOptions,
24788
- dataTableHeight,
24789
- yScaleLeft,
24790
- xAxis,
24791
- dimensionHeightWidthArray,
24792
- height,
24793
- columnWidth,
24794
- isDateType,
24795
- innerWidth2,
24796
- innerHeight2,
24797
- filteredDimension
24798
- );
24781
+ initYaxis$1(gTag, formatOptions, dataTableHeight, yLabel, yAxisLeft, innerHeight2);
24799
24782
  getChartType();
24800
24783
  };
24801
24784
  return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { width: "100%", height: "100%" }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
24802
24785
  "svg",
24803
24786
  {
24804
- className: "chartSVG",
24787
+ className: "className",
24805
24788
  ref: svgRef,
24806
24789
  id: chartId,
24807
24790
  style: { width: "100%", height: "100%" }
@@ -26592,7 +26575,8 @@
26592
26575
  legendListWidth,
26593
26576
  chartTitleHeight,
26594
26577
  chartId,
26595
- margins
26578
+ margins,
26579
+ staticLegendShape.circle
26596
26580
  );
26597
26581
  initPieChartData();
26598
26582
  drawPieChart();
@@ -26673,7 +26657,9 @@
26673
26657
  },
26674
26658
  { key: "Legend", value: d.currentTarget.__data__.data.legend }
26675
26659
  ],
26676
- chartFormatOptions
26660
+ chartFormatOptions,
26661
+ void 0,
26662
+ d.currentTarget.__data__.data.properties
26677
26663
  );
26678
26664
  }).on("mouseout.text", () => {
26679
26665
  hideTooltipOnMouseOut();
@@ -26951,6 +26937,7 @@
26951
26937
  chartTitleHeight,
26952
26938
  chartId,
26953
26939
  margins,
26940
+ staticLegendShape.hollowCircle,
26954
26941
  false
26955
26942
  );
26956
26943
  initPieChartData();
@@ -26971,7 +26958,7 @@
26971
26958
  };
26972
26959
  const defineChartRadius = () => {
26973
26960
  try {
26974
- radius = Math.min(innerHeight2 * 0.5, innerWidth2 * 0.5);
26961
+ radius = Math.min(innerHeight2 * 0.4, innerWidth2 * 0.4);
26975
26962
  outsideDataLabelFlag ? radius = radius * 0.9 : null;
26976
26963
  innerRadius = Math.min(
26977
26964
  convertStringToNumber(chartFormatOptions.plotArea.innerRadius) / 100 * radius,
@@ -27037,7 +27024,9 @@
27037
27024
  },
27038
27025
  { key: "Legend", value: d.currentTarget.__data__.data.legend }
27039
27026
  ],
27040
- chartFormatOptions
27027
+ chartFormatOptions,
27028
+ void 0,
27029
+ d.currentTarget.__data__.data.properties
27041
27030
  );
27042
27031
  }).on("mouseout.text", () => hideTooltipOnMouseOut()).on("mouseout.arc", function() {
27043
27032
  if (enableTransition) ;
@@ -27114,7 +27103,7 @@
27114
27103
  pieChartData.filter(
27115
27104
  (d) => d.data.properties.dataLabelPosition == "1"
27116
27105
  )
27117
- ).enter().append("text").attr("hoverId", (d) => d.data.legend.replace(/ /g, "-")).attr("font-size", (d) => d.data.properties?.valueFontSize ?? 11).attr("fill", (d) => d.data.properties?.valueFontColor ?? "#000000").attr(
27106
+ ).enter().append("text").attr("hoverId", (d) => d.data.legend.replace(/ /g, "-")).attr("font-size", (d) => d.data.properties?.valueFontSize ?? 11).attr("fill", (d) => d.data.properties?.lableFontColor ?? "#000000").attr(
27118
27107
  "font-style",
27119
27108
  (d) => d.data.properties?.valueFontStyle?.includes(fontStyleOptions.italic) ? fontStyleOptions.italic : ""
27120
27109
  ).attr(
@@ -27195,69 +27184,7 @@
27195
27184
  const textWidth = 80;
27196
27185
  const xOffset = midangle < Math.PI ? 0 : -textWidth;
27197
27186
  return radius * 1.1 * (midangle < Math.PI ? 1 : -1) + xOffset;
27198
- }).attr("y", (d) => outerRadius.centroid(d)[1] - 30).append("xhtml:div").attr("hoverId", (d) => d.data.legend.replace(/ /g, "-")).style("display", "flex").style("flex-direction", "column").style("justify-content", "center").style("align-items", "center").style("height", "60px").html((d) => {
27199
- try {
27200
- let value2 = d.data.data[0].value.toString();
27201
- if (d.data.data[0].value !== void 0) {
27202
- value2 = chartFormatOptions.plotArea.dataLabelNumberFormat === ",.0%" ? (Math.abs(d.data.data[0].value / pieTotalValue) * 100).toFixed(
27203
- convertStringToNumber(
27204
- chartFormatOptions.plotArea.dataLabelDecimalPrecision
27205
- )
27206
- ) + "%" : getNumberWithFormatFunction(
27207
- chartFormatOptions.plotArea.plotAreaDisplayUnits,
27208
- chartFormatOptions.plotArea.dataLabelNumberFormat,
27209
- chartFormatOptions.plotArea.dataLabelDecimalPrecision
27210
- )(d.data.data[0].value);
27211
- }
27212
- let htmlString = "";
27213
- if (chartFormatOptions.plotArea.dataLabelName) {
27214
- htmlString += `<span style="
27215
- font-size: ${d.data.properties.labelFontSize}px;
27216
- color: ${d.data.properties.labelFontColor};
27217
- font-style: ${d.data.properties.labelFontStyle.includes(fontStyleOptions.italic) ? fontStyleOptions.italic : ""};
27218
- text-decoration: ${d.data.properties.labelFontStyle.includes(
27219
- fontStyleOptions.underline
27220
- ) ? fontStyleOptions.underline : ""};
27221
- font-weight: ${d.data.properties.labelFontStyle.includes(fontStyleOptions.bold) ? fontStyleOptions.bold : ""};
27222
- font-family: ${d.data.properties.labelFont};
27223
- display: block; white-space: nowrap; width:80px; overflow:hidden; text-overflow:ellipsis; text-align: center;">
27224
- ${d.data.legend}
27225
- </span>`;
27226
- }
27227
- if (chartFormatOptions.plotArea.dataLabelValue && d.data.data[0].value !== void 0) {
27228
- htmlString += `<span style="
27229
- font-size: ${d.data.properties.valueFontSize}px;
27230
- color: ${d.data.properties.valueFontColor};
27231
- font-style: ${d.data.properties.valueFontStyle.includes(fontStyleOptions.italic) ? fontStyleOptions.italic : ""};
27232
- text-decoration: ${d.data.properties.valueFontStyle.includes(
27233
- fontStyleOptions.underline
27234
- ) ? fontStyleOptions.underline : ""};
27235
- font-weight: ${d.data.properties.valueFontStyle.includes(fontStyleOptions.bold) ? fontStyleOptions.bold : "300"};
27236
- font-family: ${d.data.properties.valueFont};
27237
- display: block;">
27238
- ${value2}
27239
- </span>`;
27240
- }
27241
- if (chartFormatOptions.plotArea.plotAreaAbsoluteValue && d.data[0].value !== void 0) {
27242
- htmlString += `<span style="
27243
- font-size: ${d.data.properties.valueFontSize}px;
27244
- color: ${d.data.properties.valueFontColor};
27245
- font-style: ${d.data.properties.valueFontStyle.includes(fontStyleOptions.italic) ? fontStyleOptions.italic : ""};
27246
- text-decoration: ${d.data.properties.valueFontStyle.includes(
27247
- fontStyleOptions.underline
27248
- ) ? fontStyleOptions.underline : ""};
27249
- font-weight: ${d.data.properties.valueFontStyle.includes(fontStyleOptions.bold) ? fontStyleOptions.bold : "300"};
27250
- font-family: ${d.data.properties.valueFont};
27251
- display: block;">
27252
- ${format(".2s")(d.data[0].value)}
27253
- </span>`;
27254
- }
27255
- return htmlString;
27256
- } catch (error) {
27257
- logError$2(fileName$7, "drawDonutDataLabels", error);
27258
- return "";
27259
- }
27260
- });
27187
+ }).attr("y", (d) => outerRadius.centroid(d)[1] - 30).append("xhtml:div").attr("hoverId", (d) => d.data.legend.replace(/ /g, "-")).style("display", "flex").style("flex-direction", "column").style("justify-content", "center").style("align-items", "center").style("height", "60px");
27261
27188
  }
27262
27189
  } catch (error) {
27263
27190
  logError$2(fileName$7, "drawDonutDataLabels", error);
@@ -27455,7 +27382,9 @@
27455
27382
  )(data2.data.data[1].value)
27456
27383
  } : ""
27457
27384
  ],
27458
- chartFormatOptions
27385
+ chartFormatOptions,
27386
+ void 0,
27387
+ d.currentTarget.__data__.data.properties
27459
27388
  );
27460
27389
  }).on("mouseout", () => hideTooltipOnMouseOut());
27461
27390
  leaf.append("clipPath").attr("id", (d, i) => `clip-${i}-${chartId}`).append("rect").attr("width", (d) => d.x1 - d.x0).attr("height", (d) => d.y1 - d.y0);
@@ -27638,7 +27567,9 @@
27638
27567
  },
27639
27568
  { key: "Legend", value: d.currentTarget.__data__.data.legend }
27640
27569
  ],
27641
- chartFormatOptions
27570
+ chartFormatOptions,
27571
+ void 0,
27572
+ d.currentTarget.__data__.data.properties
27642
27573
  );
27643
27574
  }).on("mouseout.text", () => {
27644
27575
  hideTooltipOnMouseOut();
@@ -27704,7 +27635,9 @@
27704
27635
  },
27705
27636
  { key: "Legend", value: d.currentTarget.__data__.data.legend }
27706
27637
  ],
27707
- chartFormatOptions
27638
+ chartFormatOptions,
27639
+ void 0,
27640
+ d.currentTarget.__data__.data.properties
27708
27641
  );
27709
27642
  }).on("mouseout.text", () => {
27710
27643
  hideTooltipOnMouseOut();
@@ -27905,7 +27838,8 @@
27905
27838
  legendListWidth,
27906
27839
  chartTitleHeight,
27907
27840
  chartId,
27908
- margins
27841
+ margins,
27842
+ staticLegendShape.circle
27909
27843
  );
27910
27844
  } catch (error) {
27911
27845
  logError$2(fileName$5, "initLegendList", error);
@@ -27978,6 +27912,7 @@
27978
27912
  chartTitleHeight,
27979
27913
  chartId,
27980
27914
  margins,
27915
+ staticLegendShape.rectangle,
27981
27916
  false
27982
27917
  );
27983
27918
  initPyramidData();
@@ -28040,13 +27975,13 @@
28040
27975
  ${centerX + bottomWidth / 2},${yBottom}
28041
27976
  ${centerX - bottomWidth / 2},${yBottom}
28042
27977
  `
28043
- ).attr("fill", d.properties.color || "#4cb2ff").on("mousemove", function() {
27978
+ ).attr("fill", d.properties.color || "#4cb2ff").on("mousemove", function(d2) {
28044
27979
  try {
28045
27980
  showTooltipOnMouseMove(
28046
27981
  [
28047
27982
  {
28048
- key: d.legend,
28049
- value: chartFormatOptions.toolTip.toolTipNumberFormat == ",.0%" ? d.data[0].value ? (Math.abs(d.data[0].value / pyramidTotalValue) * 100).toFixed(
27983
+ key: d2.legend,
27984
+ value: chartFormatOptions.toolTip.toolTipNumberFormat == ",.0%" ? d2.data[0].value ? (Math.abs(d2.data[0].value / pyramidTotalValue) * 100).toFixed(
28050
27985
  convertStringToNumber(
28051
27986
  chartFormatOptions.toolTip.toolTipDecimalPrecision
28052
27987
  )
@@ -28054,10 +27989,12 @@
28054
27989
  "None",
28055
27990
  chartFormatOptions.toolTip.toolTipNumberFormat,
28056
27991
  chartFormatOptions.toolTip.toolTipDecimalPrecision
28057
- )(d.data[0].value)
27992
+ )(d2.data[0].value)
28058
27993
  }
28059
27994
  ],
28060
- chartFormatOptions
27995
+ chartFormatOptions,
27996
+ void 0,
27997
+ d2.currentTarget.__data__.data.properties
28061
27998
  );
28062
27999
  select$2(this).style("opacity", 0.8).style("stroke", chartFormatOptions.chartArea.chartAreaColor).style("stroke-width", "3px");
28063
28000
  } catch (error) {
@@ -28331,7 +28268,8 @@
28331
28268
  legendListWidth,
28332
28269
  chartTitleHeight,
28333
28270
  chartId,
28334
- margins
28271
+ margins,
28272
+ staticLegendShape.hollowCircle
28335
28273
  );
28336
28274
  initProgressChartData();
28337
28275
  drawProgressChart();
@@ -28389,7 +28327,9 @@
28389
28327
  )(maxValue)
28390
28328
  }
28391
28329
  ],
28392
- chartFormatOptions
28330
+ chartFormatOptions,
28331
+ void 0,
28332
+ d.currentTarget.__data__.data.properties
28393
28333
  );
28394
28334
  } catch (error) {
28395
28335
  logError$2(
@@ -28842,7 +28782,9 @@
28842
28782
  )(data[index2].data[0].value)
28843
28783
  }
28844
28784
  ],
28845
- chartFormatOptions
28785
+ chartFormatOptions,
28786
+ void 0,
28787
+ d.currentTarget.__data__.data.properties
28846
28788
  );
28847
28789
  }).on("mouseout", () => {
28848
28790
  hideTooltipOnMouseOut();
@@ -29049,7 +28991,8 @@
29049
28991
  legendListWidth,
29050
28992
  chartTitleHeight,
29051
28993
  chartId,
29052
- margins
28994
+ margins,
28995
+ staticLegendShape.hollowCircle
29053
28996
  );
29054
28997
  initRadialBarChart();
29055
28998
  };
@@ -29207,7 +29150,9 @@
29207
29150
  },
29208
29151
  { key: "Legend", value: d.properties.alias }
29209
29152
  ],
29210
- chartFormatOptions
29153
+ chartFormatOptions,
29154
+ void 0,
29155
+ d.properties
29211
29156
  );
29212
29157
  }).on("mouseout", () => {
29213
29158
  hideTooltipOnMouseOut();
@@ -29768,7 +29713,9 @@
29768
29713
  value: totalMeasureValue
29769
29714
  }
29770
29715
  ],
29771
- chartFormatOptions
29716
+ chartFormatOptions,
29717
+ void 0,
29718
+ d.properties
29772
29719
  );
29773
29720
  } catch (error) {
29774
29721
  logError$2(fileName$2, "draw-mousemove", error);
@@ -33237,7 +33184,9 @@
33237
33184
  )(d.size)
33238
33185
  }
33239
33186
  ],
33240
- chartFormatOptions
33187
+ chartFormatOptions,
33188
+ void 0,
33189
+ d.properties
33241
33190
  );
33242
33191
  let selection2 = select$2(this).transition("tooltip").duration(10);
33243
33192
  selection2.selectAll("path").style("stroke-dasharray", "5,5").style("stroke-opacity", 1).style("stroke", "black");
@@ -33978,7 +33927,7 @@
33978
33927
  showTooltipOnMouseMove(
33979
33928
  [
33980
33929
  {
33981
- key: d.name,
33930
+ key: d.name.split("~$~")[1],
33982
33931
  value: chartFormatOptions.toolTip.toolTipNumberFormat == ",.0%" ? layerWisePercentage.get(d.name) + "%" : getNumberWithFormatFunction(
33983
33932
  "None",
33984
33933
  chartFormatOptions.toolTip.toolTipNumberFormat,
@@ -33986,7 +33935,9 @@
33986
33935
  )(d.value)
33987
33936
  }
33988
33937
  ],
33989
- chartFormatOptions
33938
+ chartFormatOptions,
33939
+ void 0,
33940
+ { markerShape: "square", markerColor: d.color }
33990
33941
  );
33991
33942
  }
33992
33943
  chartAreaTagG.selectAll(".sankey-nodes").style("fill-opacity", 0.1).style("stroke", "none");
@@ -34055,7 +34006,7 @@
34055
34006
  showTooltipOnMouseMove(
34056
34007
  [
34057
34008
  {
34058
- key: d.source.name + "→" + d.target.name,
34009
+ key: d.source.name.split("~$~")[1] + "→" + d.target.name.split("~$~")[1],
34059
34010
  value: getNumberWithFormatFunction(
34060
34011
  "None",
34061
34012
  chartFormatOptions.toolTip.toolTipNumberFormat,
@@ -34063,7 +34014,9 @@
34063
34014
  )(d.value)
34064
34015
  }
34065
34016
  ],
34066
- chartFormatOptions
34017
+ chartFormatOptions,
34018
+ void 0,
34019
+ { markerColor: d.source.color, markerShape: "circle" }
34067
34020
  );
34068
34021
  }
34069
34022
  } catch (error) {
@@ -49521,7 +49474,9 @@
49521
49474
  },
49522
49475
  ...keyValueObject
49523
49476
  ],
49524
- chartFormatOptions
49477
+ chartFormatOptions,
49478
+ void 0,
49479
+ d.currentTarget.__data__.data.properties
49525
49480
  );
49526
49481
  }
49527
49482
  }).on("mouseout", (event2, d) => {
@@ -49631,7 +49586,9 @@
49631
49586
  )(d.properties.data?.data[1]?.value)
49632
49587
  }
49633
49588
  ],
49634
- chartFormatOptions
49589
+ chartFormatOptions,
49590
+ void 0,
49591
+ d.currentTarget.__data__.data.properties
49635
49592
  );
49636
49593
  select$2(this).style(
49637
49594
  "r",
@@ -52550,7 +52507,8 @@
52550
52507
  maxLegendDimensions[0],
52551
52508
  chartTitleHeight,
52552
52509
  chartId,
52553
- margins
52510
+ margins,
52511
+ staticLegendShape.circle
52554
52512
  );
52555
52513
  } catch (e) {
52556
52514
  logError$2("BubbleChart", "initLegendList", e);
@@ -53605,25 +53563,30 @@
53605
53563
  barGroups = barGroupsEnter.merge(barGroups);
53606
53564
  let rects = barGroups.selectAll("rect").data((d) => d, (d) => d.key || d.Key);
53607
53565
  const rectsEnter = rects.enter().append("rect").attr("class", "rect").attr("class", (d) => d.key ? d.key.replace(/ /g, "-") : d.Key.replace(/ /g, "-")).attr("x", (d) => xScale(d.data.dimension || d.data.legend)).attr("y", (d) => d[1] ? yScaleLeft(d[1]) : 0).attr("height", (d) => d[1] ? yScaleLeft(d[0]) - yScaleLeft(d[1]) : 0).attr("width", xScale.bandwidth()).attr("visibility", (d) => k2 === 0 && d.data.dimension && stackTotalData ? "hidden" : "visible").style("shape-rendering", "crispEdges").on("mousemove", (event2, d) => {
53608
- showTooltipOnMouseMove([
53609
- {
53610
- key: d.key === "dimensionTotal" ? "Dimension" : formatOptions.xAxisTitle.xAxisTitleText,
53611
- value: chartJSON.formattedDimensionListMap.get(d.data.dimension)
53612
- },
53613
- {
53614
- key: formatOptions.yAxisTitle.yAxisTitleText,
53615
- value: (d.key === "up" ? "+" : d.key === "down" ? "-" : "") + getNumberWithFormat(
53616
- d.key === "dimensionTotal" ? d.data.dimensionTotal : d[1] - d[0],
53617
- formatOptions.toolTip.toolTipDisplayUnits,
53618
- formatOptions.toolTip.toolTipNumberFormat,
53619
- formatOptions.toolTip.toolTipDecimalPrecision
53620
- )
53621
- },
53622
- {
53623
- key: "Legend",
53624
- value: d.Key ? d.Key.includes("~$~") ? d.Key.split("~$~")[1] : d.Key : d.data.legend ? d.data.legend.includes("~$~") ? d.data.legend.split("~$~")[1] : d.data.legend : "Total"
53625
- }
53626
- ], formatOptions);
53566
+ const markerInfo = {
53567
+ markerShape: "square",
53568
+ markerColor: d.key === "dimensionTotal" ? formatOptions.plotArea.totalColor : d.key === "down" ? formatOptions.plotArea.negativeColor : formatOptions.plotArea.positiveColor
53569
+ };
53570
+ showTooltipOnMouseMove(
53571
+ [
53572
+ {
53573
+ key: formatOptions.yAxisTitle.yAxisTitleText,
53574
+ value: (d.key === "up" ? "+" : d.key === "down" ? "-" : "") + getNumberWithFormat(
53575
+ d.key === "dimensionTotal" ? d.data.dimensionTotal : d[1] - d[0],
53576
+ formatOptions.toolTip.toolTipDisplayUnits,
53577
+ formatOptions.toolTip.toolTipNumberFormat,
53578
+ formatOptions.toolTip.toolTipDecimalPrecision
53579
+ )
53580
+ },
53581
+ {
53582
+ key: "Legend",
53583
+ value: d.Key ? d.Key.includes("~$~") ? d.Key.split("~$~")[1] : d.Key : d.data.legend ? d.data.legend.includes("~$~") ? d.data.legend.split("~$~")[1] : d.data.legend : "Total"
53584
+ }
53585
+ ],
53586
+ formatOptions,
53587
+ void 0,
53588
+ markerInfo
53589
+ );
53627
53590
  }).on("mouseout", () => {
53628
53591
  hideTooltipOnMouseOut();
53629
53592
  });
@@ -54188,14 +54151,19 @@
54188
54151
  ...child,
54189
54152
  parentProperties: d.properties
54190
54153
  }))).enter().append("rect").attr("class", "rect").attr("y", (d) => d.dimension ? yScaleLeft(d.dimension) : yScaleLeft("defaultEntry")).attr("x", (d) => xScale(Math.min(0, d.value))).attr("stroke-dasharray", (d) => d.stackBorderStyle == 2 ? "5,3" : "0").attr("stroke-width", (d) => d.stackBorderWidth + "px").attr("stroke", (d) => d.stackBorderStyle == 0 ? "none" : formatOptions.column.stackBorderVisibility ? d.stackBorderColor : "none").style("shape-rendering", "crispEdges").attr("width", (d) => d.value ? Math.abs(xScale(d.value) - xScale(0)) : 0).attr("height", yScaleLeft.bandwidth()).style("fill", (d) => d.parentProperties.color).attr("opacity", 1).on("mousemove", (event2, d) => {
54191
- showTooltipOnMouseMove([
54192
- { key: "Measure", value: d.legend },
54193
- { key: "Legend", value: d.dimension },
54194
- {
54195
- key: "Value",
54196
- value: d.value < 0 ? getNumberWithFormat(-d.value, formatOptions.toolTip.toolTipDisplayUnits, formatOptions.toolTip.toolTipNumberFormat, formatOptions.toolTip.toolTipDecimalPrecision, true) : getNumberWithFormat(d.value, formatOptions.toolTip.toolTipDisplayUnits, formatOptions.toolTip.toolTipNumberFormat, formatOptions.toolTip.toolTipDecimalPrecision, true)
54197
- }
54198
- ], formatOptions);
54154
+ showTooltipOnMouseMove(
54155
+ [
54156
+ { key: "Measure", value: d.legend },
54157
+ { key: "Legend", value: d.dimension },
54158
+ {
54159
+ key: "Value",
54160
+ value: d.value < 0 ? getNumberWithFormat(-d.value, formatOptions.toolTip.toolTipDisplayUnits, formatOptions.toolTip.toolTipNumberFormat, formatOptions.toolTip.toolTipDecimalPrecision, true) : getNumberWithFormat(d.value, formatOptions.toolTip.toolTipDisplayUnits, formatOptions.toolTip.toolTipNumberFormat, formatOptions.toolTip.toolTipDecimalPrecision, true)
54161
+ }
54162
+ ],
54163
+ formatOptions,
54164
+ void 0,
54165
+ d.currentTarget.__data__.data.properties
54166
+ );
54199
54167
  }).on("mouseout", () => {
54200
54168
  hideTooltipOnMouseOut();
54201
54169
  });
@@ -54319,11 +54287,11 @@
54319
54287
  exports2.AreaChart = AreaChart;
54320
54288
  exports2.BubbleChart = BubbleChart;
54321
54289
  exports2.ColumnChart = ColumnChart;
54322
- exports2.ColumnHistogramChart = ColumnHistogramChart$1;
54290
+ exports2.ColumnHistogramChart = ColumnHistogramChart;
54323
54291
  exports2.CustomColumnChart = CustomColumnChart;
54324
54292
  exports2.DonutChart = DonutChart;
54325
54293
  exports2.HorizontalBarChart = HorizontalBarChart;
54326
- exports2.HorizontalHistogramChart = ColumnHistogramChart;
54294
+ exports2.HorizontalHistogramChart = HorizontalHistogramChart;
54327
54295
  exports2.LayeredColumnChart = LayeredColumnChart;
54328
54296
  exports2.LayeredHorizontalBarChart = LayeredHorizontalBarChart;
54329
54297
  exports2.LineChart = LineChart;