Reputation: 4326
Let's take a basic demo line chart: jsfiddle
$(function () {
$('#container').highcharts({ //all the code there
I want to force showing a tick on yValue=12. How to achieve this?
I know about the plotLines and tickPositioner. Is there another way?
Upvotes: 0
Views: 696
Reputation: 17791
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.
Upvotes: 1
Reputation: 45079
Third way is to use tickPositions. For example create second yAxis, which is linked to first one, and have tickPositions: [12]
set.
Upvotes: 1