cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X

Format line from time series chart

Radu
15-Moonstone

Format line from time series chart

Hello.

 

I have a time series chart with a 30-day history of a property, and a target value. I want the line to be coloured differently when it is above/below the target. The State Formatting option only colours the marker from the data point, but not the line.

 

Does anyone know how to colour the line? My purpose is to have it like this:

Red line when below the target

Green line when above the target

 

Thank you

5 REPLIES 5
zyuan1
18-Opal
(To:Radu)

I don't think a line-chart could do this, but a bar chart will.

Radu
15-Moonstone
(To:zyuan1)

Sadly, the format needs to be an XY chart, because the data points need to be connected to eachother.

zyuan1
18-Opal
(To:Radu)

XY chart has the stateFormating field that you can use to change color based on value, but it doesn't quite work in my side. If this doesn't work for you either, then we don't have other options.

Radu
15-Moonstone
(To:zyuan1)

What do you mean that it "doesn't quite work"? For me it doesn't work at all, but I remember seeing it work once.
zyuan1
18-Opal
(To:Radu)

Yeah, it means it didn't work in my side, not sure if my configuration is correct. But this is the only access for a diverse colour in the chart.

Announcements


Top Tags