Subscribe Bookmark RSS Feed

Graph Builder Color By Column Gradient Settings Instable

saitcopuroglu

Community Trekker

Joined:

Sep 29, 2014

I have the following script where I set the Gradient mid, min and max points for Graph Builder Color by Variable option but whenever I run the script the min, max, mid points resets themselves to default calciulations of JMP itself. Any idea how to eliminate it?

New Window( "DEPARTMENTS",

    H List Box(

        Categorical(

            Count Missing Responses( 0 ),

            Order Response Levels High to Low( 0 ),

            X( :DEPARTMENTS ),

            Responses( :Answer Categorical ),

            Legend( 0 ),

            Mean Score( 1 ),

            Show Warnings( 1 ),

            Contents Summary( 0 ),

            Format Elements( Shares and Rates( Percent, 7, 1 ) ),

            SendToReport(

                Dispatch(

                    {},

                    "Categorical",

                    OutlineBox,

                    {Set Title( "DEPARTMENTS Answer Type Distribution" )}

                ),

                Dispatch(

                    {},

                    "Responses( Answer Categorical ) By DEPARTMENTS",

                    OutlineBox,

                    {Set Title( "" )}

                )

            )

        ),

        Graph Builder(

            Size( 891, 592 ),

            Show Control Panel( 0 ),

            Show Legend( 1 ),

            Fit to Window( "Off" ),

            Back Color( {183, 207, 219} ),

            Title Fill Color( {174, 203, 228} ),

            Title Frame Color( {132, 154, 183} ),

            Level Fill Color( {174, 203, 228} ),

            Level Frame Color( {122, 129, 165} ),

            Level Underline( 1 ),

            Page Level Underline( 0 ),

            Variables(

                X( :SCORE ),

                Y(

                    :DEPARTMENTS,

                    Order By( :SCORE, Ascending, Order Statistic( "Mean" ) )

                ),

                Color( :SCORE )

            ),

            Elements( Bar( X, Y, Legend( 4 ), Label( "Label by Value" ) ) ),

            SendToReport(

                Dispatch(

                    {},

                    "Graph Builder",

                    OutlineBox,

                    {Set Title( "DEPARTMENTS ordered by SCORE" )}

                ),

                Dispatch(

                    {},

                    "SCORE",

                    ScaleBox,

                    {Format( "Best", 16 ), Min( 71.7948717948718 ), Max( 100 ),

                    Inc( 2 ), Minor Ticks( 1 ),

                    Label Row( {Show Minor Labels( 1 ), Show Major Grid( 1 )} )}

                ),

                Dispatch(

                    {},

                    "DEPARTMENTS",

                    ScaleBox,

                    {Label Row(

                        {Label Orientation( "Horizontal" ), Show Major Grid( 1 ),

                        Tick Mark Style( "Long Divider" )}

                    )}

                ),

                Dispatch(

                    {},

                    "400",

                    ScaleBox,

                    {Legend Model(

                        4,

                        Properties(

                            0,

                            {gradient(

                                {Scale Values( [76 85 99] ), Width( 12 ),

                                Discrete Colors( 1 ), N Labels( 4 )}

                            )}

                        )

                    )}

                ),

                Dispatch( {}, "graph title", TextEditBox, {Set Text( "" )} ),

                Dispatch( {}, "X title", TextEditBox, {Set Text( "" )} ),

                Dispatch( {}, "Y title", TextEditBox, {Set Text( "" )} )

            )

        )

    )

)


Before I set the script by manual adjustments and copying the script from the graph builder itself:


9105_2015-06-29_11-28-50.png



After rerunning the script:

9104_2015-06-29_11-19-26.png