CodePudding user response:
Val yCharDatas=ArrayList()//server access Y data
Val yValues=ArrayList()//MPChart required Y data format list
For (I in 0 until yCharDatas. Size) {
YValues. Add (Entry (i.t oFloat (), yCharDatas [I]))
}
Kotlin wrote
CodePudding user response:
Val yCharDatas=ArrayList()//server access Y data
Val yValues=ArrayList()//MPChart required Y data format list
For (I in 0 until yCharDatas. Size) {
YValues. Add (Entry (i.t oFloat (), yCharDatas [I]))
}