Forum Forum

Retour

Customize Bar Chart with own colors

Bascule
Customize Bar Chart with own colors
Réponse
05/04/23 13:48
Dear Support,

I'm trying to figure out how to change the colors colors from bar charts.

I'm building a task where a bar chart will get dynamically updated from user input, and I need to make each bar rectangle from the chart to match a certain brand CI color.
I think this is not possible directly from smartbuilder, but could I find a css file where these colors are defined so I can change them?

Many thanks,
Christos Argyropoulos
0 (0 Voter)

RE: Customize Bar Chart with own colors
Réponse
05/04/23 19:38 en réponse à Christos Argyropoulos.
Hi Christos,
Unfortunately, this isn't possible - the colors are baked into the chart object and aren't available to CSS customization. Can you send us a screenshot of your chart (either here or email it to support)? Perhaps we can offer a different workaround. If it's not too complicated, you might be able to get away with using a bunch of vertical Percent Gauge objects.
0 (0 Voter)

RE: Customize Bar Chart with own colors
Réponse
18/04/23 09:57 en réponse à Navdeep Dhillon.
Hi Navdeep,

Thanks for your quick support and this clarification. The workaround suggestion is a good idea that I could use in the future, in my case it was complicated and I managed to escape with the default colors.
0 (0 Voter)