How to add string labels( xAxis labels) to horizontal bar in Charts framework

后端 未结 4 1230
囚心锁ツ
囚心锁ツ 2020-12-20 07:52

I am using charts framework for drawing charts. I need to add some strings in left of every bars. In my code always there are two bars, one for Income and o

4条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-20 08:22

    Charts framework is a great tool for drawing charts. You should study it perfectly. I used an old code in our project (copy/paste), so it caused some problems for drawing xAxis labels in my chart.

    Just comment below line:

        horizontalBarChartView.xAxis.drawLabelsEnabled = false
    

提交回复
热议问题