labels in charts?

Stephen Langer (
Fri, 14 Feb 1997 14:32:09 -0500

To subscribers of the xforms list from "Stephen Langer" <> :

Hi --

I'm trying to label points on an FL_LINE_CHART. Actually, I just want to
highlight one particular point, so I used
fl_add_chart_value(obj, val, "@square", FL_BLACK);
This works, but the square is drawn up above the line. Since there seems
to be no way to control the position of the square, I thought I'd just
replace it with a downward arrow, "@2->". This showed up as a tiny
almost invisible mark. Then I tried a circle, "@circle", which didn't
show up at all!

I can reproduce the behavior by replacing the fill_in routine in the
demo chartall.c with

void fill_in(FL_OBJECT *ob)
int c = FL_BLACK;
fl_add_chart_value(ob,25.0,"item 5",++c);
fl_add_chart_value(ob,12.0,"item 6",++c);

Am I not allowed to use symbols, am I doing something else wrong,
or is this a bug? Why did the square work? Can I change its position
vertically with respect to the line?

I'm using xforms 0.81 on an SGI (IRIX 6.2).


-- EMail:                    Phone: (301) 975-5423 --
-- WWW:    Fax:   (301) 990-4127 --
-- Mail: Building 820 Room 365; NIST; Gaithersburg, Md          20899-0001 --
To unsubscribe, send the message "unsubscribe" to or see
Xforms Home Page:
List Archive: