With the service release 10.2.20102.2175, I am seeing a strange issue of drawing of lines. Sometime instead of drwaing lines it seems to paint an area. Attached is the image.
Any update?. Note when I zoom in the area drawing goes away.
Regards,
Hi,
What kind of series are you trying to render there? Is there a way you can provide a sample project to reproduce this behavior? I haven't seen this issue before. There are some legitimate reasons, for some data when the chart will render a filled area, but its hard to tell from just the screenshot what is ocurring.
-Graham
I was just checking to see if you were still having an issue with the chart. Were you able to put together a sample to reproduce this behavior so that we can investigate the cause further?
Please let me know if there is anything I can help with.
Marianne
Ok I am back to this issue. I am able to reproduce this easily now.
When I bind the chart series to a collection( mPoints) directly and in the timer code just do this.
i = i + 10;mPoints.Add(new ChartDataPoint { Date = DateTime.Now, YS = i, Y = Math.Sin(i) });if(i>100) i =0;where mPoints is a observed collection of class public class ChartDataPoint { public double Y { get; set; } public double YS { get; set; } public DateTime Date { get; set; } }Then I dont see the issue in chart. But when I bind to a buffered data and copy the data from the buffered data into the mPoints then I see this issueNote now the mPoints is a RangeObservedCollection( class derived from Observable collection)public class ObservableRangeCollection<T> : System.Collections.ObjectModel.ObservableCollection<T> { /// <summary> /// Adds the elements of the specified collection to the end of the ObservableCollection(Of T). /// </summary> public void AddRange(IEnumerable<T> collection) { foreach (var i in collection) { Items.Add(i); if (Count > 60) Items.RemoveAt(0); } OnCollectionChanged(new NotifyCollectionChangedEventArgs( NotifyCollectionChangedAction.Reset)); } }
Now my timer code says something like this. void timer_Tick(object sender, EventArgs e) { if (mPoints != null) { i = i + 10; if (mBufferPoints != null) mBufferPoints.Add(new ChartDataPoint { Date = DateTime.Now, YS = i, Y = Math.Sin(i) }); } if (i > 100) { mPoints.AddRange(mBufferPoints); mBufferPoints.Clear(); i = 0; } }Any Idea what could be wrong.
Any Update? I can upload a sample app if needed.
I think Graham did ask if you had a sample that reproduced the behavior. If you already have one I'm sure it would be helpful.
Thanks,
Development is still working on your issue. I’ll contact you thru the case concerning your scheduling requirements.
Hi Marianne,
Any progress in this issue. We would need some kind of solution to this problem in another 10~15 days as we are going to have another delivery.
Yes, we've been able to reproduce the issue and I'm in the process of logging the behavior.
I'm going to create a case for you so that you can track the progress and resolution directly. You'll hear from me shortly thru the case.
Any Luck reproducing the problem.
Attached is the app. Regards,