Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
How to set fill color on a Solid Gauge chart?
How do you set the fill color of a Solid Gauge chart?
This is the area behind the arc - filling the rectangle.
Also, if you do not require a title for your chart, how can you recapture some of the space above the arc on a Solid Gauge chart?
Thanks,
John
Hi John,
The area behing the arc is the chart background, you should be able to do
configuration.getChart().setBackgroundColor(...)
Regarding the spacing, by default it should take much extra space if there's no title, if this doesn't happen you can force it with:
configuration.getChart().setMarginTop(0)
Hope this helps,
Guillermo
Many thanks Guillermo that is exactly what I was looking for.
- John