How to access Data Bar Table properties

I wanted to access the properties of a Data Bar Table, specifically its Data Point Series via Script so that i could change its Colors dynamically, anyone has ideas how to?

Hi @shai.palic.ad,

Usually you wouldn’t want to script something like this. Did you know that you can use states to change the styles of the data bar?

Here:

Hello Jeff,
I’m in this pickle because we are using a single project for multiple Tenants (Clients) and we wanted to customized it to reflect each clients colors. We are able to do this on regular charts but not with Column Charts. Thanks for your tip though. :wink:

Hi @shai.palic.ad,

Try something like this to change the data bar properties.

table1.control.columns[3].adapter.control.series[0].fill = new dundas.controls.SolidColorBrush(“Green”);
table1.control.invalidate();

Basically you’ve got the entire chart object attached to .adapter.control

This is exactly what i’m looking for. Thanks Jeff!