JSFiddle - React, Tailwind, and code Playground
HTML
<script src="http://code.highcharts.com/highcharts.js"></script>
<script src="http://code.highcharts.com/modules/exporting.js"></script>
<div id="container" style="margin-top: 1em; width: 600px; height; 400px;"></div>
JavaScript
$(function () {
$('#container').highcharts({
title: {
text: 'Exporting text with Right to left'
},
credits: {
enabled: false
},
xAxis: {
categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
},
series: [{
data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4]
}],
exporting: {
enabled: true
}
}, function (chart) { // on complete
var rightTop = [590,300];
var element = chart.renderer.text('This is a looooong text', 0, -100).add();
var boundingBox = element.getBBox();
chart.renderer.text('This is a looooong text', rightTop[0] - boundingBox.width, rightTop[1]).add();
});
});