-
-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Can't subclass BarChartRenderer due to 'fileprivate' status of many properties #2731
Comments
I am also running into the same issue, I'm trying to subclass It's most likely we have to change the source code, at least for |
@cegiela resolved it just re-declare all the
|
Thanks @seenoevo, but then how do you make an instance of CustomBarChartRenderer with all the required parameters? Did you get that figured out? |
@cegiela I think I realized what you're saying: here's what you do: The
just pass in your
|
I have the same problem
So I copy the whole buffer class in my sub bar chart class
发自我的 iPhone
… 在 2017年8月19日,下午6:28,seenoevo ***@***.***> 写道:
I am also fixing the same issue, I'm trying to subclass BarChartRenderer and override drawValues, but fileprivate class Buffer and fileprivate var _buffers = [Buffer]().
It's most likely we have to change the source at least for BarChartRenderer if we want to subclass it, but I like to hear from @danielgindi @PhilJay @liuxuan30 if there's a better to not touch the source code.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
@aelam yup that is the way to do it since it's declared as |
|
Thank you for your work on this -- I'd like to customize the appearance of the bars, but can't do it by subclassing the renderer cleanly. It has to be initialized with things that are unavailable to me unless I subclass them and their dependancies, and on it goes. I'd like to just feed the existing properties on BarChartView back into the initialization of the renderer. On a broader note: Really almost all properties should be open in open-source software.
The text was updated successfully, but these errors were encountered: