HighLow - Different colors for high and low
Posted: Mon May 31, 2010 6:49 am
Hi,
I have a question about the different colors used for a HighLow Series.
I want to color the area where High > Low value green and the area where High < Low value red.
With the following code I get more or less the result:
However, the red color already start from the point where the values ARE GOING TO cross (point 3 in my example). But in fact, I want to start the red color only from the cross point itself.
So, somewhere in the middle between 3 and 4 where the two lines actually cross. See screenshot.
Thanks for your help!
Marijke.
I have a question about the different colors used for a HighLow Series.
I want to color the area where High > Low value green and the area where High < Low value red.
With the following code I get more or less the result:
Code: Select all
Steema.TeeChart.Styles.HighLow hl = new Steema.TeeChart.Styles.HighLow();
m_tchart.Series.Add(hl);
hl.Add(1, 10, 5);
hl.Add(2, 10, 8);
hl.Add(3, 10, 9);
hl.Add(4, 10, 12);
hl.Add(5, 10, 14);
hl.HighBrush.Color = System.Drawing.Color.Aquamarine;
hl.HighBrush.Visible = true;
hl.LowBrush.Color = System.Drawing.Color.LightCoral;
hl.LowBrush.Visible = true;
So, somewhere in the middle between 3 and 4 where the two lines actually cross. See screenshot.
Thanks for your help!
Marijke.