-
-
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
Expose chartYMin and chartYMax to rendererDelegates #64
Comments
There are delegates for all the values the this renderer requires |
Exactly, the values THIS renderer requires. However, for people like me who need to adapt this library heavily (in this case subclassing the BarChartRenderer), it would be nice to have ALL the delegate methods we have in the Android version as well. Given that this library is a port of MPAndroidCharts, keeping the APIs as close together as possible should really be a priority in order to make it as versatile as the Android version. |
Okay, I agree :) The APIs are kept close, but in android there's the interface which is בתאריך יום שלישי, 5 במאי 2015, AlBirdie notifications@github.com כתב:
|
Yes, I've seen the differences in the implementations and adding the "missing" delegate methods is quite a lot to write, so I appreciate your work here! On a side note, how do you feel about a pull request regarding an Open-High-Low-Close, and a step chart (both are very common finance chart types)? I've made such a request on MPAndroidCharts a couple of weeks ago but since it hasn't been pulled yet (not sure if Philipp is even considering it), I'm not sure if it would make sense to include it into iOSCharts. |
It takes time to review PRs, make sure they match with code styling, i have no objections to PRs, and the moment I get to review it and possibly בתאריך יום שלישי, 5 במאי 2015, AlBirdie notifications@github.com כתב:
|
I don't blame him either (not the slightest bit). |
Anyway, it's done! |
Perfect. Thanks a lot Daniel! |
:-) |
Hey @AlBirdie, How's the pull request for the OHLC chart coming? Looking forward to it in ios-charts. |
Sorry @winsonlim, currently don't have the time to create a pull request for this, but if you want to give it a try, this is the rendering code for the OHLC renderer. The remaining stuff is pretty much identical to the CandleStick renderer. internal func drawDataSet(#context: CGContext, dataSet: OHLCChartDataSet)
|
hi @danielgindi , But at this time I am facing a problem and want to your suggestion/help. Please give me any suggestion. thanks |
Like in the Android version, yMin and yMax values of any given chart should be accessible using the corresponding renderer's delegate.
For instance, in BarChartRendererDelegate we need to add;
The text was updated successfully, but these errors were encountered: