html
html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<!DOCTYPE html>
<html>
<head>
<title>Temperature in San Francisco Line Chart</title>
<link rel="stylesheet" href="style.css">
<script src="https://unpkg.com/d3@5.6.0/dist/d3.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/d3/4.1.1/d3.min.js"></script>
<script src="https://unpkg.com/d3@5.9.2/dist/d3.min.js"></script>
</head>
<body>
<svg id="example" width="960" height="500"></svg>
<script src="bundle.js"></script>
<script>
(function (d3) {
'use strict';
const svg = d3.select('svg');
const width = +svg.attr('width');
const height = +svg.attr('height');
const render = data => {
const title = 'A Week in San Francisco';
const xValue = d => d.timestamp;
const xAxisLabel = 'Time';
Enter to Rename, Shift+Enter to Preview
css
css
1
2
3
body {
}
Enter to Rename, Shift+Enter to Preview
js
js
1
Enter to Rename, Shift+Enter to Preview
BROWSER
Console
Run