You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
you could change the source code or override chart legend implementation to whatever you like.
To me, simply use your wanted strings as the x values will be good to go as you could see the legend shows the same thing as your x values
I want to show value like this
currently by default i have this kind of screen
my code is like this
let pieChart:PieChartView = PieChartView(frame: CGRectMake(0, CGFloat(y), (self.view.frame.width/1.3), (self.view.frame.width/1.3)))
pieChart.center=CGPointMake(UIScreen.mainScreen().bounds.width/2, UIScreen.mainScreen().bounds.height - (self.view.frame.width/1.6))
pieChart.descriptionText = ".="
pieChart.usePercentValuesEnabled = false
pieChart.drawHoleEnabled=true
pieChart.holeTransparent = true
pieChart.rotationAngle = 0.0
pieChart.rotationEnabled = true
pieChart.legend.enabled = true
pieChart.animate(xAxisDuration: 1.5, yAxisDuration: 1.5, easingOption: ChartEasingOption.EaseOutBack)
myview.addSubview(pieChart)
let pcDatapoints = [pc2Labels[0] as! String,pc2Labels[1] as! String,pc2Labels[2] as! String,pc2Labels[3] as! String]
let legend:ChartLegend = pieChart.legend
legend.position = ChartLegend.ChartLegendPosition.RightOfChartInside
The text was updated successfully, but these errors were encountered: