tarou tanaka
Posts: 1
Joined: Sat Apr 10, 2021 12:36 am

How do I change 'y' attribute in button's text?

I guess that "buttonTheme" is for button attributes,

https://jsfiddle.net/gh/get/library/pur ... r/styling/


but i want to change bellow (y="14" to y="15"), How do I do this?

<text x="6.0833330154418945" data-z-index="1" y="14" style="color:white;font-weight:bold;fill:white;">3m</text>

<text x="6.0833330154418945" data-z-index="1" y="15" style="color:white;font-weight:bold;fill:white;">3m</text>
dominik.c
Posts: 2081
Joined: Fri Aug 07, 2020 7:07 am

Re: How do I change 'y' attribute in button's text?

Hello tarou tanaka!

Welcome to our forum and thanks for contacting us with your question!

As you said, you can change the y attribute in buttonTheme. This property is responsible for placing the button vertically.

Demo:
https://jsfiddle.net/BlackLabel/s9j2qLd1/

Best regards!
Dominik Chudy
Highcharts Developer

Return to “Highcharts Stock”