A powerful 🚀 Android chart view / graph view library, supporting line- bar- pie- radar- bubble- and candlestick charts as well as scaling, panning and animations.
Other
37.6k
stars
9.02k
forks
source link
I want to divide the color of the circle on the linechart but it's not working well. Where is the error in my code? #5269
Hello everyone, I want to divide the color of the circle on the linechart but it's not working well. Where is the error in my code?
Code
private fun showLineChart(listSugar: List) {
val bloodsugar = ArrayList()
var count = 0F
for (item in listSugar) {
bloodsugar.add(Entry(count, item.sugar_level!!.toFloat()))
count += 1F
}
Hello everyone, I want to divide the color of the circle on the linechart but it's not working well. Where is the error in my code?
Code private fun showLineChart(listSugar: List) {
val bloodsugar = ArrayList()
var count = 0F
for (item in listSugar) {
bloodsugar.add(Entry(count, item.sugar_level!!.toFloat()))
count += 1F
}
it should be like this