Hello, If anyone is familiar with using AChartEngi...
# android
i
Hello, If anyone is familiar with using AChartEngine in their android projects, I would appreciate your help in trying to get a line of code to work. I am currently following this tutorial and I am stuck on the part wherein we create the View. I don't really know how to change this line to Kotlin and if I just pasted the line as is (in Java), Android Studio does not offer to translate the code for me. Any advice would be helpful, let me know if more information is needed
🙌 1
c
What's the line that you're stuck with?
i
GraphicalView chartView = ChartFactory.getLineChartView(getActivity(), dataset, mRenderer);
c
val chartView = ChartFactory.getLineChartView(getActivity(), dataset, mRenderer)
is the correct Kotlin syntax (you might need imports)