ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Graph lost Plots

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

0 Kudos
Message 1 of 4
(6,191 Views)

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 ) );
        }
    }

~ Paul H
0 Kudos
Message 2 of 4
(6,167 Views)

Thank you, that solved the Problem 🙂

Nice Wishes

Manuel

0 Kudos
Message 3 of 4
(6,159 Views)

Just wanted to let you know this issue (#451487) was fixed in the Measurement Studio 2015 release.

~ Paul H
0 Kudos
Message 4 of 4
(4,841 Views)