Skip to main content
Jul 29, 2024 10:23 AM UTC
Solved

LineAreaChart fill-opacity

Hi folks,

I have a problem with my 'Line Area Chart' in TWX 9.5.3.

 

My selected colors of the 'Style Properties' are overwritten by 'fill-opacity: 0.5' from the element ':host([stacked]) [part~=“area”]'.

The “style properties” of the series all have an opacity of 100% so that the colors are fully displayed. However, this has no influence on the pale color displayed.

 

How can I overwrite this wrong value with 'fill-opacity: 1' with css?

 

Elements_DevTools.png

 

Best regards

Marc

M4RCAnswer
Dec 3, 2024 10:49 AM UTC

Hello @PEHOWE,

thank you for your reply.

 

I contacted PTC support after some time, as the question was asked four months ago. They were able to help me with the following snipped:

@supports (ptcs-style-unit: "PTCS-CHART-CORE-LINE"){
 :host([stacked]) [part~="area"] {
 		fill-opacity: 1 !important;
	}
}

 

Best regards

Marc

2 replies

Dec 2, 2024 10:48 PM UTC

Hello @M4RC ,
Do you happen to have a simple test case you can export as XML and attach to the Community Post?
Have you tried to edit the desired values in the Developer Tools? Did that work?
Regards,
Pehowe

M4RCAuthorAnswer
Dec 3, 2024 10:49 AM UTC

Hello @PEHOWE,

thank you for your reply.

 

I contacted PTC support after some time, as the question was asked four months ago. They were able to help me with the following snipped:

@supports (ptcs-style-unit: "PTCS-CHART-CORE-LINE"){
 :host([stacked]) [part~="area"] {
 		fill-opacity: 1 !important;
	}
}

 

Best regards

Marc