cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP Security Notice: CVE-2026-109618 and CVE-2026-109619

    JMP promptly initiated a review of its products, services, and relevant infrastructure for exposure to CVE-2026-109618 and CVE-2026-109619.

    Our assessment of JMP products has not identified exposure to these vulnerabilities. Where remediation was required within supporting environments, appropriate security updates and controls have been applied and validated.

    We have identified no evidence of successful exploitation or unauthorized access to JMP systems or customer information associated with these vulnerabilities.

    JMP continues to monitor the issue and relevant vendor guidance. No action is required by JMP customers at this time.

  • Don’t miss your chance to experience Discovery Summit Europe at our best available rate! Early bird registration through 31 Oct.
  • Graph Builder Toolbar streamlines interactive graphing. Creates shortcuts on Report and GraphBuilder Helpers toolbars. Download and install the extension.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
snagpal
Level I

JSL to change color of specific cause in Pareto Plot

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

2 REPLIES 2

Re: JSL to change color of specific cause in Pareto Plot

Hi, Shin.

The following example demonstrates how you can determine the index and color a specific cause by name:

Names Default To Here( 1 );

dt = Open( "$SAMPLE_DATA/Quality Control/Failure Raw Data.jmp" );

/* Obtain the sorted frequency */

dtSumm = dt << Summary( Group( :failure ), private );

dtSumm << Sort( By( :N Rows ), Order( Descending ), Replace Table );

/* Obtain the row number for the desired cause specified by name */

r = (dtSumm << Get Rows Where( :Failure == "oxide defect" ))[1];

/* Generate the Pareto Plot */

pPlot = dt << Pareto Plot(

      Cause( :Failure ),

      Colors( "Red" ),

          /* Set the color for the desired cause */

      Cause[r] << Colors( "Green" ),

      SendToReport(

              Dispatch(

                    {},

                                    "Pareto Plot",

                    OutlineBox,

                    {Set Title( "Pareto of " || (dt << Get Name) )}

              ),

              Dispatch( {"Plots"}, "102", ScaleBox, {Label Row( Show Major Grid( 1 ) )} )

      )

);


I hope this helps.


Wendy​

Wendy
snagpal
Level I

Re: JSL to change color of specific cause in Pareto Plot

Hi Wendy,

That was perfect.  Thanks for  the solution.

Shin

Recommended Articles