I have a graph with a labelled Y-Axis with points 1 through 100. In addition to the regularly spaced labels (0, 10, 20, etc), I want to add a label for an arbitrary point, say 47. Is this possible with highcharts?
标签:
highcharts
相关问题
- Issues using highcharts node export server from Cl
- Rails collecting and rendering JSON data in to a H
- Create highchart density with more than 2 groups
- Highcharts / Highstock step line without vertical
- Highcharts Synchronized charts display tooltip
相关文章
- Change color of bars depending on value in Highcha
- Changing Highcharts data series type dynamically
- Set highcharts y-axis min value to 0, unless there
- high chart sample
- Highchart's gauge with gradient plotband
- HighCharts pie chart X-axies values are not displa
- Why Highcharts gets different size on Safari?
- Ajax JSON in to Highcharts Pie Chart
You can add a specific line to the yAxis with the plotLines option.
http://jsfiddle.net/nicholasduffy/wa6ukyyp/1/
EDIT:
This seems a bit of a hack, but you could fake the label.
http://jsfiddle.net/nicholasduffy/wa6ukyyp/2/
Based on your comment, you can add a custom tick with tickPositioner function, with a code like this
JSFiddle demo
I think the solution I found that comes closest is to create a line of zero thickness and label the line:
The label_name goes pretty close to the Y-Axis, and it gets the point across without putting a tooltip onto the graph