Open weiran opened 6 years ago
Added a new type of label anchored to plot points.
The text and visibility are configured with two new methods in ScrollableGraphViewDataSource:
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:
Plot
labelFont: UIFont
labelColor: UIColor
labelVerticalOffset: CGFloat
Example:
Hi, what happend with this?
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.
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: