Open kamieniarzk opened 3 years ago
@kamieniarzk We recommend overriding the view. Remove the existing one and create a new one.
Okay, in the meantime I have one more issue - when I set up two AnyChartViews in one layout, I cannot get two charts to show - if Iset their height to match_parent then one of them alwasy has height = 0dp like on this screenshot.
The only way I've managed to get both of them to show was by setting layout_height="0dp"
and layout_weight="1"
but in that way they are squashed and you can't really see all the data. Are there some recommendations as to how to make multiple views in a single layout?
@kamieniarzk The only possible solution now is described in the wiki article.
I have a following layout:
And In my Activity I have the following code:
And the button in my layout has an OnClick listener set to the following method
To my surprise, clicking the button does nothing (only initializes the view with the cartesian chart when clicked for the first time, every next click only reloads the view with the cartesian chart)
Am I doing something wrong or is it not possible to change charts on a view? (because I've tried having multiple views in one ConstraintLayout and only one of them was showing)