02-11-2014 07:08 AM
Hi,
i've got a strange Behaviour with the WPF Graph.
If one Plot is out of the Maximum Range he deletes the Plot a beginn a new one.
I've made a Example that is like my real Application.
Hope someone can help me.
Nice Wishes
Manuel
02-12-2014 11:12 AM
I was able to reproduce your issue and have created a task to fix this. In short, when chart data is drawn out of range, the Raster
target ends up interpreting this as a "no data" condition and clears the render area.
As a workaround, you can change RenderMode
to Vector
; or you can use a custom data source that disables chart optimization, such as the collection below that derives from the data source used in the example:
[DataTypeDescriptor( typeof( GraphDataCollectionDescriptor<> ) )]
public class CustomChartCollection : ChartCollection<double> {
public CustomChartCollection( ) : base( 100000 ) { }
protected override void OnDataChanged( GraphCollectionChangedEventArgs e ) {
base.OnDataChanged( new GraphCollectionChangedEventArgs( 0 ) );
}
}
02-13-2014 01:29 AM
Thank you, that solved the Problem 🙂
Nice Wishes
Manuel
08-11-2015 12:57 PM
Just wanted to let you know this issue (#451487) was fixed in the Measurement Studio 2015 release.