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 // TODO: number of ticks shouldn't be hardcoded
.call( .call(
d3.axisRight(this.state.y1Scale) d3.axisRight(this.state.y1Scale)
.ticks(DEFAULT_TICK_COUNT) .ticks(this.options.axis.y1.ticksCount)
.tickSize(DEFAULT_TICK_SIZE) .tickSize(DEFAULT_TICK_SIZE)
.tickFormat(this.getAxisTicksFormatter(this.options.axis.y1)) .tickFormat(this.getAxisTicksFormatter(this.options.axis.y1))
); );

Loading…
Cancel
Save