cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Submit your abstract to the call for content for Discovery Summit Americas by April 23. Selected abstracts will be presented at Discovery Summit, Oct. 21- 24.
Discovery is online this week, April 16 and 18. Join us for these exciting interactive sessions.
Choose Language Hide Translation Bar
G_M
G_M
Level III

Any Advice: Fill Color not working in Graph Box?

Good morning,

for some reason the rectangles in this Graph Box are not filling with specified color.  Perhaps it is something simple that I am missing:

new Window("Test",
H List Box(
g0 = Graph Box(
			Frame Size(50, 500),
			Y Scale(-1, 6),
			X Scale(0, 6),
			Fill Color("Green");
			Rect(0, 1.1, 6, 0);
			Fill Color("Yellow");
			Rect(0, 1.6, 6, 1.1);
			Fill Color("Orange");
			Rect(0, 1.8, 6, 1.6);
			Fill Color("Red");
			Rect(0, 5.9, 6, 1.8);
		),
g1 = Graph Box(
			Frame Size(50, 500),
			Y Scale(-1, 6),
			X Scale(0, 6),
			Fill Color("Green");
			Rect(0, 1.1, 6, 0);
			Fill Color("Yellow");
			Rect(0, 1.6, 6, 1.1);
			Fill Color("Orange");
			Rect(0, 1.8, 6, 1.6);
			Fill Color("Red");
			Rect(0, 5.9, 6, 1.8);
		),
g2 = Graph Box(
			Frame Size(50, 500),
			Y Scale(-1, 6),
			X Scale(0, 6),
			Fill Color("Green");
			Rect(0, 1.1, 6, 0);
			Fill Color("Yellow");
			Rect(0, 1.6, 6, 1.1);
			Fill Color("Orange");
			Rect(0, 1.8, 6, 1.6);
			Fill Color("Red");
			Rect(0, 5.9, 6, 1.8);
		),
g3 = Graph Box(
			Frame Size(50, 500),
			Y Scale(-1, 6),
			X Scale(0, 6),
			Fill Color("Green");
			Rect(0, 1.1, 6, 0);
			Fill Color("Yellow");
			Rect(0, 1.6, 6, 1.1);
			Fill Color("Orange");
			Rect(0, 1.8, 6, 1.6);
			Fill Color("Red");
			Rect(0, 5.9, 6, 1.8);
		),
	),
);

g0[Axis Box(1)]<< Delete;
g1[Axis Box(1)]<< Delete;
g2[Axis Box(1)]<< Delete;
g3[Axis Box(1)]<< Delete;

Thanks in Advance!

MG

1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User

Re: Any Advice: Fill Color not working in Graph Box?

You need to add a 5th element to the Rect() function. The 5th element specifies if the rectangle is to be filled (1) or not filled (0). See the Scripting Index for more info.
rect( 11,15,15,11,1)
Jim

View solution in original post

2 REPLIES 2
txnelson
Super User

Re: Any Advice: Fill Color not working in Graph Box?

You need to add a 5th element to the Rect() function. The 5th element specifies if the rectangle is to be filled (1) or not filled (0). See the Scripting Index for more info.
rect( 11,15,15,11,1)
Jim
G_M
G_M
Level III

Re: Any Advice: Fill Color not working in Graph Box?

I got it, I need to add the Boolean for Fill..