Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Hide/Show ChartCollectionAnalogWaveform and set its line color in WPF graph

Hi,

I have WPF graph with Data as ChartCollectionAnalogWaveform<double>[]. I append waveform to each ChartCollectionAnalogWaveform every second.

Each ChartCollectionAnalogWaveform in the array represents specific channel, I created my own legend where I have a list of channels and the user might define the line color of the channel and wheather it is visible or not in the graph.

Do you have an example of changing the visibility and color of ChartCollectionAnalogWaveform in WPF graph ?

0 Kudos
Message 1 of 3
(3,594 Views)

Changing the color of each plot will depend on the PlotRenderer you use. For example, you would change Stroke if you were using a LinePlotRenderer. The "PlotRenderer" example would be a good one to look at.


We do not have an example specifically for plot visibility. You can use the Visibility property to show and hide plots.

~ Paul H
0 Kudos
Message 2 of 3
(3,584 Views)

Thanks.

 

I was able to access plots via graph.AllPlots and change visibility and stroke as you said.

 

0 Kudos
Message 3 of 3
(3,519 Views)