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

LineChart: drawing image on nodal points [Dup #624?] #629

Closed
wants to merge 2 commits into from
Closed

LineChart: drawing image on nodal points [Dup #624?] #629

wants to merge 2 commits into from

Conversation

ghost
Copy link

@ghost ghost commented Dec 28, 2015

Sometimes circle in the nodal point is not enough customisation. Here implemented add-on to LineChart renderer which allows to draw custom UIImage instead of (or on top of) circle.

For using: switch DataSet.drawNodalImageEnabled=true, set image by DataSet.nodalImage=UIImage() and that's it. See demo project also.

Anatoly Rosencrantz added 2 commits December 28, 2015 10:02
LineChardRenderer: those images are drawn same way as circles
Fixed: image now is not drawn upside down.
@ghost ghost changed the title Image for nodes on LineChart LineChart: drawing image on nodal points Dec 28, 2015
@danielgindi
Copy link
Collaborator

It seems like both you and @zmchristensen are trying to implement icons (In #624), for different charts.
But the code differs a lot - and we would want a unified way of doing that across all charts.
Is there a chance that you guys will do some more work on merging those two?

@danielgindi danielgindi changed the title LineChart: drawing image on nodal points LineChart: drawing image on nodal points [Dup #624?] Jan 10, 2016
@zmchristensen
Copy link

@danielgindi: between the two implementations, do you have a preference for how icon are drawn?

@danielgindi
Copy link
Collaborator

Not really- it just needs to be consistent as much as it can be with other APIs in the framework

@ghost
Copy link
Author

ghost commented Mar 16, 2016

@zmchristensen finally I've got time to fix this issue. Which of your branches can I merge my changes with? master or chart-icons?

@zmchristensen
Copy link

@AnatolyRosencrantz: The chart-icons branch will be best.

@abjurato
Copy link
Contributor

Feature of this PR is included in #1261

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

Successfully merging this pull request may close these issues.

3 participants