Page 1 of 1

Silverlight Teechart - DataUpdates rendered incorrectly

Posted: Thu Feb 26, 2009 4:41 am
by 13051589
I have Teechart Version 4 Silverlight Teechart Beta.
I have Line series which is binded to ObservableCollection. Data update to a series point adds new point in the series. Instead it should update the existing point.

I know it is in Beta version.

The code for same is given Below. On click of button 'Button_Click', the third item in observable collection is updated. And it adds new point in series which is incorrect.
public partial class Teechart2 : UserControl
{
public Teechart2()
{
InitializeComponent();
InitializeChart();
}
private Steema.TeeChart.Silverlight.Styles.Line line;
private NameList observable;
private int count;



private void Button_Click(object sender, RoutedEventArgs e)
{

count += 20;
observable[2].Height = 300 + count;
tChart1.Series[0].CheckDataSource();

//observable.RemoveAt(3);
//tChart1.Series[0].CheckDataSource();
}

private void InitializeChart()
{
tChart1.Aspect.View3D = false;
tChart1.Series.Add(line = new
Steema.TeeChart.Silverlight.Styles.Line());

line.XValues.DataMember = "DateOfBirth";
line.XValues.DateTime = true;
line.YValues.DataMember = "Height";
line.LabelMember = string.Empty;
line.Pointer.Visible = true;

observable = new NameList();
line.DataSource = observable;
}


}

public class NameList : ObservableCollection<Person>
{


public NameList()
: base()
{

Add(new Person("Willa", "Cather", DateTime.Today.AddYears(1), Colors.Red, 171));
Add(new Person("Isak", "Dinesen", DateTime.Today.AddYears(2), Colors.Green, 189));

Add(new Person("Victor", "Hugo", DateTime.Today.AddYears(3), Colors.Blue, 196));
Add(new Person("Jules", "Verne", DateTime.Today, Colors.Orange, 175));

Add(new Person("H", "Priya", DateTime.Today.AddYears(4), Colors.Red, 134));
Add(new Person("G", "Vipul", DateTime.Today.AddYears(5), Colors.Green, 189));
}

}


public class Person
{
private string firstName;
private string lastName;
private DateTime dob;
private Color favorite;
private int height;

public Person(string first, string last, DateTime dob, Color favorite, int height)
{
this.firstName = first;
this.lastName = last;
this.dob = dob;
this.favorite = favorite;
this.height = height;
}

public string FirstName
{
get { return firstName; }
set
{
firstName = value;
}
}

public string LastName
{
get { return lastName; }
set
{
lastName = value;
}
}

public DateTime DateOfBirth
{
get { return dob; }
set
{
dob = value;
}
}

public Color FavoriteColor
{
get { return favorite; }
set
{
favorite = value;
}
}

public int Height
{
get { return height; }
set
{
height = value;
}
}

}

Regards,
Priya

Posted: Mon Mar 02, 2009 9:07 am
by narcis
Hi Priya,

Would you be so kind to send us this code project so that we can reproduce the issue here? You can either post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page.

Thanks in advance.

Posted: Fri Mar 06, 2009 11:02 am
by 13051589
To reproduce issue, Sample 'Sample2Teechart.zip' has been uploaded at Steema upload site.

Posted: Fri Mar 06, 2009 11:36 am
by narcis
Hi Priya,

Thanks for the example project. I could reproduce the issue here and added the defect (TW24013934) to the bug list to be investigated.

Posted: Tue Mar 10, 2009 9:58 am
by 13051589
Hi Narcis,

Please let us know when the next Silverlight Teechart beta version will be released, As this issue is very critical for us.


Regards,
Priya

Posted: Fri Mar 13, 2009 6:55 am
by 13051589
Hi Narcis,

Are there any updates on this issue?

Regards,
Priya

Posted: Fri Mar 13, 2009 8:09 am
by narcis
Hi Priya,

The release is imminent. I'll let you know when it's out.

Posted: Fri Apr 03, 2009 4:00 am
by 13051589
Any Updates on when will the version which has this fix be released? Atleast give us a tentative date. You realise that we too will have plans for a release, and the final version of Silverlight Tee chart has to be released before that.

Posted: Fri Apr 03, 2009 9:05 am
by narcis
Hi Priya,

Yes I understand your point but I'm unable to provide an estimate date for this being fixed at the present moment. Please be aware at TeeChart for .NET forum or subscribe to our RSS news feed for new release announcements and what's fixed on them.

Re: Silverlight Teechart - DataUpdates rendered incorrectly

Posted: Fri Jun 19, 2009 9:00 am
by Chris
Hello,

I can't reproduce this issue in the latest publicly available version of TeeChart.Silverlight.dll within TeeChart for .NET v2009. The same number of points are rendered before and after pressing the button.