Code: Select all
chart = Highcharts.StockChart('chartcontainer', {
title: {
text: 'Overview',
margin: 35
},
series: [],
}, function (chart) {
chart.customText = chart.renderer.text( 'Info', 40, 80).css({color: chart.title.styles.color}).add();
});
However I do have a problem to position it correctly. On different devices the chart width may respond differently and apparently I cannot read out the width of the chart, only set it (in pixels).
How do I position my text just left of the hamburger menu and have its position remain proportional during resizing?