Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Custom Graph Colors

Status
Not open for further replies.

LeonelSanchezJr

Programmer
Jan 26, 2001
522
US
I am using Developer Studio Version 7.1.4.
I am using the LINE Graph, Absoute.

I need to "flip" 2 colors in the graph.
OR, have complete control over the colors that appear in the lines.

I have 8 values in my legend which comprise the line graph.
However, the "TARGET" which is one of the ACROSS values, appears in PINK.

My manager wants that value including the legend for "TARGET" to appear in GREEN.

I have read lots of documentation about customizing, and I even got the "TARGET" line to turn green with a MACRO, however, the legend remained PINK for this value.


Thanks,

Leo ;-)
 
In the graph stylesheet, see if you can find the following calls and change them, or add them.

setSeriesFillColor(0,new Color(255,0,0));
setSeriesFillColor(1,new Color(0,255,0));

This will set the first sieries color to red and the second to green.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top