Browse Source

fix y1 ticks count

pull/2/head
vargburz 1 year ago
parent
commit
47142a46c2
  1. 2
      src/index.ts

2
src/index.ts

@ -278,7 +278,7 @@ abstract class ChartwerkPod<T extends Serie, O extends Options> {
// TODO: number of ticks shouldn't be hardcoded
.call(
d3.axisRight(this.state.y1Scale)
.ticks(DEFAULT_TICK_COUNT)
.ticks(this.options.axis.y1.ticksCount)
.tickSize(DEFAULT_TICK_SIZE)
.tickFormat(this.getAxisTicksFormatter(this.options.axis.y1))
);

Loading…
Cancel
Save