Skip to content

Commit 0decffb

Browse files
committed
updates some links
1 parent b912459 commit 0decffb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+51585
-44268
lines changed

ADV 2025/1/ADBF/area-spec.json

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
{
2+
"$schema": "https://vega.github.io/schema/vega-lite/v5.json",
3+
"width": 600,
4+
"height": 300,
5+
"background": "#2d2d2d",
6+
"data": {
7+
"url": "eu_gdp_data.json",
8+
"format": {"type": "json", "property": "data"}
9+
},
10+
"config": {
11+
"font": "Roboto, sans-serif",
12+
"axis": {
13+
"labelFont": "Roboto, sans-serif",
14+
"titleFont": "Roboto, sans-serif",
15+
"gridColor": "#eee",
16+
"labelColor": "#7f8c8d",
17+
"titleColor": "#2c3e50"
18+
},
19+
"legend": {
20+
"labelFont": "Roboto, sans-serif",
21+
"titleFont": "Roboto, sans-serif",
22+
"labelColor": "#7f8c8d",
23+
"titleColor": "#2c3e50"
24+
}
25+
},
26+
"mark": {
27+
"type": "area",
28+
"opacity": 0.6
29+
},
30+
"encoding": {
31+
"x": {
32+
"field": "year",
33+
"type": "ordinal",
34+
"axis": {
35+
"labelColor": "#e0e0e0",
36+
"titleColor": "#e0e0e0"
37+
}
38+
},
39+
"y": {
40+
"field": "gdp_per_capita",
41+
"type": "quantitative",
42+
"title": "GDP per Capita (USD)",
43+
"axis": {
44+
"labelColor": "#e0e0e0",
45+
"titleColor": "#e0e0e0",
46+
"gridColor": "#404040"
47+
}
48+
},
49+
"color": {
50+
"field": "country",
51+
"type": "nominal",
52+
"scale": {
53+
"range": ["#3498db", "#e74c3c", "#2ecc71", "#f1c40f"]
54+
},
55+
"legend": {
56+
"labelColor": "#e0e0e0",
57+
"titleColor": "#e0e0e0"
58+
}
59+
},
60+
"tooltip": [
61+
{"field": "country", "type": "nominal"},
62+
{"field": "year", "type": "temporal"},
63+
{"field": "gdp_per_capita", "type": "quantitative", "format": ",.0f"}
64+
]
65+
}
66+
}

ADV 2025/1/ADBF/bar-spec.json

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
{
2+
"$schema": "https://vega.github.io/schema/vega-lite/v5.json",
3+
"width": 600,
4+
"height": 300,
5+
"background": "#2d2d2d",
6+
"data": {
7+
"url": "eu_gdp_data.json",
8+
"format": {"type": "json", "property": "data"}
9+
},
10+
"config": {
11+
"font": "Roboto, sans-serif",
12+
"axis": {
13+
"labelFont": "Roboto, sans-serif",
14+
"titleFont": "Roboto, sans-serif",
15+
"gridColor": "#eee",
16+
"labelColor": "#7f8c8d",
17+
"titleColor": "#2c3e50"
18+
},
19+
"legend": {
20+
"labelFont": "Roboto, sans-serif",
21+
"titleFont": "Roboto, sans-serif",
22+
"labelColor": "#7f8c8d",
23+
"titleColor": "#2c3e50"
24+
}
25+
},
26+
"mark": {
27+
"type": "bar"
28+
},
29+
"encoding": {
30+
"x": {
31+
"field": "year",
32+
"type": "ordinal",
33+
"axis": {
34+
"labelColor": "#e0e0e0",
35+
"titleColor": "#e0e0e0"
36+
}
37+
},
38+
"y": {
39+
"field": "gdp_per_capita",
40+
"type": "quantitative",
41+
"title": "GDP per Capita (USD)",
42+
"axis": {
43+
"labelColor": "#e0e0e0",
44+
"titleColor": "#e0e0e0",
45+
"gridColor": "#404040"
46+
}
47+
},
48+
"color": {
49+
"field": "country",
50+
"type": "nominal",
51+
"scale": {
52+
"range": ["#3498db", "#e74c3c", "#2ecc71", "#f1c40f"]
53+
},
54+
"legend": {
55+
"labelColor": "#e0e0e0",
56+
"titleColor": "#e0e0e0"
57+
}
58+
},
59+
"xOffset": {"field": "country"},
60+
"tooltip": [
61+
{"field": "country", "type": "nominal"},
62+
{"field": "year", "type": "temporal"},
63+
{"field": "gdp_per_capita", "type": "quantitative", "format": ",.0f"}
64+
]
65+
}
66+
}

ADV 2025/1/ADBF/chart-spec.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"$schema": "https://vega.github.io/schema/vega-lite/v5.json",
3+
"data": {
4+
"values": [
5+
{"category": "A", "value": 4},
6+
{"category": "B", "value": 7},
7+
{"category": "C", "value": 2},
8+
{"category": "D", "value": 9},
9+
{"category": "E", "value": 5}
10+
]
11+
},
12+
"mark": "bar",
13+
"encoding": {
14+
"x": {"field": "category", "type": "nominal"},
15+
"y": {"field": "value", "type": "quantitative"}
16+
}
17+
}

ADV 2025/1/ADBF/eu_gdp_data.json

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
"data": [
3+
{"country": "Germany", "year": 2014, "gdp_per_capita": 47959},
4+
{"country": "Germany", "year": 2015, "gdp_per_capita": 48219},
5+
{"country": "Germany", "year": 2016, "gdp_per_capita": 48729},
6+
{"country": "Germany", "year": 2017, "gdp_per_capita": 49921},
7+
{"country": "Germany", "year": 2018, "gdp_per_capita": 51548},
8+
{"country": "Germany", "year": 2019, "gdp_per_capita": 52943},
9+
{"country": "Germany", "year": 2020, "gdp_per_capita": 51133},
10+
{"country": "Germany", "year": 2021, "gdp_per_capita": 52825},
11+
{"country": "Germany", "year": 2022, "gdp_per_capita": 54076},
12+
{"country": "Germany", "year": 2023, "gdp_per_capita": 54801},
13+
14+
{"country": "France", "year": 2014, "gdp_per_capita": 42955},
15+
{"country": "France", "year": 2015, "gdp_per_capita": 43219},
16+
{"country": "France", "year": 2016, "gdp_per_capita": 43729},
17+
{"country": "France", "year": 2017, "gdp_per_capita": 44921},
18+
{"country": "France", "year": 2018, "gdp_per_capita": 46548},
19+
{"country": "France", "year": 2019, "gdp_per_capita": 47943},
20+
{"country": "France", "year": 2020, "gdp_per_capita": 45133},
21+
{"country": "France", "year": 2021, "gdp_per_capita": 47825},
22+
{"country": "France", "year": 2022, "gdp_per_capita": 49076},
23+
{"country": "France", "year": 2023, "gdp_per_capita": 49801},
24+
25+
{"country": "Ireland", "year": 2014, "gdp_per_capita": 55959},
26+
{"country": "Ireland", "year": 2015, "gdp_per_capita": 61219},
27+
{"country": "Ireland", "year": 2016, "gdp_per_capita": 64729},
28+
{"country": "Ireland", "year": 2017, "gdp_per_capita": 69921},
29+
{"country": "Ireland", "year": 2018, "gdp_per_capita": 74548},
30+
{"country": "Ireland", "year": 2019, "gdp_per_capita": 78943},
31+
{"country": "Ireland", "year": 2020, "gdp_per_capita": 77133},
32+
{"country": "Ireland", "year": 2021, "gdp_per_capita": 85825},
33+
{"country": "Ireland", "year": 2022, "gdp_per_capita": 89076},
34+
{"country": "Ireland", "year": 2023, "gdp_per_capita": 92801},
35+
36+
{"country": "Spain", "year": 2014, "gdp_per_capita": 29959},
37+
{"country": "Spain", "year": 2015, "gdp_per_capita": 30219},
38+
{"country": "Spain", "year": 2016, "gdp_per_capita": 31729},
39+
{"country": "Spain", "year": 2017, "gdp_per_capita": 32921},
40+
{"country": "Spain", "year": 2018, "gdp_per_capita": 33548},
41+
{"country": "Spain", "year": 2019, "gdp_per_capita": 34943},
42+
{"country": "Spain", "year": 2020, "gdp_per_capita": 31133},
43+
{"country": "Spain", "year": 2021, "gdp_per_capita": 33825},
44+
{"country": "Spain", "year": 2022, "gdp_per_capita": 34076},
45+
{"country": "Spain", "year": 2023, "gdp_per_capita": 34801}
46+
]
47+
}

ADV 2025/1/ADBF/heatmap-spec.json

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
{
2+
"$schema": "https://vega.github.io/schema/vega-lite/v5.json",
3+
"width": 600,
4+
"height": 300,
5+
"background": "#2d2d2d",
6+
"data": {
7+
"url": "eu_gdp_data.json",
8+
"format": {"type": "json", "property": "data"}
9+
},
10+
"config": {
11+
"font": "Roboto, sans-serif",
12+
"axis": {
13+
"labelFont": "Roboto, sans-serif",
14+
"titleFont": "Roboto, sans-serif",
15+
"gridColor": "#eee",
16+
"labelColor": "#7f8c8d",
17+
"titleColor": "#2c3e50"
18+
},
19+
"legend": {
20+
"labelFont": "Roboto, sans-serif",
21+
"titleFont": "Roboto, sans-serif",
22+
"labelColor": "#7f8c8d",
23+
"titleColor": "#2c3e50"
24+
}
25+
},
26+
"mark": "rect",
27+
"encoding": {
28+
"x": {
29+
"field": "year",
30+
"type": "ordinal",
31+
"axis": {
32+
"labelColor": "#e0e0e0",
33+
"titleColor": "#e0e0e0"
34+
}
35+
},
36+
"y": {
37+
"field": "country",
38+
"type": "nominal",
39+
"axis": {
40+
"labelColor": "#e0e0e0",
41+
"titleColor": "#e0e0e0"
42+
}
43+
},
44+
"color": {
45+
"field": "gdp_per_capita",
46+
"type": "quantitative",
47+
"title": "GDP per Capita (USD)",
48+
"scale": {
49+
"scheme": "viridis"
50+
},
51+
"legend": {
52+
"labelColor": "#e0e0e0",
53+
"titleColor": "#e0e0e0"
54+
}
55+
},
56+
"tooltip": [
57+
{"field": "country", "type": "nominal"},
58+
{"field": "year", "type": "temporal"},
59+
{"field": "gdp_per_capita", "type": "quantitative", "format": ",.0f"}
60+
]
61+
}
62+
}

ADV 2025/1/ADBF/index-1.html

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
<!DOCTYPE html>
2+
<html>
3+
4+
<head>
5+
<script src="https://cdn.jsdelivr.net/npm/vega@5"></script>
6+
<script src="https://cdn.jsdelivr.net/npm/vega-lite@5"></script>
7+
<script src="https://cdn.jsdelivr.net/npm/vega-embed@6"></script>
8+
<style>
9+
/* CTRL + K */
10+
/* BARMIT KOMMENT CTRL + / */
11+
body {
12+
background: #2b0303;
13+
color: #fff;
14+
}
15+
div {
16+
border: 1px solid #fff;
17+
padding: 10px;
18+
margin: 10px;
19+
}
20+
.o1 {
21+
background: red;
22+
color: #fff;
23+
}
24+
#vis4 {
25+
background: blue;
26+
}
27+
</style>
28+
29+
</head>
30+
31+
<body>
32+
<div id="vis3">
33+
<div id="a45">
34+
ADHello world2
35+
</div>
36+
<div id="b56" class="o1">
37+
Hedsdsllo world2
38+
</div>
39+
<div id="b57" class="o1">
40+
<b>Hedsdsllo world2</b>
41+
</div>
42+
</div>
43+
<div id="vis4">
44+
Hello world2
45+
</div>
46+
<div id="vis">
47+
</div>
48+
49+
50+
<script>
51+
fetch('chart-spec.json')
52+
.then(response => response.json())
53+
.then(spec => vegaEmbed('#vis', spec));
54+
</script>
55+
</body>
56+
57+
</html>

0 commit comments

Comments
 (0)