Kerast
Kerast

Reputation: 13

How can I change dynamicaly the opacity of a linegraph in D3?

I'm using the Dynamic Data Display Library in WPF. I have my LineGraph linked to my chartplotter. I can see it in the plotter when I launch the application.

I want to know if it's possible to change the opacity of that linegraph while the application is running.

Upvotes: 1

Views: 126

Answers (1)

Jean Col
Jean Col

Reputation: 552

Yes you can, for example, you can use a slider. When the user move the slider, it changes the opacity of the linegraph (with an event, binding...) :

line.LinePen.Opacity = slider.Value;

Upvotes: 1

Related Questions