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 1 year 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
.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