-
-
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
Skip Drawing Circles for LineCharts #1795
Comments
Drawing of circles is skipped by providing indexes that should not be drawn. Indexes are set on the dataset and the renderer skips those.
I am not quite clear, why |
Hello. I should have elaborated our use-case more clearly, sorry for the confusion and the late answer. So we are drawing a graph where we just just want to draw some circles, for example maxima, minima, or any point of interest really. Is that sufficient as an explanation? I would also take the time to to implement any suggestion that would get merged and cover our use-case. Or maybe there is already a way in the API to achieve this? |
you can subclass and add circle hole colors and override the render method to feed your color. |
Hey! We have tried it by overriding the render method, but we needed access to internal properties so that didn't work. But we came up with a simpler solution. We just draw two datasets. One with the lines and a second one with the styled circles. Thank you for your time, consider this issue solved. :) |
hmm.. I don't know what are the 'internal' properties, I guess when you want to subclass, using source code is the best option to get rid of the 'internal' issues, and you have the code and know the details. open override func drawExtras(context: CGContext)
{
drawCircles(context: context)
} This is an open func, so you can override it and feed your own |
We have encountered a case were we needed to skip the drawing of circles for a line chart. Just using a different colors for those indexes was not sufficient. The solution is implemented simply by providing an array with indexes, which are skipped in the renderer.
The text was updated successfully, but these errors were encountered: