Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

wpf chart number of samples

Is there an easy way to restrict the x-axis to a certain number of samples? For example, I'd like to display the most recent 3 minutes of data, discard the older data, and have the x-axis scale update the timestamps. I've done this before by externally managing the data and then updating the ChartCollection. But there's got to be an easier way. I'm using Visual Studio 2019 and Measurement Studio 2019.

 

Thanks.

Don

0 Kudos
Message 1 of 2
(1,302 Views)

You can set the Adjuster on your horizontal axis to use ContinuousChart with an initial Range for your desired set of samples, and use FitVisibleLoosely on the vertical axis to update for samples in your viewport.

~ Paul H
0 Kudos
Message 2 of 2
(1,277 Views)