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] single dataSet + force groupSpace=0.8 leads to wrong xAxis label rendering and highlight #284

Closed
liuxuan30 opened this issue Aug 8, 2015 · 1 comment

Comments

@liuxuan30
Copy link
Member

Bar chart with single dataSet and force groupSpace to be 0.8 will leads to strange behavior for xAxis label rendering and highlight when scaleX > 1.0.

To reproduce, simply return a number say 0.8 for groupSpace, like below, and zoom in and scroll, you will see some xAxis label disappeared, and highlighting also highlight wrong bar.

    /// The spacing is relative to a full bar width
    public var groupSpace: CGFloat
    {
        get
        {
            if (_dataSets.count <= 1)
            {
                return 0.8
            }
            return _groupSpace
        }
        set
        {
            _groupSpace = newValue
        }
    }

I am not sure if it's intended to return groupSpace 0.0 for single dataSet. It seems like we don't want to support groupSpace for single dataSet?

@liuxuan30
Copy link
Member Author

Closing as with single dataSet we should use barSpace directly.

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