axidio-styleguide-library1-v2 0.6.39 → 0.6.41
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.
- package/esm2022/lib/group-chart/group-chart.component.mjs +7 -2
- package/esm2022/lib/horizontal-bars-with-scroll-zoom/horizontal-bars-with-scroll-zoom.component.mjs +7 -2
- package/fesm2022/axidio-styleguide-library1-v2.mjs +12 -2
- package/fesm2022/axidio-styleguide-library1-v2.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -3838,7 +3838,12 @@ class GroupChartComponent extends ComponentUniqueId {
|
|
|
3838
3838
|
.axisLeft(y)
|
|
3839
3839
|
.tickSize(0)
|
|
3840
3840
|
.ticks(this.chartConfiguration.numberOfYTicks)
|
|
3841
|
-
.tickFormat(
|
|
3841
|
+
.tickFormat((d) => {
|
|
3842
|
+
const formatted = this.chartConfiguration.yAxisLabelFomatter
|
|
3843
|
+
? this.chartConfiguration.yAxisLabelFomatter(d)
|
|
3844
|
+
: d;
|
|
3845
|
+
return formatted >= 1000 ? formatted / 1000 + 'k' : formatted;
|
|
3846
|
+
});
|
|
3842
3847
|
const yAxisGroup = svgYAxisLeft
|
|
3843
3848
|
.append('g')
|
|
3844
3849
|
.attr('class', 'lib-yaxis-labels-texts-drilldown yaxis-dashed')
|
|
@@ -6898,7 +6903,12 @@ class HorizontalBarsWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
6898
6903
|
.axisLeft(scales.yScale)
|
|
6899
6904
|
.ticks(this.chartConfiguration.numberOfYTicks)
|
|
6900
6905
|
.tickSize(0)
|
|
6901
|
-
.tickFormat(
|
|
6906
|
+
.tickFormat((d) => {
|
|
6907
|
+
const formatted = this.chartConfiguration.yAxisLabelFomatter
|
|
6908
|
+
? this.chartConfiguration.yAxisLabelFomatter(d)
|
|
6909
|
+
: d;
|
|
6910
|
+
return formatted >= 1000 ? formatted / 1000 + 'k' : formatted;
|
|
6911
|
+
});
|
|
6902
6912
|
let yLineAxis = null;
|
|
6903
6913
|
if (scales.lineYscale) {
|
|
6904
6914
|
yLineAxis = d3
|