PDA

View Full Version : [CLOSED] Add custom text to donut gauge



jchau
Jun 04, 2014, 4:43 PM
How can I add custom text in the middle on the gauge?

http://forums.ext.net/attachment.php?attachmentid=11871&stc=1

Daniil
Jun 04, 2014, 4:50 PM
Hi @jchau,

I can think about two possible ways.

1. Setting up a custom Sprite in a Chart's Items.

or

2. Override a GaugeSeries JavaScript to inject a custom Sprite.

jchau
Jun 04, 2014, 7:04 PM
Hi @jchau,

I can think about two possible ways.

1. Setting up a custom Sprite in a Chart's Items.

or

2. Override a GaugeSeries JavaScript to inject a custom Sprite.

Do you suggest adding that custom sprite on the AfterRender event or in the BeforeRender? Just want to make sure I dont cause a relayout.

Daniil
Jun 05, 2014, 5:56 AM
You could just put it to a Chart's Items. Or you mean that you need some code logic to create a Sprite?

As for BeforeRender and AfterRender. I would try with a BeforeRender first. This way you might be sure there is no an additional layout.

jchau
Jun 05, 2014, 4:46 PM
You could just put it to a Chart's Items. Or you mean that you need some code logic to create a Sprite?

As for BeforeRender and AfterRender. I would try with a BeforeRender first. This way you might be sure there is no an additional layout.

Thanks! I was able to add through Chart's Items.

http://forums.ext.net/attachment.php?attachmentid=11941&stc=1