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

Unable to Override some properties of LineChartView in Charts version 2.2.5 #1777

Closed
rameswarprasad opened this issue Nov 3, 2016 · 2 comments

Comments

@rameswarprasad
Copy link

Charts Version: 2.2.5

I'm not able to override properties 'noDataText' and 'infoTextColor' of line chart view.

No matter what text color I set, it displays the default text and text color which is 'No chart data available' and 'Orange' color.

@liuxuan30
Copy link
Member

well, you can do anything you like with the library code. This is specifically true since we dropped 2.2.5 support.

@nathanmrtns
Copy link

Just in case somebody still wondering about it. Here is an example:

class CustomBarChartView: BarChartView {
    override var noDataText: String {
        set {
            //Do nothing
        }
        get {
            //note that this will be a global solution for all CustomBarChartView
            return "Your new no data string"
        }
    }
}

And in the storyboard, you set yout view as CustomBarChartView.

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

3 participants