You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
576 B
40 lines
576 B
# 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>
|
|
```
|