parent
8a82a26b52
commit
1bc0e468ec
@ -1 +1,39 @@
|
||||
# D3 Build
|
||||
|
||||
## Lesson Objectives
|
||||
|
||||
1. Add link to d3 library
|
||||
|
||||
## Add link to d3 library
|
||||
|
||||
First thing we want to do is create basic `index.html` file:
|
||||
|
||||
```html
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title></title>
|
||||
</head>
|
||||
<body>
|
||||
</body>
|
||||
</html>
|
||||
```
|
||||
|
||||
Now add a link D3:
|
||||
|
||||
```html
|
||||
<script src="https://d3js.org/d3.v4.min.js"></script>
|
||||
```
|
||||
|
||||
Now create `app.js`, which will store all of our code:
|
||||
|
||||
```javascript
|
||||
console.log('this works');
|
||||
```
|
||||
|
||||
and link to it in `index.html`:
|
||||
|
||||
```html
|
||||
<script src="app.js" charset="utf-8"></script>
|
||||
```
|
||||
|
||||
Loading…
Reference in new issue