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

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
ashwint27
Level III

Graph Builder Axis Box Background Colors Based on Value

For timeline/Gantt Chart visualization purposes, I would like to set different background colors on the Y-axis Axis Box based on the value inside.  For example, for "Category", I would like the "A" axis box to be one color, "B" to be another color, etc... I'm wondering if there is a Scripting option that could realize this.   In "Properties", there appears to be only one Background Color available to be set across all values in the axis box.  

ashwint27_0-1761171925131.png

 

6 REPLIES 6
txnelson
Super User

Re: Graph Builder Axis Box Background Colors Based on Value

I checked the Scripting Index for the messages that can be sent to an Axis Box and there does not appear to be any message to change the background color

Jim
hogi
Level XIII

Re: Graph Builder Axis Box Background Colors Based on Value

I had the same idea some years ago : @ background color for nominal axis values

-> easy to implement, nice improvement for Graph Builder.

if you need this functionality, please follow the link and vote.

 

 

hogi
Level XIII

Re: Graph Builder Axis Box Background Colors Based on Value

could help with nested x-Groups as well:

hogi_0-1761196667345.png

 

lwencx
Level II

Re: Graph Builder Axis Box Background Colors Based on Value

可以设置Y轴参考线范围来定义背景色,用类别A,B....来设置颜色

lwencx_3-1761198982417.png

 

 

lwencx_1-1761198514884.png

 
Graph Builder(
Size( 876, 622 ),
Show Control Panel( 0 ),
Fit to Window( "Off" ),
Variables(
X( :Distance ),
Y( :Month ),
Y( :Day of Week, Position( 1 ) ),
Color( :Month )
),
Elements( Bar( X, Y( 1 ), Y( 2 ), Legend( 7 ) ) ),
Local Data Filter(
Add Filter(
columns( :Month ),
Where( :Month == {"Jan", "Feb", "Mar"} ),
Display( :Month, N Items( 12 ) )
)
),
SendToReport(
Dispatch( {}, "月", ScaleBox,
{Add Ref Line( {-0.5, 6.5}, "Solid", "Black", "", 1, 0.25 ),
Add Ref Line( {6.5, 13.5}, "Solid", "Orange", "", 1, 0.25 ),
Add Ref Line( {13.5, 20.5}, "Solid", "Green", "", 1, 0.25 )}
)
)
);
hogi
Level XIII

Re: Graph Builder Axis Box Background Colors Based on Value

The task:

hogi_0-1761199780768.png

... without Photoshop.

ashwint27
Level III

Re: Graph Builder Axis Box Background Colors Based on Value

That would be for the background of inside of the graph itself (see picture in original message).  I am interested in coloring the AxisBox by different values.. I can color the entire Axis Box to be one color from Properties, but not by each individual value it seems.

ashwint27_0-1761236746440.png

 

Recommended Articles