@bizy/core 21.5.8 → 21.5.10

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.
@@ -10369,6 +10369,7 @@ class BizyBarLineChartComponent {
10369
10369
  this.#gridLeft = 0;
10370
10370
  this.#chartStacks = [];
10371
10371
  this.#chartNames = [];
10372
+ this.#chartGroups.clear();
10372
10373
  this.#createChartContainer();
10373
10374
  if (!this.#chartContainer) {
10374
10375
  return;
@@ -10396,7 +10397,7 @@ class BizyBarLineChartComponent {
10396
10397
  const color = _line.getYAxisColor() ? _line.getYAxisColor() : yAxisType === BIZY_BAR_LINE_CHART_AXIS_TYPE.DEPENDENT && _line.getColor() ? _line.getColor() : defaultYAxisColor;
10397
10398
  if (lineYAxis.group && yAxisType === BIZY_BAR_LINE_CHART_AXIS_TYPE.DEPENDENT) {
10398
10399
  const _axisIndex = this.#chartGroups.get(lineYAxis.group);
10399
- if (_axisIndex) {
10400
+ if (typeof _axisIndex !== 'undefined') {
10400
10401
  axisIndex = _axisIndex;
10401
10402
  }
10402
10403
  else {
@@ -10452,7 +10453,7 @@ class BizyBarLineChartComponent {
10452
10453
  const color = _line.getXAxisColor() ? _line.getXAxisColor() : xAxisType === BIZY_BAR_LINE_CHART_AXIS_TYPE.DEPENDENT && _line.getColor() ? _line.getColor() : defaultXAxisColor;
10453
10454
  if (lineXAxis.group && xAxisType === BIZY_BAR_LINE_CHART_AXIS_TYPE.DEPENDENT) {
10454
10455
  const _axisIndex = this.#chartGroups.get(lineXAxis.group);
10455
- if (_axisIndex) {
10456
+ if (typeof _axisIndex !== 'undefined') {
10456
10457
  axisIndex = _axisIndex;
10457
10458
  }
10458
10459
  else {
@@ -10543,7 +10544,7 @@ class BizyBarLineChartComponent {
10543
10544
  const color = _bar.getYAxisColor() ? _bar.getYAxisColor() : yAxisType === BIZY_BAR_LINE_CHART_AXIS_TYPE.DEPENDENT && _bar.getColor() ? _bar.getColor() : defaultYAxisColor;
10544
10545
  if (barYAxis.group && yAxisType === BIZY_BAR_LINE_CHART_AXIS_TYPE.DEPENDENT) {
10545
10546
  const _axisIndex = this.#chartGroups.get(barYAxis.group);
10546
- if (_axisIndex) {
10547
+ if (typeof _axisIndex !== 'undefined') {
10547
10548
  axisIndex = _axisIndex;
10548
10549
  }
10549
10550
  else {
@@ -10600,7 +10601,7 @@ class BizyBarLineChartComponent {
10600
10601
  const color = _bar.getXAxisColor() ? _bar.getXAxisColor() : xAxisType === BIZY_BAR_LINE_CHART_AXIS_TYPE.DEPENDENT && _bar.getColor() ? _bar.getColor() : defaultXAxisColor;
10601
10602
  if (barXAxis.group && xAxisType === BIZY_BAR_LINE_CHART_AXIS_TYPE.DEPENDENT) {
10602
10603
  const _axisIndex = this.#chartGroups.get(barXAxis.group);
10603
- if (_axisIndex) {
10604
+ if (typeof _axisIndex !== 'undefined') {
10604
10605
  axisIndex = _axisIndex;
10605
10606
  }
10606
10607
  else {
@@ -10831,7 +10832,6 @@ class BizyBarLineChartComponent {
10831
10832
  const rootValue = getComputedStyle(document.documentElement).getPropertyValue(cssVariable).trim();
10832
10833
  return rootValue || null;
10833
10834
  };
10834
- #getRandomFourDigitsNumber = () => Math.floor(1000 + Math.random() * 9000);
10835
10835
  ngOnDestroy() {
10836
10836
  this.#resizeSubscription.unsubscribe();
10837
10837
  this.#barChartsSubscription.unsubscribe();