title: How can I draw line chart with json data on Kotlin
body: <p>I try to draw a line chart by using MPAndroid chart with JSON data. I use the MVVM arch. I have more than one fragment and I need to draw on all of them. Actually, I can draw line-chart inside fragments with the data I write manually it. But in my app the data will come from Internet as a JSON form. The line chart is not seen when the fragment is opened firstime. After firstime I mean when i switch pages then line chart is seen on the screen. I want to see line-chart, the fragment is open firstime not later. How can ı do?</p>