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

Plot labels #143

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Plot labels #143

wants to merge 3 commits into from

Conversation

weiran
Copy link

@weiran weiran commented Jul 14, 2018

Added a new type of label anchored to plot points.

The text and visibility are configured with two new methods in ScrollableGraphViewDataSource:

  • plotLabel(shouldShowPlotLabel plot: Plot, atIndex pointIndex: Int)
  • plotLabel(forPlot plot: Plot, atIndex pointIndex: Int) -> String?

Label style and position is configured with three new properties on Plot:

  • labelFont: UIFont
  • labelColor: UIColor
  • labelVerticalOffset: CGFloat

Example:
screen shot 2018-07-14 at 13 56 41

@dromerobarria
Copy link

Hi, what happend with this?

@weiran
Copy link
Author

weiran commented Jan 25, 2019

It's available on my fork, looks like the owner of this project has abandoned it so don't hold your breath waiting on this getting merged.

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.

2 participants