FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
code-guild/code-guild/javascript/d3/loading.html at master · grantholly/code-guild · GitHub
grantholly
code-guild
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
code-guild
/
code-guild
/
javascript
/
d3
/
loading.html
Copy path
More file actions
More file actions
Latest commit
History
History
History
37 lines (32 loc) · 953 Bytes
Breadcrumbs
code-guild
/
code-guild
/
javascript
/
d3
/
loading.html
Copy path
File metadata and controls
37 lines (32 loc) · 953 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
29
30
31
32
33
34
35
36
37
<!DOCTYPE html
>
<
html
>
<
head
lang
="
en
"
>
<
meta
charset
="
UTF-8
"
>
<
script
src
="
http://d3js.org/d3.v3.min.js
"
>
</
script
>
<
title
>
</
title
>
</
head
>
<
body
>
<
script
>
d3
.
json
(
"mydata.json"
,
function
(
data
)
{
var
canvas
=
d3
.
select
(
"body"
)
.
append
(
svg
)
.
attr
(
"width"
,
500
)
.
attr
(
"height"
,
500
)
canvas
.
selectAll
(
"rect"
)
.
data
(
data
)
.
enter
(
)
.
append
(
"rect"
)
.
attr
(
"width"
,
function
(
d
)
{
return
d
.
age
*
10
;
}
)
.
attr
(
"height"
,
48
)
.
attr
(
"y"
,
function
(
d
,
i
)
{
return
i
*
50
;
}
)
.
attr
(
"fill"
,
"blue"
)
canvas
.
selectAll
(
"text"
)
.
data
(
data
)
.
enter
(
)
.
append
(
"text"
)
.
attr
(
"fill"
,
"white"
)
.
attr
(
"y"
,
function
(
d
,
i
)
{
return
i
*
50
+
24
;
}
)
.
text
(
function
(
d
)
{
return
d
.
name
;
}
)
;
}
)
</
script
>
</
body
>
</
html
>
Back
|
FazBrowse Home
|
New Git URL