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

Custom highlighter/marker #2663

Closed
VanHoutte opened this issue Aug 1, 2017 · 2 comments
Closed

Custom highlighter/marker #2663

VanHoutte opened this issue Aug 1, 2017 · 2 comments

Comments

@VanHoutte
Copy link

Hello

I need to create a linechart with specific design.
screen shot 2017-08-01 at 18 15 53
screen shot 2017-08-01 at 18 15 33

I was able to fix the design for the axis, etc but I'm having trouble on how to achieve the custom highlighter/marker.

Requirements

  • the highlighted value should have a circle on the value
  • the highlighted value should have a line from the value to the bottom
  • when changing the highlighted value, the top half of the highlighter should have a dashed line + a marker on the top of the view indicating it's value.

Any help is welcome!

Kind regards

@liuxuan30
Copy link
Member

liuxuan30 commented Aug 3, 2017

refer

public protocol IMarker: NSObjectProtocol

Write your own marker. You can take a look at how BalloonMarker is implemented.

For the dashed line, one option is override drawHighlightLines() only enable the vertical highlight line and make it dashed above your line. You may need to add more parameters to know the marker position, you should feel comfortable to change the source code if needed

@minhDTN
Copy link

minhDTN commented Jul 23, 2024

@VanHoutte Did you make the tooltip successfully?

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