I was looking at this example to apply font awesome to custom buttons in highcharts. http://jsfiddle.net/zfngxoow/6/
(function (H) {
H.wrap(H.Renderer.prototype, 'label', function (proceed, str, x, y, shape, anchorX, anchorY, useHTML) {
if(/class="fa/.test(str)) useHTML = true;
// Run original proceed method
return proceed.apply(this, [].slice.call(arguments, 1));
});
}(Highcharts));
This example works great, but when trying to apply the same to my Angular 2 highcharts, font awesome does not work.
plnkr: http://plnkr.co/edit/G26wiubT2M5ydrmL9GJZ?p=preview
Same applied on plnkr but it does not work:
(function (H) {
H.wrap(H.Renderer.prototype, 'label', function (proceed, str, x, y, shape, anchorX, anchorY, useHTML) {
if(/class="fa/.test(str)) useHTML = true;
// Run original proceed method
return proceed.apply(this, [].slice.call(arguments, 1));
});
}(Highcharts));