How I can set the position of legend exactly as the tooltip position? The tooltip position in original demo https://www.highcharts.com/demo/stock/stock-tools-gui is placed on the left top corner of yaxis each series. And this position is dynamic after adding some indicator or change height of yaxis.
The possible way is to put series name directly to tooltip formatter function, but in this case I have an issue to set the series name still visible...because the tooltip is show base of visibility of series points.
Are the standard options available from the API do not meet your requirements? You can set this legend as you like from there: https://api.highcharts.com/highcharts/legend
legend: {
layout: 'vertical',
align: 'right',
verticalAlign: 'middle',
itemMarginTop: 10,
itemMarginBottom: 10
},
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.