We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BarChartData(xVals: dataPoints, dataSet: chartDataSet)
The text was updated successfully, but these errors were encountered:
found the way thanks
Sorry, something went wrong.
@Aungbandlab what is the way?
let labels = ["Label 1", "Label 2"] chartView.xAxis.valueFormatter = DefaultAxisValueFormatter { return labels[Int($0)] }
@fnk0
// MARK: axisFormatDelegate extension StackBarChartCell: IValueFormatter {
func stringForValue(_ value: Double, entry: ChartDataEntry, dataSetIndex: Int, viewPortHandler: ViewPortHandler?) -> String { return String(format: "%.0f", value) }
}
No branches or pull requests
BarChartData(xVals: dataPoints, dataSet: chartDataSet)
The text was updated successfully, but these errors were encountered: