plotters-iced icon indicating copy to clipboard operation
plotters-iced copied to clipboard

State?

Open rscarson opened this issue 1 year ago • 1 comments

The state parameter of build_chart does not appear to do anything (state always has the value of State::default) - and none of the example show it's use (_state in every single example)

Does that parameter work?

rscarson avatar Oct 03 '24 15:10 rscarson

The state parameter of build_chart does not appear to do anything (state always has the value of State::default) - and none of the example show it's use (_state in every single example)

Does that parameter work?

It should work, but its usage is limited. The widget tree will have the ownership of the state, you cannot update the state directly, unless you are handling UI events.

Joylei avatar Oct 05 '24 15:10 Joylei