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

ThingWorx Navigate is now Windchill Navigate Learn More

Translate the entire conversation x

CSS for formatting the reference lines of a line chart

JK_10744682
13-Aquamarine

CSS for formatting the reference lines of a line chart

@Jam_Kirko 

Could you possibly share the CSS for changing a reference line color if you still have it--from this topic?  

 

2 REPLIES 2

Hi @JK_10744682   

  • Beginning with ThingWorx Platform 9.3.4, configuring different colors for reference lines is possible through Custom CSS code
@supports (ptcs-style-unit: "PTCS-CHART-COORD") {
  [part~="refline"]:nth-child(1){
    background-color:yellow;
  }
  [part~="refline"]:nth-child(2){
    background-color:red;
  }
}

This is very helpful. Do you know of a way to get the colors to be by reference line number rather than coordinates? I want specific reference lines to be certain color but the CSS you showed has it so that the highest value line is one color and so on. 

Announcements


Top Tags