Skip to content

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