.NET Framework 4.8
Steema.TeeChart.net Version 4.2023.11.6
I am plotting 6 series on a tchart. In the first series the legend is not visible and the series is not visible. When plotting the signals, it looks like it is 1 off. Line 2-6 should be visible. Also when clicking on line 2 in the legend, line 3 seems to change.
Code: Select all
Steema.TeeChart.TChart tChart1;
public Form1()
{
InitializeComponent();
tChart1 = new Steema.TeeChart.TChart();
this.Controls.Add(tChart1);
tChart1.Dock = DockStyle.Fill;
tChart1.Axes.Bottom.Visible = true;
tChart1.Axes.Left.Visible = true;
tChart1.Axes.Right.Visible = false;
LoadData();
}
private void LoadData()
{
tChart1.Legend.Alignment = Steema.TeeChart.LegendAlignments.Bottom;
for (int count = 0; count < 6; count++)
{
Series line = new Line();
tChart1.Chart.Series.Add(line);
for (int i = 0; i < 1000; i++)
{
line.Add(i, i);
}
if (count == 0)
{
line.Visible = false;
line.Legend.Visible = false;
}
}
}
Akshob