Change colors of a chart and/or table through javascript

Hi,

Is there a way to change the colors/styles of a chart and/or table through javascript?

Thanks!

Hello,

Can you try these scripts or you can find more proprieties here:
https://www.dundas.com/support/developer/script-library/controls/chart/

var brush = new dundas.controls.SolidColorBrush(0xcd648b);
table1.control.background = brush; //can be used for chart

var brush = new dundas.controls.SolidColorBrush(0xcd648b);
chart1.control.series[0].fill = brush;

Thank you, @costin.manea. I was able to apply this to what I’m working on.

1 Like

Can this be done for the filter controls too? We want to make the dashboard controls look as much like out internal portal controls. See attached date picker form our portal, can I make the Dundas date range picker look like exactly like that?

image

Which version are you on Mark?
Control of the filter look was added in version 6.
Before that (and even in version 6 for some properties) you have to do it via CSS. But 100% doable with a bit of effort.

1 Like

We are on 6, you’re right there are a lot more options than I expected.

image

We just need to override the calendar icon and we’ll be set! Thanks

If it’s not an option, it should be dead easy to do with CSS and just replace the image with one off your server.

I believe that Jeff has a video about how to do that.

1 Like