/*
I would like to control the decimal output for graph labels within JSL script.
I need to set the number of decimal places displayed explicitly, as opposed to graph builder default.
For Example: Increase decimal from 3 to 5.
I have been unable to locate this control within Garph Builder Axis Settings or JMP Preferences.
I assume the control command occurs within or just after the Label( "Value" ) command.
Using DiamondData sample dataset.
*/
// Sample dataset DiamondsData
// Review Directory
dt = Open("C:\Desktop\DiamondsData.jmp");
// Create Average of Carat by Cut
new column("cut_carat_agv",
numeric,
continuous,
formula( Col Mean( :Carat Size, :Cut))
);
//Graph hBar of Average Carat Size by Cut with Bar Label "Value"
Graph Builder(
Show Control Panel( 0 ),
Variables( X( :cut_carat_agv ), Y( :Cut ) ),
Elements(
Bar(
X,
Y,
Legend( 2 ),
Bar Style( "Side by side" ),
Summary Statistic( "Mean" ),
// Assume Decimal control for Label occurs here
Label( "Value" )
)
),
SendToReport(
Dispatch(
{},
"graph title",
TextEditBox,
{Set Text( "Average Carat Size by Cut" )}
),
Dispatch( {}, "X title", TextEditBox, {Set Text( "Average Carat Size" )} )
)
);