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

BarChartView highlight issues #2014

Closed
CoderZyc opened this issue Dec 28, 2016 · 8 comments
Closed

BarChartView highlight issues #2014

CoderZyc opened this issue Dec 28, 2016 · 8 comments

Comments

@CoderZyc
Copy link

It's able to tap the bar area only to highlight it?

@liuxuan30
Copy link
Member

I don't understand, tap will only highlight it for sure by default.. if you don't add marker.

@CoderZyc
Copy link
Author

Yes, i add marker to show something when tap the bar,so it can't tap the bar area only to highlight it?

@liuxuan30
Copy link
Member

liuxuan30 commented Dec 29, 2016

If you don't enable the marker, it will just highlight the bar, is this what are you asking? Adding marker and highlight will render marker as well.

@CoderZyc
Copy link
Author

Oh,sorry,i mean to show the marker.It's able to tap the bar area only to show it?

@liuxuan30
Copy link
Member

try dataSet.highlightEnabled = false

@CoderZyc
Copy link
Author

Thanks,and i have more question. the CombinedChartView can display the line behind the bar?

@liuxuan30
Copy link
Member

    /// the order in which the provided data objects should be drawn.
    /// The earlier you place them in the provided array, the further they will be in the background. 
    /// e.g. if you provide [DrawOrder.Bar, DrawOrder.Line], the bars will be drawn behind the lines.
    open var drawOrder: [Int]
    {
        get
        {
            return (renderer as! CombinedChartRenderer!).drawOrder.map { $0.rawValue }
        }
        set
        {
            (renderer as! CombinedChartRenderer!).drawOrder = newValue.map { DrawOrder(rawValue: $0)! }
        }
    }

please learn to dig info from the code. It's quite obvious if you look at the code.

@CoderZyc
Copy link
Author

Thank you very much!

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

2 participants