Hi,
I am trying to do display series name at the end of line as displayed in below images.
I implemented this solution:
events: {
load() {
const chart = this;
const { series } = chart;
series.forEach((s) => {
const len = s.data.length;
const point = s.data[len - 1];
if (point.plotX && point.plotY) {
chart.renderer
.text(point.series.name, point.plotX + chart.plotLeft + 10, point.plotY + chart.plotTop + 10)
.attr({
fill: 'rgba(0,0,0,1)',
zIndex: 5
})
.add();
}
});
}
But usually in my chart I have a situation where 10 points are in the same position and then the series names overlap like in the picture below
Thanks!