I am using gevgeny/angular2-highcharts to use highchart in angular project. I am trying to use Highcharts.SVGRenderer#text.
It work in highstock normally
If same code I use in angular2-highcharts it is not working
Check Plunker
Snippet
chart:{
events:{
load:function(){
var charts=this;
charts.renderer.text('Series 1', 10, 11)
.attr({
rotation: -25
})
.css({
color: '#4572A7',
fontSize: '16px'
})
.add();
}
}
},
How I can use renderer.text
in angular2 highcharts?
Finally I got idea from chart-events and modified my code.
https://plnkr.co/edit/m9Jkg4RrGYvYGrPM64vl?p=preview