Skip to content
New issue

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

BarChart.Axis label change starting index when .rightAxix is enabled #2602

Closed
perwyl opened this issue Jul 13, 2017 · 1 comment
Closed

BarChart.Axis label change starting index when .rightAxix is enabled #2602

perwyl opened this issue Jul 13, 2017 · 1 comment

Comments

@perwyl
Copy link

perwyl commented Jul 13, 2017

screen shot 2017-07-13 at 13 22 07

Are there any settings that I might miss out to start the index (display xAxis from the right)from the right? I want to display the most recent date (right most). Right now it's generating the xAxis's label list base on the left value.

        // Y-axis settings
        let leftAxis = chartView.leftAxis
        leftAxis.drawGridLinesEnabled = false
        leftAxis.drawLabelsEnabled = false
        leftAxis.drawAxisLineEnabled = false
        leftAxis.axisMinimum = 0

        let rightAxis = chartView.rightAxis
        rightAxis.drawLabelsEnabled = true
        rightAxis.drawGridLinesEnabled = true
        rightAxis.drawAxisLineEnabled = false
@perwyl
Copy link
Author

perwyl commented Jul 13, 2017

solve with IAxisValueFormatter. return " " for those dates i wish to hide and set the labelCount to the total [].count

@perwyl perwyl closed this as completed Jul 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant