Any workaround for get color from variable in perspective

Hi,

After working with perspective a bit, I have seen some Perspective Components that have color properties not working with variable css color in the theme file variable... Its really a problem. Am currently making an Analysis page with a XY chart to show state for the line during the production and have some color that I use everywhere with the variable var(--oee-state3). So I want to know if someone have found a workaround.. Like a custom property with a script to convert the variable into a real color format to be bind after? As you can see in the picture on top, I got a label with the variable I try to use as an example and you can see that on the XY charts the red color not showing in the category Unplanned Downtime.

Best regards,

Gabriel

Looks like this is general problem with chart components, they do not accept CSS variables.
Theme color variables in Piechart are not supported? - Ignition - Inductive Automation Forum
Perspective Css-Theme-Variable not working on all Controls - Ignition - Inductive Automation Forum
[BUG-1512] SimpleGauge color props do not accept "named colors" from theme variables - Ignition Early Access - Inductive Automation Forum

You can try ApexCharts.

1 Like

Thanks you am gonna look into that free module :slight_smile:

1 Like