Skip to content

Commit 4bd1cd5

Browse files
committed
Update readme with new code/images
1 parent cbc5ae8 commit 4bd1cd5

File tree

12 files changed

+411
-199
lines changed

12 files changed

+411
-199
lines changed

README.md

Lines changed: 403 additions & 194 deletions
Large diffs are not rendered by default.

examples.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Applications Using This Component
2+
3+
- ApplicationName - http://url.to.app

graphview_example_code/GraphView/ViewController.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,13 +107,13 @@ class ViewController: UIViewController, ScrollableGraphViewDataSource {
107107
// min: 0
108108
// max: 100
109109
fileprivate func createSimpleGraph(_ frame: CGRect) -> ScrollableGraphView {
110-
let linePlot = LinePlot(identifier: "simple")
111-
let referenceLines = ReferenceLines()
112110

113-
// Compose the graph view by creating a graph, then adding the plot, followed by adding the reference lines.
111+
// Compose the graph view by creating a graph, then adding any plots
112+
// and reference lines before adding the graph to the view hierarchy.
114113
let graphView = ScrollableGraphView(frame: frame, dataSource: self)
115-
graphView.shouldAnimateOnStartup = false
116-
114+
115+
let linePlot = LinePlot(identifier: "simple") // Identifier should be unique for each plot.
116+
let referenceLines = ReferenceLines()
117117

118118
graphView.addPlot(plot: linePlot)
119119
graphView.addReferenceLines(referenceLines: referenceLines)

readme_images/dynamic-reload.gif

1.33 MB
Loading
35.3 KB
Loading

readme_images/gallery-v4/dot.png

37.1 KB
Loading
93.6 KB
Loading
61.8 KB
Loading
85.3 KB
Loading
96.8 KB
Loading

0 commit comments

Comments
 (0)