Hello,
I'm trying to change the color of a specific cause in the Pareto Plot using JSL. How can I select a cause by name?
For example, I want to implement something like this:
cause ({"PASS"}) << Colors (Green);
This gives me an error and wants me to use Cause where n is the index of the failure pareto. My issue is that I won't know if my PASS pareto will be #1, #2, etc.
Any suggestions?
Here is my code below:
dt << Pareto Plot(
Cause( :BinName),
Colors (Red),
SendToReport(
Dispatch( {}, "Pareto Plot", OutlineBox, {Set Title( "Pareto of " || (dt << Get Name) )} ),
Dispatch( {"Plots"}, "102", ScaleBox, {Label Row( Show Major Grid( 1 ) )} )
)
)
Shin