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

Delegate ChartValueSelected Not Called. #2057

Closed
iAviatorJose opened this issue Jan 10, 2017 · 2 comments
Closed

Delegate ChartValueSelected Not Called. #2057

iAviatorJose opened this issue Jan 10, 2017 · 2 comments

Comments

@iAviatorJose
Copy link

iAviatorJose commented Jan 10, 2017

Hiee @danielgindi

I am using swift 2.2.
on selecting bar in bar chart, chartValueSelected: not called.

I have the following config of barChartView.

        barChartView.pinchZoomEnabled = false
        barChartView.dragEnabled = false
        barChartView.setScaleEnabled(false)
        
        barChartView.xAxis.labelPosition = ChartXAxis.LabelPosition.Bottom
        barChartView.xAxis.labelTextColor = UIColor.whiteColor()
        barChartView.xAxis.axisLineColor = UIColor.whiteColor()
        barChartView.leftAxis.axisMinValue = 0
        barChartView.leftAxis.axisLineColor = UIColor.getAppColor()
        barChartView.leftAxis.removeAllLimitLines()
        barChartView.leftAxis.drawZeroLineEnabled = false
        barChartView.leftAxis.drawLimitLinesBehindDataEnabled = true
        barChartView.leftAxis.labelTextColor = UIColor.whiteColor()
        barChartView.rightAxis.enabled = false
        barChartView.extraBottomOffset = 10.0
        barChartView.extraRightOffset = 10.0
        barChartView.highlightPerTapEnabled = false
        barChartView.drawGridBackgroundEnabled = false
        barChartView.xAxis.drawGridLinesEnabled = false
        barChartView.leftAxis.drawGridLinesEnabled = false
        barChartView.descriptionText = ""
        barChartView.delegate = self

Anything thats wrong with the above config.

@liuxuan30
Copy link
Member

liuxuan30 commented Jan 11, 2017

why you set barChartView.highlightPerTapEnabled = false?

@iAviatorJose
Copy link
Author

thank you

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