cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Discussions

Solve problems, and share tips and tricks with other JMP users.
%3CLINGO-SUB%20id%3D%22lingo-sub-434575%22%20slang%3D%22en-US%22%20mode%3D%22UPDATE%22%3EDefault%20Y-axis%20scale%20for%20multiple%20charts%20in%20graph%20builder%2C%20using%20page%20function%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-434575%22%20slang%3D%22en-US%22%20mode%3D%22UPDATE%22%3E%3CP%3EI%20am%20using%20graph%20builder%20for%20a%20data%20set%20that%20produces%2020%2B%20graphs.%26nbsp%3B%20I%20would%20like%20the%20scale%20%26amp%3B%20range%20of%20the%20Y-axis%20to%20be%20the%20same%20for%20all%2020%20graphs.%26nbsp%3B%20I%20tried%20the%20script%20below%20with%20no%20success%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3EGraph%20Builder(%0AVariables(%20X(%20%3ADate%20)%2C%20Y(%20%3ARate%20)%2C%20Page(%20%3ACategory%20)%20)%2C%0AElements(%20Line(%20X%2C%20Y%2C%20Legend(%205%20)%20)%20)%2C%0ASendToReport(%0ADispatch(%0A%7B%7D%2C%0Aeval(%20column(%20%3ARate))%2C%0AScaleBox%2C%0A%7BMin(%200%20)%2C%20Max(%2050%20)%2C%20Inc(%2010%20)%2C%0AMinor%20Ticks(%2010%20)%7D%0A)%0A))%3B%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-434575%22%20slang%3D%22en-US%22%20mode%3D%22UPDATE%22%3E%3CLINGO-LABEL%3EAutomation%20and%20Scripting%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMass%20Customization%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-434596%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20Default%20Y-axis%20scale%20for%20multiple%20charts%20in%20graph%20builder%2C%20using%20page%20function%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-434596%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EIt's%20probably%20easiest%20to%20use%20the%20%3CA%20href%3D%22https%3A%2F%2Fwww.jmp.com%2Fsupport%2Fhelp%2Fen%2F16.1%2F%23page%2Fjmp%2Fproperties-that-control-the-display-of-columns.shtml%23ww459304%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3EAxis%3C%2FA%3E%20%3CA%20href%3D%22https%3A%2F%2Fwww.jmp.com%2Fsupport%2Fhelp%2Fen%2F16.1%2F%23page%2Fjmp%2Fcolumn-properties-in-jmp.shtml%23459304%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3Ecolumn%20property%3C%2FA%3E%20on%20your%20%3ARate%20column.%20That%20will%20make%20sure%20the%20axis%20is%20always%20what%20you%20want%2C%20and%20it's%20easier%20than%20trying%20to%20get%20to%20all%20the%20axes%20across%20reports%20to%20format%20them.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
lucianoa
Level II

Default Y-axis scale for multiple charts in graph builder, using page function

I am using graph builder for a data set that produces 20+ graphs.  I would like the scale & range of the Y-axis to be the same for all 20 graphs.  I tried the script below with no success

 

Graph Builder(
Variables( X( :Date ), Y( :Rate ), Page( :Category ) ),
Elements( Line( X, Y, Legend( 5 ) ) ),
SendToReport(
Dispatch(
{},
eval( column( :Rate)),
ScaleBox,
{Min( 0 ), Max( 50 ), Inc( 10 ),
Minor Ticks( 10 )}
)
));
1 REPLY 1
Jeff_Perkinson
Community Manager Community Manager

Re: Default Y-axis scale for multiple charts in graph builder, using page function

It's probably easiest to use the Axis column property on your :Rate column. That will make sure the axis is always what you want, and it's easier than trying to get to all the axes across reports to format them.

-Jeff

Recommended Articles