Incorrect legend color for the Candle series
Posted: Tue May 01, 2007 1:39 am
It seems to me that the color of the series points shown in the legend box of a Candle series does not match the color of the candles.
Jeff
Jeff
Steema Software - Customer Support Forums
http://216.92.101.67/support/
I'm quite hampered by this problem for many years now (seeking shelter in candle series from the ill-designed single box-whisker approach to visualise uncertainties) . Any idea if/when this one could be resolved?Edu wrote:Hi Jeff
Thanks for letting us know, I could reproduce the issue here and this seems to be a bug. I've added it (TF02012194) to our defect list to be fixed for future releases.
Code: Select all
public Form1()
{
InitializeComponent();
InitializeChart();
}
Steema.TeeChart.Styles.Candle Series1;
private void InitializeChart()
{
Series1 = new Steema.TeeChart.Styles.Candle(tChart1.Chart);
Series1.FillSampleValues();
Series1.DownCloseColor = Color.Red;
Series1.UpCloseColor = Color.Blue;
}
Code: Select all
LineSerie = New Steema.TeeChart.Styles.Line
LineSerie.Title = tracename
LineSerie.OutLine.Width = 1
LineSerie.OutLine.Visible = m_ChartSettings.m_Outline
CurTChrt.Series.Add(LineSerie)
CndlSerie = New Steema.TeeChart.Styles.Candle
' insert line after candle so it show up in front of it
CndlSerie.Title = tracename + "StDev"
CndlSerie.UpCloseColor = LineSerie.Color
CndlSerie.DownCloseColor = LineSerie.Color
CalcCustumLeftAxes(CurTChrt)
CurTChrt.Series.Add(CndlSerie)
Code: Select all
private void InitializeChart()
{
tChart1.Aspect.View3D = false;
tracename = "LineSeries11";
LineSeries = new Steema.TeeChart.Styles.Line(tChart1.Chart);
LineSeries.Title = tracename;
LineSeries.OutLine.Width = 1;
LineSeries.FillSampleValues();
CndlSeries = new Steema.TeeChart.Styles.Candle(tChart1.Chart);
// insert line after candle so it show up in front of it
CndlSeries.Title = tracename + "StDev";
CndlSeries.Color= LineSeries.Color;
CndlSeries.UpCloseColor = LineSeries.Color;
CndlSeries.DownCloseColor = LineSeries.Color;
CndlSeries.FillSampleValues();
}