-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdemo.html
More file actions
38 lines (37 loc) · 1.07 KB
/
demo.html
File metadata and controls
38 lines (37 loc) · 1.07 KB
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>
<html lang="en-us">
<head>
<meta charset="utf-8">
<title>Map list example</title>
<style>
.container {
max-width: 600px;
width: 100%;
}
</style>
</head>
<body>
<div class="container" id="vaginal"></div>
<script src="script.js" charset="utf-8"></script>
<!-- <script src="index.js" charset="utf-8"></script> -->
<script>
var map = TIMEMapList.default("#vaginal", {
data: './data/example/childbirth_allowed_vaginal.csv',
data_field: 'Average',
data_parse_dangerously: true,
tooltip_title: 'Average Price for Vaginal Delivery',
scale: 'ordinal',
width: 600,
headline: 'Average Price for Vaginal Delivery',
intro: '',
source: 'FAIR Health',
sourcelink: 'https://www.fairhealth.org/',
strFormat: (d) => {return `$${Number(d.toFixed(0)).toLocaleString()}`},
legend_domain: ['Top 20%','20%+','40%+', '60%+', 'Bottom 20%'],
sortValues: 'ascending', //Rank most expensive as 1
sortStates: 'ascending', //Show most expensive to least expensive
dc: true
});
</script>
</body>
</html>