Dynamic Chart #59
-
|
Hello, I am new to programming with kotlin and would like to create a desktop app that displays a graph. It should be possible to update this graph by pressing a button. How do I make this work? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
This is definitely possible but if you are new to programming and to Compose I suggest you first take the time to go through the Compose documentation and tutorials to learn how to make applications that can respond to user input (assuming you have already gone through the Kotlin learning process). Then it is only a matter of changing the state that is used to generate the graph. The PieChart sample is one example of how to change plot properties based on user settings. |
Beta Was this translation helpful? Give feedback.
This is definitely possible but if you are new to programming and to Compose I suggest you first take the time to go through the Compose documentation and tutorials to learn how to make applications that can respond to user input (assuming you have already gone through the Kotlin learning process). Then it is only a matter of changing the state that is used to generate the graph. The PieChart sample is one example of how to change plot properties based on user settings.