Reputation: 1405
I want to add a increase arrow on top of the first column of the highchart to the last column? How to I dynamically set the height of the arrow according to the height of first column?
Upvotes: 0
Views: 698
Reputation: 37588
You need to use Renderer.path which allows to add custom shape.
r.path(['M', startX, startY, 'L', startX, startY - 20, endX - 20, startY - 20, endX - 20, startY - 40, endX, startY - 10, endX - 20, startY + 15,endX - 20, startY, 'Z'])
.attr({
zIndex:9999,
fill:'red',
stroke: 'green',
'stroke-width': 2
})
.add()
Upvotes: 1