02-01-2016 04:58 AM
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 ?
02-01-2016 09:34 AM
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.
02-09-2016 01:30 AM
Thanks.
I was able to access plots via graph.AllPlots and change visibility and stroke as you said.