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
vritti
Level I

JSL Create Variability Chart from Tabulate table

Hi All

I have the following script for issue presentation only:

I can't understand what is wrong - why chart not displayed.

dt = Open( "$SAMPLE_DATA/Hurricanes.jmp" );

tdt = dt<<

Tabulate(

  Add Table(

  Column Table(

  Analysis Columns( :Atmospheric Pressure ),

  Statistics( N, Mean )

  ),

  Row Table( Grouping Columns( :Name, :Name( "Wind (Knots)" ) ) )

  )

);

pivotTable = tdt << Make Into Data Table;

tbName = dt << get name() || " - Pivot Table";

pivotTable << set name( tbName );

Variability Chart(

  Y( :Name( "Mean(Atmospheric Pressure)" ) ),

  X( :Name( "Wind (Knots)" ), :Name ),

  Analysis Type( Name( "Choose best analysis (EMS REML Bayesian)" ) ),

  Process Variation( 0 ),

  Connect Cell Means( 1 ),

  Std Dev Chart( 0 ),

  SendToReport(

  Dispatch(

  {"Variability Chart for Mean(Atmospheric Pressure)"},

  "Variability Chart",

  FrameBox,

  {Grid Line Order( 5 ), Reference Line Order( 6 )}

  )

  )

);

1 REPLY 1
pmroz
Super User

Re: JSL Create Variability Chart from Tabulate table

You need to make the pivot table the current data table.  The variability chart platform is trying to run from the hurricanes table instead.  This code works:

dt = Open( "$SAMPLE_DATA/Hurricanes.jmp" );

tdt = dt << Tabulate(

    Add Table(

        Column Table( Analysis Columns( :Atmospheric Pressure ), Statistics( N, Mean ) ),

        Row Table( Grouping Columns( :Name, :Name( "Wind (Knots)" ) ) )

    )

);

pivotTable = tdt << Make Into Data Table;

tdt << close window;

tbName = dt << get name() || " - Pivot Table";

pivotTable << set name( tbName );

current data table(pivottable);

Variability Chart(

    Y( :Name( "Mean(Atmospheric Pressure)" ) ),

    X( :Name( "Wind (Knots)" ), :Name ),

    Analysis Type( Name( "Choose best analysis (EMS REML Bayesian)" ) ),

    Process Variation( 0 ),

    Connect Cell Means( 1 ),

    Std Dev Chart( 0 ),

    SendToReport(

        Dispatch(

            {"Variability Chart for Mean(Atmospheric Pressure)"},

            "Variability Chart",

            FrameBox,

            {Grid Line Order( 5 ), Reference Line Order( 6 )}

        )

    )

);

Recommended Articles