@tetacom/svg-charts 1.2.9 → 1.2.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.
|
@@ -459,7 +459,7 @@ class AxisSizeBuilder {
|
|
|
459
459
|
build(settings) {
|
|
460
460
|
let finalPadding = this.basePadding;
|
|
461
461
|
if (settings.orientation === AxisOrientation.y) {
|
|
462
|
-
const formatter = settings.defaultFormatter();
|
|
462
|
+
const formatter = settings.options.tickFormat || settings.defaultFormatter();
|
|
463
463
|
finalPadding += settings.options.title ? this.titlePadding : 0;
|
|
464
464
|
const scale = settings.defaultScale();
|
|
465
465
|
const ticks = scale().domain(settings.extremes).ticks(20);
|