08-05-2020 10:19 AM
I am using Measurement Studio 2015 in my WPF application.
<ni:AxisDouble x:Name="xAxis" MinorDivisions="{x:Null}" InnerMargin="0" MajorGridLines="{x:Null}" MinorGridLines="{x:Null}" BaselineStroke="#707070" Adjuster="ContinuousChart" Orientation="Horizontal" OverridesDefaultStyle="True" >
<ni:AxisDouble.MajorDivisions>
<ni:RangeLabeledDivisions LabelBrush="#5A5A5A" LabelOrientation="None" MaximumLabelAlignment="Near" MinimumLabelAlignment="Near" TickSize="1,3"/>
</ni:AxisDouble.MajorDivisions>
</ni:AxisDouble>
If I don't mention the range here, it by default takes 0,10. My requirement is that user can configure the number of samples that are visible in a graph at a time. If Range is set, it is giving issue when I refresh the graph datasource. Can anyone suggest me how I can manage this issue.
There is a requirement that user can play the graph to and fro like a music player, and it is then when the issue is occured. The graph plotting is hanged completely. If I dont mention any range to X-Axis, it is working fine.
08-07-2020 11:34 AM
Unfortunately, I could not reproduce any hang when changing the graph data source. I did see the view always shift to the leading edge of data (which is the behavior defined by the ContinuousChart
adjuster) — is this the “hang” you were referring to?
From your description, it sounds like you want to do programmatically what the GraphThumbnail
allows interactively (i.e. panning through the full range of data)? This can be done just by shifting the axis range, without ever changing the data.
I was using an array of double
values, so the graph may be doing something different depending on your data source. It would be very helpful if you could share a small application that reproduces the problem you are seeing, to help diagnose the issue.