score:1

Accepted answer

tickPositions (different than tickPoistioner) is my preferred method.

If that does not fit your needs, you will need to explain in more detail what you want, and why these solutions don't work for you.

EDIT:

Another option, no less dirty, would be letting the main y axis set ticks as normal, and add a second y axis where you use the tickPositions setting to set the single 'new' tick that you need.

example:

Not any less dirty really, but keeps the main process clean.

score:1

Third way is to use tickPositions. For example create second yAxis, which is linked to first one, and have tickPositions: [12] set.


Related Articles