Graph pens color

Hello,

While nathan’s post is accurate, I don’t believe it answers your question. You want a single pen to be multiple colors at once. Nathan’s technique would let you dynamically color a pen, but the entire pen would get that color. You want certain ranges to be one color, and certain ranges to be another color.

The direct answer is no - you can’t have a pen be more than one color at a time. However, you can simulate this effect with the following technique:

Split the pen up into 2 mutually exclusive pens, and make sure their renderer is set to “Line w/ Gaps”. One pen will contain only the points that are above your baseline, and one pen will contain the points that are below the baseline.

To do this, simply set up 2 pens pointing to the same table/column, lets [b]say the column is called penvalue. Set one pen’s WHERE clause to: penvalue >= 12000 and the other pen’s WHERE clause to penvalue < 12000. Now set their colors different. As long as your data is fairly contiguous, the effect of a multi-colored pen will be achieved.

Hope this helps,