|
|
|
|
@ -50,16 +50,18 @@ d3.selectAll('div').html('<span>hi</span>'); //change the inner html of an eleme
|
|
|
|
|
d3.selectAll('div').html('hi'); //set the content of the selection to the exact text (no html)
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Request
|
|
|
|
|
## AJAX
|
|
|
|
|
|
|
|
|
|
AJAX funcions look
|
|
|
|
|
Named based off of what kind of data they accept
|
|
|
|
|
|
|
|
|
|
- `d3.json('path', function(error, data){});`
|
|
|
|
|
- `d3.csv('path', function(error, data){});`
|
|
|
|
|
- `d3.text('path', function(error, data){});`
|
|
|
|
|
- `d3.html('path', function(error, data){});`
|
|
|
|
|
- `d3.tsv('path', function(error, data){});`
|
|
|
|
|
- `d3.xml('path', function(error, data){});`
|
|
|
|
|
```javascript
|
|
|
|
|
d3.json('path', function(error, data){});
|
|
|
|
|
d3.csv('path', function(error, data){});
|
|
|
|
|
d3.tsv('path', function(error, data){});
|
|
|
|
|
d3.xml('path', function(error, data){});
|
|
|
|
|
d3.html('path', function(error, data){});
|
|
|
|
|
d3.text('path', function(error, data){});
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Data binding
|
|
|
|
|
|
|
|
|
|
|