×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Custom Graph Colors

Custom Graph Colors

Custom Graph Colors

(OP)
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 winky smile  

RE: Custom Graph Colors

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.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close