-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbars.html
More file actions
38 lines (35 loc) · 766 Bytes
/
Copy pathbars.html
File metadata and controls
38 lines (35 loc) · 766 Bytes
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
38
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<script src="https://unpkg.com/rough-viz@1.0.4"></script>
<style>
.wrapper {
display: flex;
flex: wrap;
order: row;
}
</style>
</head>
<body>
<br><br>
<div class="wrapper">
<div id="vis0"></div>
</div>
<script>
new roughViz.Bar(
{
element: '#vis0',
// data: [[1,2], [5, 6], [8,8], [5, 100], [200, 10], [50, 50]],
data: 'https://gist.githubusercontent.com/mbostock/3310560/raw/98311dc46685ed02588afdcb69e5fa296febc1eb/letter-frequency.tsv',
title: 'Letters',
labels: 'letter',
values: 'frequency',
width: window.innerWidth,
stroke: 'coral',
strokeWidth: 3,
color: 'pink',
fillWeight: 1.5,
}
);
</script>
</body>