I am trying to achieve the rounded bar chart graph.
this is my code I have tried to achieve this functionality. but it is not working I have tried some links but that does not work. Daniel Chart link
chartView.legend.enabled = true
chartView.chartDescription?.enabled = false
chartView.maxVisibleCount = 100
chartView.drawBarShadowEnabled = false
chartView.drawValueAboveBarEnabled = false
chartView.highlightFullBarEnabled = false
chartView.leftAxis.drawGridLinesEnabled = false
chartView.rightAxis.drawGridLinesEnabled = false
chartView.xAxis.drawGridLinesEnabled = false
chartView.drawGridBackgroundEnabled = false
chartView.leftAxis.enabled = false
chartView.leftAxis.drawAxisLineEnabled = false
chartView.rightAxis.enabled = false
chartView.rightAxis.drawAxisLineEnabled = false
chartView.xAxis.enabled = false
chartView.scaleXEnabled = true
chartView.delegate = self
chartView.dragEnabled = true
chartView.doubleTapToZoomEnabled = false
chartView.pinchZoomEnabled = false
chartView.noDataTextColor = .black
let xAxis = chartView.xAxis
xAxis.labelPosition = .top
chartView.scaleXEnabled = true
let l = chartView.legend
l.horizontalAlignment = .center
l.verticalAlignment = .bottom
l.orientation = .horizontal
l.drawInside = false
l.xEntrySpace = 5
l.yEntrySpace = 2
l.yOffset = 5
l.xOffset = 20

Comments
Post a Comment