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!
Legend does not update its values
-
- Newbie
- Posts: 20
- Joined: Fri Dec 05, 2003 5:00 am
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
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:
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);
}
}
}
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |