Browse Source

Merge branch 'fix-custom-ticks-on-right-y-axis' into 'main'

y1 axis ticks count

See merge request chartwerk/core!26
pull/2/head
Alexander Velikiy 2 years ago
parent
commit
7a240f5ef1
  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