Why can't create a histogram?Hi everyone.
I wanna make a histogram using JSL.
1)
Names Default To Here( 1 );
dt = Open( "$Sample_Data/Big Class.jmp" );
dt = Current Data Table();
Input = New Window( "example", << modal(),
new1 = hlistbox(
Text Box( "Test name :" ),
Para_Num_teb = Text Edit Box( "", <<SET width=""></SET>
It can be run normally.
2)
Names Default To Here( 1 );
dt = Open( "$Sample_Data/Big Class.jmp" );
dt = Current Data Table();
Input = New Window( "example", << modal(),
new1 = hlistbox(
Text Box( "Test name :" ),
Para_Num_teb = Text Edit Box( "", <<SET width="">dtLimits = New Table("Option Table",
);
Histogram = Distribution(
Continuous Distribution(
column( column(dt, Para_Num )),
Vertical( 0 ) ,
)
);
</SET>But, It can't be run.
I want to make a JSL for creating histogram using the 2nd script.
Could you give me any advice?
ScriptingRe: Why can't create a histogram?The issue you are having, is that when you added in the lines of code to create the limits table, JMP moved the Current Data Table from Big Class, to the Option Table. Thus, when the Distribution fired up, it looked to the Option Table for the data. The simple fix, is to point the Distribution Platform to the data table where the data are. See below:
Names Default To Here( 1 );
dt = Open( "$Sample_Data/Big Class.jmp" );
dt = Current Data Table();
Input = New Window( "example", << modal(),
new1 = hlistbox(
Text Box( "Test name :" ),
Para_Num_teb = Text Edit Box( "", <<SET width=""></SET>
Re: Why can't create a histogram?Your solution which bring me new inspiration, is very simple and perfect everytime.
Thank you