Skip to content

Commit

Permalink
Fix usage list in README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
philackm committed Feb 19, 2016
1 parent 3b28c8e commit cb234e8
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,17 +46,17 @@ An adaptive scrollable graph view for iOS to visualise simple discrete datasets.
1. Add [GraphView.swift](graphview_example/GraphView/GraphView.swift) to your project in Xcode

2. Create a GraphView instance and set the data and labels
```swift
let graphView = GraphView(frame: someFrame)
let data = [4, 8, 15, 16, 23, 42]
let labels = ["one", "two", "three", "four", "five", "six"]
graphView.setData(data, withLabels: labels)
```
```swift
let graphView = GraphView(frame: someFrame)
let data = [4, 8, 15, 16, 23, 42]
let labels = ["one", "two", "three", "four", "five", "six"]
graphView.setData(data, withLabels: labels)
```

3. Add the GraphView to the view hierarchy.
```swift
someViewController.view.addSubview(graphView)
```
```swift
someViewController.view.addSubview(graphView)
```

### Things you *could* use it for:

Expand Down

0 comments on commit cb234e8

Please sign in to comment.