Category : mpandroidchart

I was trying to set BarChart according to my spinner selected item, when spinner selected values is Weekly stats then my Barchart xAxis values should set to weekStats Array and my bardataset shows only seven days values in screen and when spinner selected values is Monthly stats then my Barchart xAxis values should set to ..

Read more

I am trying to use the realtime database in a chart but it seems to not be able to convert the values in the database to a float. The code below is how I have the graph set up. Fragment.kt private fun setBarChart() { databaseReference?.addValueEventListener(object : ValueEventListener { override fun onDataChange(snapshot: DataSnapshot) { val testMon ..

Read more