Is Name
Is Name using Chart
Example 1
Summary: Creates a range chart with level legend and label by row, using data from an open table in JMP.
Code:
dt under test = Open("data_table.jmp");
obj = Chart(
Y( :Name( "Humid1:PM" ), :Name( "Humid4:PM" ) ),
Show Separate Axes( 0 ),
Category Axis << {Axis Name( "Rows" )},
Show Y Legend( 0 ),
Show Level Legend( 1 ),
Range Chart( 1 ),
Label by Row,
Show Labels,
SendToReport( Dispatch( {}, "Chart", OutlineBox, {Set Title( "Range Chart, Show Level Legend, Label by Row" )} ) )
);
Code Explanation:
- Open table.
- Create chart object.
- Set Y variables.
- Disable separate axes.
- Configure category axis.
- Hide Y legend.
- Show level legend.
- Enable range chart.
- Label by row.
- Show labels.
- Set chart title.
Example 2
Summary: Creates a pie chart with two Y variables, Humid1:PM and Humid4:PM, from a data table, while configuring axis settings and sending report settings.
Code:
dt under test = Open("data_table.jmp");
obj = Chart(
Y( :Name( "Humid1:PM" ), :Name( "Humid4:PM" ) ),
Overlay( 0 ),
Pie( 1 ),
Category Axis << {Axis Name( "Rows" ), Label( None )},
Overlay Stack Axis << {{Min( -500 )}},
Stack Axis << {{Min( -250 )}},
SendToReport( Dispatch( {}, "Chart", OutlineBox, {Set Title( "Pie Chart, Show Level Legend" )} ) )
);
Code Explanation:
- Open data table;
- Create chart object.
- Set Y variables.
- Disable overlay.
- Enable pie chart.
- Configure category axis.
- Set overlay stack axis minimum.
- Set stack axis minimum.
- Send report settings.
- Set chart title.
Example 3
Summary: Creates a range chart with level legend and label by row, utilizing JMP's Chart function to visualize data from an open data table.
Code:
dt under test = Open("data_table.jmp");
obj = Chart(
Y( :Name( "Humid1:PM" ), :Name( "Humid4:PM" ) ),
Show Separate Axes( 0 ),
Category Axis << {Axis Name( "Rows" )},
Show Y Legend( 0 ),
Show Level Legend( 1 ),
Range Chart( 1 ),
Label by Row,
Show Labels,
SendToReport(
Dispatch( {}, "Chart", OutlineBox, {Set Title( "Range Chart, Show Level Legend, Label by Row" )} ),
Dispatch( {}, FrameBox, {Frame Size( 420, 277 )} )
)
);
Code Explanation:
- Open data table;
- Create chart object.
- Set Y variables.
- Hide separate axes.
- Configure category axis.
- Hide Y legend.
- Show level legend.
- Enable range chart.
- Label by row.
- Show labels.
Example 4
Summary: Creates a bar chart to visualize mean height data, with category axis configured for rows.
Code:
dt = Open("data_table.jmp");
obj = Chart( Y( Mean( :height ) ), Category Axis << {Axis Name( Rows )}, Bar Chart( 1 ) );
Code Explanation:
- Open data table;
- Create chart object.
- Set Y axis to mean height.
- Configure category axis for rows.
- Generate bar chart.