Closed awindHydro closed 5 years ago
Read more information on containers and fixed this issue.
The same question :)
Same question.. still doesn't work..
Hello, if someone is reading this. Here is the answer: @awindHydro was right to close this issue..
Make a container inside of the chart and then put the button inside of that container and then set the valign to top and it should work!
For example:
let ButtonContainer = chartHolder.plotContainer.CreateChild(am4core.Container)
buttonContainer.align = "right" // or "left"
buttonContainer.valign = "top" // or "bottom"
let myActualButton = buttonContainer.createChild(am4core.Button)
I'm attempting to create a button to give the user to click and switch between different styles but when I create the button it appears at the button of the chart I would like to align it to the top right. I followed the documentation and set align, valign = "right", "top" respectively but no difference is shown.
Also could I be pointed towards how I could make this button into a drop down menu
This is what I've written so far