Page 1 of 1
Legend does not update its values
Posted: Wed Nov 07, 2007 2:41 pm
by 8123141
Hello!
I have an urgent problem. I'm using a Surface (with irregular chart) but whenever I clear the values and add new ones, the legend does not refresh.
I'm using TeeChart version 1.1.2379.21122.
Thanx a lot in advance!
Posted: Thu Nov 08, 2007 11:44 am
by narcis
Hi dotnetjunkee,
First of all, please notice there's a newer v1 release available at the client area.
Regarding the issue, yes, it is a bug (TF02012581) which I have added to our defect list to be fixed for future releases. In the meantime, a workaround would be removing and creating the series every time they should be refreshed, for example:
Code: Select all
public Form1()
{
InitializeComponent();
RefreshSeries();
}
private void button1_Click(object sender, EventArgs e)
{
RefreshSeries();
}
private void RefreshSeries()
{
//Workaround
tChart1.Series.Clear();
Steema.TeeChart.Styles.Surface surface1 = new Steema.TeeChart.Styles.Surface(tChart1.Chart);
surface1.Clear();
Random y = new Random();
for (int x = 0; x < 10; x++)
{
for (int z = 0; z < 10; z++)
{
surface1.Add(x, y.Next(), z);
}
}
}