My raw table is just a lot of data values, some obviously wrong ones that need to be changed manually, with dynamic display images
Names Default To Here( 1 );
dt = Current Data Table();
//Get the row number of the selected row in the current table
While( 1,
r = dt << get selected rows();
dt1 = New Table( "w", New Column( "x", set values( dt[r, 1 :: 13] ) ) );
dt1 << Distribution(
Stack( 1 ),
Continuous Distribution( Column( :x ), Horizontal Layout( 1 ), Vertical( 0 ) )
);
//Check if there is a change in the selected row number in the original table, and redraw the diagram if it has changed
If( (r1 = dt << get selected rows()) != r,
dt1 = New Table( "w", New Column( "x", set values( dt[r1, 1 :: 13] ) ) );
dt1 << Distribution(
Stack( 1 ),
Continuous Distribution( Column( :x ), Horizontal Layout( 1 ), Vertical( 0 ) )
);
);
//Check if any values in the original table have been modified, and if so, redraw the graphs
If( (r2 = dt << get selected rows()) == r | (r2 = dt << get selected rows()) == r1,
If( dt[r, 1 :: 13] != dt[r2, 1 :: 13] | dt[r2, 1 :: 13] != dt[r1, 1 :: 13],
dt1 = New Table( "w", New Column( "x", set values( dt[r1, 1 :: 13] ) ) );
dt1 << Distribution(
Stack( 1 ),
Continuous Distribution( Column( :x ), Horizontal Layout( 1 ), Vertical( 0 ) )
)
;
)
);