Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- web/AntV G2/bar/chart_0110_bar.html +90 -0
- web/AntV G2/bar/chart_0111_bar.html +78 -0
- web/AntV G2/bar/chart_0112_bar.html +88 -0
- web/AntV G2/bar/chart_0113_bar.html +88 -0
- web/AntV G2/bar/chart_0114_bar.html +76 -0
- web/AntV G2/bar/chart_0115_bar.html +75 -0
- web/AntV G2/bar/chart_0116_bar.html +71 -0
- web/AntV G2/bar/chart_0117_bar.html +119 -0
- web/AntV G2/bar/chart_0118_bar.html +74 -0
- web/AntV G2/bar/chart_0119_bar.html +84 -0
- web/AntV G2/bar/chart_0120_bar.html +86 -0
- web/AntV G2/bar/chart_0121_bar.html +85 -0
- web/AntV G2/bar/chart_0122_bar.html +109 -0
- web/AntV G2/bar/chart_0123_bar.html +81 -0
- web/AntV G2/bar/chart_0124_bar.html +79 -0
- web/AntV G2/bar/chart_0125_bar.html +81 -0
- web/AntV G2/bar/chart_0126_bar.html +87 -0
- web/AntV G2/bar/chart_0127_bar.html +76 -0
- web/AntV G2/bar/chart_0128_bar.html +300 -0
- web/AntV G2/bar/g2.min.js +0 -0
- web/AntV G2/bar/weblink.txt +19 -0
- web/AntV G2/box/chart_0058_box.html +89 -0
- web/AntV G2/box/chart_0059_box.html +155 -0
- web/AntV G2/box/chart_0060_box.html +624 -0
- web/AntV G2/box/chart_0061_box.html +656 -0
- web/AntV G2/box/chart_0062_box.html +154 -0
- web/AntV G2/box/chart_0063_box.html +621 -0
- web/AntV G2/box/chart_0064_box.html +93 -0
- web/AntV G2/box/chart_0065_box.html +3130 -0
- web/AntV G2/box/chart_0066_box.html +154 -0
- web/AntV G2/box/chart_0067_box.html +156 -0
- web/AntV G2/box/g2.min.js +0 -0
- web/AntV G2/box/weblink.txt +10 -0
- web/AntV G2/heatmap/chart_0052_heatmap.html +0 -0
- web/AntV G2/heatmap/chart_0053_heatmap.html +74 -0
- web/AntV G2/heatmap/chart_0054_heatmap.html +0 -0
- web/AntV G2/heatmap/chart_0055_heatmap.html +79 -0
- web/AntV G2/heatmap/chart_0056_heatmap.html +76 -0
- web/AntV G2/heatmap/chart_0057_heatmap.html +76 -0
- web/AntV G2/heatmap/chart_0058_heatmap.html +0 -0
- web/AntV G2/heatmap/chart_0059_heatmap.html +0 -0
- web/AntV G2/heatmap/chart_0060_heatmap.html +100 -0
- web/AntV G2/heatmap/g2.min.js +0 -0
- web/AntV G2/heatmap/weblink.txt +9 -0
- web/AntV G2/line/chart_0129_line.html +88 -0
- web/AntV G2/line/chart_0130_line.html +98 -0
- web/AntV G2/line/chart_0131_line.html +72 -0
- web/AntV G2/line/chart_0132_line.html +77 -0
- web/AntV G2/line/chart_0133_line.html +84 -0
- web/AntV G2/line/chart_0134_line.html +0 -0
web/AntV G2/bar/chart_0110_bar.html
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!doctype html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="utf-8" />
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
| 6 |
+
<title>简单柱形图</title>
|
| 7 |
+
<style>
|
| 8 |
+
html, body {
|
| 9 |
+
margin: 0;
|
| 10 |
+
padding: 0;
|
| 11 |
+
width: 100%;
|
| 12 |
+
min-height: 100%;
|
| 13 |
+
font-family: Arial, sans-serif;
|
| 14 |
+
background: #ffffff;
|
| 15 |
+
}
|
| 16 |
+
.chart-container {
|
| 17 |
+
width: 100%;
|
| 18 |
+
height: 100vh;
|
| 19 |
+
}
|
| 20 |
+
</style>
|
| 21 |
+
<script src="./g2.min.js"></script>
|
| 22 |
+
</head>
|
| 23 |
+
<body>
|
| 24 |
+
<div id="container" class="chart-container"></div>
|
| 25 |
+
<script>
|
| 26 |
+
(async () => {
|
| 27 |
+
const __seedStart = 3311550756;
|
| 28 |
+
let __seed = __seedStart;
|
| 29 |
+
const __originalMathRandom = Math.random;
|
| 30 |
+
function __seededRandom() {
|
| 31 |
+
__seed = (__seed * 1664525 + 1013904223) >>> 0;
|
| 32 |
+
return __seed / 4294967296;
|
| 33 |
+
}
|
| 34 |
+
Math.random = __seededRandom;
|
| 35 |
+
try {
|
| 36 |
+
const { Chart } = G2;
|
| 37 |
+
|
| 38 |
+
const data = [
|
| 39 |
+
{ letter: 'A', frequency: 0.08167 },
|
| 40 |
+
{ letter: 'B', frequency: 0.01492 },
|
| 41 |
+
{ letter: 'C', frequency: 0.02782 },
|
| 42 |
+
{ letter: 'D', frequency: 0.04253 },
|
| 43 |
+
{ letter: 'E', frequency: 0.12702 },
|
| 44 |
+
{ letter: 'F', frequency: 0.02288 },
|
| 45 |
+
{ letter: 'G', frequency: 0.02015 },
|
| 46 |
+
{ letter: 'H', frequency: 0.06094 },
|
| 47 |
+
{ letter: 'I', frequency: 0.06966 },
|
| 48 |
+
{ letter: 'J', frequency: 0.00153 },
|
| 49 |
+
{ letter: 'K', frequency: 0.00772 },
|
| 50 |
+
{ letter: 'L', frequency: 0.04025 },
|
| 51 |
+
{ letter: 'M', frequency: 0.02406 },
|
| 52 |
+
{ letter: 'N', frequency: 0.06749 },
|
| 53 |
+
{ letter: 'O', frequency: 0.07507 },
|
| 54 |
+
{ letter: 'P', frequency: 0.01929 },
|
| 55 |
+
{ letter: 'Q', frequency: 0.00095 },
|
| 56 |
+
{ letter: 'R', frequency: 0.05987 },
|
| 57 |
+
{ letter: 'S', frequency: 0.06327 },
|
| 58 |
+
{ letter: 'T', frequency: 0.09056 },
|
| 59 |
+
{ letter: 'U', frequency: 0.02758 },
|
| 60 |
+
{ letter: 'V', frequency: 0.00978 },
|
| 61 |
+
{ letter: 'W', frequency: 0.0236 },
|
| 62 |
+
{ letter: 'X', frequency: 0.0015 },
|
| 63 |
+
{ letter: 'Y', frequency: 0.01974 },
|
| 64 |
+
{ letter: 'Z', frequency: 0.00074 },
|
| 65 |
+
];
|
| 66 |
+
const chart = new Chart({
|
| 67 |
+
container: 'container',
|
| 68 |
+
autoFit: true,
|
| 69 |
+
});
|
| 70 |
+
|
| 71 |
+
chart.interval().data(data).encode('x', 'letter').encode('y', 'frequency');
|
| 72 |
+
|
| 73 |
+
chart.render();
|
| 74 |
+
} catch (error) {
|
| 75 |
+
console.error(error);
|
| 76 |
+
const pre = document.createElement('pre');
|
| 77 |
+
pre.style.whiteSpace = 'pre-wrap';
|
| 78 |
+
pre.style.padding = '12px';
|
| 79 |
+
pre.style.margin = '12px';
|
| 80 |
+
pre.style.border = '1px solid #ddd';
|
| 81 |
+
pre.textContent = String(error && error.stack ? error.stack : error);
|
| 82 |
+
document.body.appendChild(pre);
|
| 83 |
+
} finally {
|
| 84 |
+
Math.random = __originalMathRandom;
|
| 85 |
+
}
|
| 86 |
+
})();
|
| 87 |
+
</script>
|
| 88 |
+
<!-- source: https://g2.antv.antgroup.com/examples/general/interval/#bar-basic -->
|
| 89 |
+
</body>
|
| 90 |
+
</html>
|
web/AntV G2/bar/chart_0111_bar.html
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!doctype html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="utf-8" />
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
| 6 |
+
<title>简单条形图</title>
|
| 7 |
+
<style>
|
| 8 |
+
html, body {
|
| 9 |
+
margin: 0;
|
| 10 |
+
padding: 0;
|
| 11 |
+
width: 100%;
|
| 12 |
+
min-height: 100%;
|
| 13 |
+
font-family: Arial, sans-serif;
|
| 14 |
+
background: #ffffff;
|
| 15 |
+
}
|
| 16 |
+
.chart-container {
|
| 17 |
+
width: 100%;
|
| 18 |
+
height: 100vh;
|
| 19 |
+
}
|
| 20 |
+
</style>
|
| 21 |
+
<script src="./g2.min.js"></script>
|
| 22 |
+
</head>
|
| 23 |
+
<body>
|
| 24 |
+
<div id="container" class="chart-container"></div>
|
| 25 |
+
<script>
|
| 26 |
+
(async () => {
|
| 27 |
+
const __seedStart = 1571327509;
|
| 28 |
+
let __seed = __seedStart;
|
| 29 |
+
const __originalMathRandom = Math.random;
|
| 30 |
+
function __seededRandom() {
|
| 31 |
+
__seed = (__seed * 1664525 + 1013904223) >>> 0;
|
| 32 |
+
return __seed / 4294967296;
|
| 33 |
+
}
|
| 34 |
+
Math.random = __seededRandom;
|
| 35 |
+
try {
|
| 36 |
+
const { Chart } = G2;
|
| 37 |
+
|
| 38 |
+
const data = [
|
| 39 |
+
{ year: '1951 年', sales: 38 },
|
| 40 |
+
{ year: '1952 年', sales: 52 },
|
| 41 |
+
{ year: '1956 年', sales: 61 },
|
| 42 |
+
{ year: '1957 年', sales: 145 },
|
| 43 |
+
{ year: '1958 年', sales: 48 },
|
| 44 |
+
{ year: '1959 年', sales: 38 },
|
| 45 |
+
{ year: '1960 年', sales: 38 },
|
| 46 |
+
{ year: '1962 年', sales: 38 },
|
| 47 |
+
];
|
| 48 |
+
|
| 49 |
+
const chart = new Chart({
|
| 50 |
+
container: 'container',
|
| 51 |
+
autoFit: true,
|
| 52 |
+
});
|
| 53 |
+
|
| 54 |
+
chart
|
| 55 |
+
.interval()
|
| 56 |
+
.coordinate({ transform: [{ type: 'transpose' }] })
|
| 57 |
+
.data(data)
|
| 58 |
+
.encode('x', 'year')
|
| 59 |
+
.encode('y', 'sales');
|
| 60 |
+
|
| 61 |
+
chart.render();
|
| 62 |
+
} catch (error) {
|
| 63 |
+
console.error(error);
|
| 64 |
+
const pre = document.createElement('pre');
|
| 65 |
+
pre.style.whiteSpace = 'pre-wrap';
|
| 66 |
+
pre.style.padding = '12px';
|
| 67 |
+
pre.style.margin = '12px';
|
| 68 |
+
pre.style.border = '1px solid #ddd';
|
| 69 |
+
pre.textContent = String(error && error.stack ? error.stack : error);
|
| 70 |
+
document.body.appendChild(pre);
|
| 71 |
+
} finally {
|
| 72 |
+
Math.random = __originalMathRandom;
|
| 73 |
+
}
|
| 74 |
+
})();
|
| 75 |
+
</script>
|
| 76 |
+
<!-- source: https://g2.antv.antgroup.com/examples/general/interval/#bar-basic-transposed -->
|
| 77 |
+
</body>
|
| 78 |
+
</html>
|
web/AntV G2/bar/chart_0112_bar.html
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!doctype html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="utf-8" />
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
| 6 |
+
<title>简单堆叠柱形图</title>
|
| 7 |
+
<style>
|
| 8 |
+
html, body {
|
| 9 |
+
margin: 0;
|
| 10 |
+
padding: 0;
|
| 11 |
+
width: 100%;
|
| 12 |
+
min-height: 100%;
|
| 13 |
+
font-family: Arial, sans-serif;
|
| 14 |
+
background: #ffffff;
|
| 15 |
+
}
|
| 16 |
+
.chart-container {
|
| 17 |
+
width: 100%;
|
| 18 |
+
height: 100vh;
|
| 19 |
+
}
|
| 20 |
+
</style>
|
| 21 |
+
<script src="./g2.min.js"></script>
|
| 22 |
+
</head>
|
| 23 |
+
<body>
|
| 24 |
+
<div id="container" class="chart-container"></div>
|
| 25 |
+
<script>
|
| 26 |
+
(async () => {
|
| 27 |
+
const __seedStart = 4171634961;
|
| 28 |
+
let __seed = __seedStart;
|
| 29 |
+
const __originalMathRandom = Math.random;
|
| 30 |
+
function __seededRandom() {
|
| 31 |
+
__seed = (__seed * 1664525 + 1013904223) >>> 0;
|
| 32 |
+
return __seed / 4294967296;
|
| 33 |
+
}
|
| 34 |
+
Math.random = __seededRandom;
|
| 35 |
+
try {
|
| 36 |
+
const { Chart } = G2;
|
| 37 |
+
|
| 38 |
+
const data = [
|
| 39 |
+
{ name: 'London', 月份: 'Jan.', 月均降雨量: 18.9 },
|
| 40 |
+
{ name: 'London', 月份: 'Feb.', 月均降雨量: 28.8 },
|
| 41 |
+
{ name: 'London', 月份: 'Mar.', 月均降雨量: 39.3 },
|
| 42 |
+
{ name: 'London', 月份: 'Apr.', 月均降雨量: 81.4 },
|
| 43 |
+
{ name: 'London', 月份: 'May', 月均降雨量: 47 },
|
| 44 |
+
{ name: 'London', 月份: 'Jun.', 月均降雨量: 20.3 },
|
| 45 |
+
{ name: 'London', 月份: 'Jul.', 月均降雨量: 24 },
|
| 46 |
+
{ name: 'London', 月份: 'Aug.', 月均降雨量: 35.6 },
|
| 47 |
+
{ name: 'Berlin', 月份: 'Jan.', 月均降雨量: 12.4 },
|
| 48 |
+
{ name: 'Berlin', 月份: 'Feb.', 月均降雨量: 23.2 },
|
| 49 |
+
{ name: 'Berlin', 月份: 'Mar.', 月均降雨量: 34.5 },
|
| 50 |
+
{ name: 'Berlin', 月份: 'Apr.', 月均降雨量: 99.7 },
|
| 51 |
+
{ name: 'Berlin', 月份: 'May', 月均降雨量: 52.6 },
|
| 52 |
+
{ name: 'Berlin', 月份: 'Jun.', 月均降雨量: 35.5 },
|
| 53 |
+
{ name: 'Berlin', 月份: 'Jul.', 月均降雨量: 37.4 },
|
| 54 |
+
{ name: 'Berlin', 月份: 'Aug.', 月均降雨量: 42.4 },
|
| 55 |
+
];
|
| 56 |
+
|
| 57 |
+
const chart = new Chart({
|
| 58 |
+
container: 'container',
|
| 59 |
+
autoFit: true,
|
| 60 |
+
});
|
| 61 |
+
|
| 62 |
+
chart
|
| 63 |
+
.interval()
|
| 64 |
+
.data(data)
|
| 65 |
+
.encode('x', '月份')
|
| 66 |
+
.encode('y', '月均降雨量')
|
| 67 |
+
.encode('color', 'name')
|
| 68 |
+
.transform({ type: 'stackY' })
|
| 69 |
+
.interaction('elementHighlight', { background: true });
|
| 70 |
+
|
| 71 |
+
chart.render();
|
| 72 |
+
} catch (error) {
|
| 73 |
+
console.error(error);
|
| 74 |
+
const pre = document.createElement('pre');
|
| 75 |
+
pre.style.whiteSpace = 'pre-wrap';
|
| 76 |
+
pre.style.padding = '12px';
|
| 77 |
+
pre.style.margin = '12px';
|
| 78 |
+
pre.style.border = '1px solid #ddd';
|
| 79 |
+
pre.textContent = String(error && error.stack ? error.stack : error);
|
| 80 |
+
document.body.appendChild(pre);
|
| 81 |
+
} finally {
|
| 82 |
+
Math.random = __originalMathRandom;
|
| 83 |
+
}
|
| 84 |
+
})();
|
| 85 |
+
</script>
|
| 86 |
+
<!-- source: https://g2.antv.antgroup.com/examples/general/interval/#bar-basic-stacked -->
|
| 87 |
+
</body>
|
| 88 |
+
</html>
|
web/AntV G2/bar/chart_0113_bar.html
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!doctype html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="utf-8" />
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
| 6 |
+
<title>简单分组柱形图</title>
|
| 7 |
+
<style>
|
| 8 |
+
html, body {
|
| 9 |
+
margin: 0;
|
| 10 |
+
padding: 0;
|
| 11 |
+
width: 100%;
|
| 12 |
+
min-height: 100%;
|
| 13 |
+
font-family: Arial, sans-serif;
|
| 14 |
+
background: #ffffff;
|
| 15 |
+
}
|
| 16 |
+
.chart-container {
|
| 17 |
+
width: 100%;
|
| 18 |
+
height: 100vh;
|
| 19 |
+
}
|
| 20 |
+
</style>
|
| 21 |
+
<script src="./g2.min.js"></script>
|
| 22 |
+
</head>
|
| 23 |
+
<body>
|
| 24 |
+
<div id="container" class="chart-container"></div>
|
| 25 |
+
<script>
|
| 26 |
+
(async () => {
|
| 27 |
+
const __seedStart = 2052348156;
|
| 28 |
+
let __seed = __seedStart;
|
| 29 |
+
const __originalMathRandom = Math.random;
|
| 30 |
+
function __seededRandom() {
|
| 31 |
+
__seed = (__seed * 1664525 + 1013904223) >>> 0;
|
| 32 |
+
return __seed / 4294967296;
|
| 33 |
+
}
|
| 34 |
+
Math.random = __seededRandom;
|
| 35 |
+
try {
|
| 36 |
+
const { Chart } = G2;
|
| 37 |
+
|
| 38 |
+
const data = [
|
| 39 |
+
{ name: 'London', 月份: 'Jan.', 月均降雨量: 18.9 },
|
| 40 |
+
{ name: 'London', 月份: 'Feb.', 月均降雨量: 28.8 },
|
| 41 |
+
{ name: 'London', 月份: 'Mar.', 月均降雨量: 39.3 },
|
| 42 |
+
{ name: 'London', 月份: 'Apr.', 月均降雨量: 81.4 },
|
| 43 |
+
{ name: 'London', 月份: 'May', 月均降雨量: 47 },
|
| 44 |
+
{ name: 'London', 月份: 'Jun.', 月均降雨量: 20.3 },
|
| 45 |
+
{ name: 'London', 月份: 'Jul.', 月均降雨量: 24 },
|
| 46 |
+
{ name: 'London', 月份: 'Aug.', 月均降雨量: 35.6 },
|
| 47 |
+
{ name: 'Berlin', 月份: 'Jan.', 月均降雨量: 12.4 },
|
| 48 |
+
{ name: 'Berlin', 月份: 'Feb.', 月均降雨量: 23.2 },
|
| 49 |
+
{ name: 'Berlin', 月份: 'Mar.', 月均降雨量: 34.5 },
|
| 50 |
+
{ name: 'Berlin', 月份: 'Apr.', 月均降雨量: 99.7 },
|
| 51 |
+
{ name: 'Berlin', 月份: 'May', 月均降雨量: 52.6 },
|
| 52 |
+
{ name: 'Berlin', 月份: 'Jun.', 月均降雨量: 35.5 },
|
| 53 |
+
{ name: 'Berlin', 月份: 'Jul.', 月均降雨量: 37.4 },
|
| 54 |
+
{ name: 'Berlin', 月份: 'Aug.', 月均降雨量: 42.4 },
|
| 55 |
+
];
|
| 56 |
+
|
| 57 |
+
const chart = new Chart({
|
| 58 |
+
container: 'container',
|
| 59 |
+
autoFit: true,
|
| 60 |
+
});
|
| 61 |
+
|
| 62 |
+
chart
|
| 63 |
+
.interval()
|
| 64 |
+
.data(data)
|
| 65 |
+
.encode('x', '月份')
|
| 66 |
+
.encode('y', '月均降雨量')
|
| 67 |
+
.encode('color', 'name')
|
| 68 |
+
.transform({ type: 'dodgeX' })
|
| 69 |
+
.interaction('elementHighlight', { background: true });
|
| 70 |
+
|
| 71 |
+
chart.render();
|
| 72 |
+
} catch (error) {
|
| 73 |
+
console.error(error);
|
| 74 |
+
const pre = document.createElement('pre');
|
| 75 |
+
pre.style.whiteSpace = 'pre-wrap';
|
| 76 |
+
pre.style.padding = '12px';
|
| 77 |
+
pre.style.margin = '12px';
|
| 78 |
+
pre.style.border = '1px solid #ddd';
|
| 79 |
+
pre.textContent = String(error && error.stack ? error.stack : error);
|
| 80 |
+
document.body.appendChild(pre);
|
| 81 |
+
} finally {
|
| 82 |
+
Math.random = __originalMathRandom;
|
| 83 |
+
}
|
| 84 |
+
})();
|
| 85 |
+
</script>
|
| 86 |
+
<!-- source: https://g2.antv.antgroup.com/examples/general/interval/#bar-basic-grouped -->
|
| 87 |
+
</body>
|
| 88 |
+
</html>
|
web/AntV G2/bar/chart_0114_bar.html
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!doctype html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="utf-8" />
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
| 6 |
+
<title>可交互柱形图</title>
|
| 7 |
+
<style>
|
| 8 |
+
html, body {
|
| 9 |
+
margin: 0;
|
| 10 |
+
padding: 0;
|
| 11 |
+
width: 100%;
|
| 12 |
+
min-height: 100%;
|
| 13 |
+
font-family: Arial, sans-serif;
|
| 14 |
+
background: #ffffff;
|
| 15 |
+
}
|
| 16 |
+
.chart-container {
|
| 17 |
+
width: 100%;
|
| 18 |
+
height: 100vh;
|
| 19 |
+
}
|
| 20 |
+
</style>
|
| 21 |
+
<script src="./g2.min.js"></script>
|
| 22 |
+
</head>
|
| 23 |
+
<body>
|
| 24 |
+
<div id="container" class="chart-container"></div>
|
| 25 |
+
<script>
|
| 26 |
+
(async () => {
|
| 27 |
+
const __seedStart = 3223403271;
|
| 28 |
+
let __seed = __seedStart;
|
| 29 |
+
const __originalMathRandom = Math.random;
|
| 30 |
+
function __seededRandom() {
|
| 31 |
+
__seed = (__seed * 1664525 + 1013904223) >>> 0;
|
| 32 |
+
return __seed / 4294967296;
|
| 33 |
+
}
|
| 34 |
+
Math.random = __seededRandom;
|
| 35 |
+
try {
|
| 36 |
+
const { Chart } = G2;
|
| 37 |
+
const __embeddedData0 = [{"letter":"A","frequency":0.08167},{"letter":"B","frequency":0.01492},{"letter":"C","frequency":0.02782},{"letter":"D","frequency":0.04253},{"letter":"E","frequency":0.12702},{"letter":"F","frequency":0.02288},{"letter":"G","frequency":0.02015},{"letter":"H","frequency":0.06094},{"letter":"I","frequency":0.06966},{"letter":"J","frequency":0.00153},{"letter":"K","frequency":0.00772},{"letter":"L","frequency":0.04025},{"letter":"M","frequency":0.02406},{"letter":"N","frequency":0.06749},{"letter":"O","frequency":0.07507},{"letter":"P","frequency":0.01929},{"letter":"Q","frequency":0.00095},{"letter":"R","frequency":0.05987},{"letter":"S","frequency":0.06327},{"letter":"T","frequency":0.09056},{"letter":"U","frequency":0.02758},{"letter":"V","frequency":0.00978},{"letter":"W","frequency":0.0236},{"letter":"X","frequency":0.0015},{"letter":"Y","frequency":0.01974},{"letter":"Z","frequency":0.00074}];
|
| 38 |
+
/**
|
| 39 |
+
* A recreation of this demo: https://observablehq.com/@d3/bar-chart
|
| 40 |
+
*/
|
| 41 |
+
|
| 42 |
+
const chart = new Chart({
|
| 43 |
+
container: 'container',
|
| 44 |
+
autoFit: true,
|
| 45 |
+
});
|
| 46 |
+
|
| 47 |
+
chart
|
| 48 |
+
.interval()
|
| 49 |
+
.data({
|
| 50 |
+
value: __embeddedData0,
|
| 51 |
+
})
|
| 52 |
+
.encode('x', 'letter')
|
| 53 |
+
.encode('y', 'frequency')
|
| 54 |
+
.axis('y', { labelFormatter: '.0%' })
|
| 55 |
+
.state('selected', { fill: '#1783FF', stroke: 'black', strokeWidth: 1 })
|
| 56 |
+
.state('unselected', { fill: '#ccc' })
|
| 57 |
+
.interaction('elementSelect'); // 设置高亮交互;
|
| 58 |
+
|
| 59 |
+
chart.render();
|
| 60 |
+
} catch (error) {
|
| 61 |
+
console.error(error);
|
| 62 |
+
const pre = document.createElement('pre');
|
| 63 |
+
pre.style.whiteSpace = 'pre-wrap';
|
| 64 |
+
pre.style.padding = '12px';
|
| 65 |
+
pre.style.margin = '12px';
|
| 66 |
+
pre.style.border = '1px solid #ddd';
|
| 67 |
+
pre.textContent = String(error && error.stack ? error.stack : error);
|
| 68 |
+
document.body.appendChild(pre);
|
| 69 |
+
} finally {
|
| 70 |
+
Math.random = __originalMathRandom;
|
| 71 |
+
}
|
| 72 |
+
})();
|
| 73 |
+
</script>
|
| 74 |
+
<!-- source: https://g2.antv.antgroup.com/examples/general/interval/#column-interactive -->
|
| 75 |
+
</body>
|
| 76 |
+
</html>
|
web/AntV G2/bar/chart_0115_bar.html
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!doctype html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="utf-8" />
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
| 6 |
+
<title>可变宽度条形图</title>
|
| 7 |
+
<style>
|
| 8 |
+
html, body {
|
| 9 |
+
margin: 0;
|
| 10 |
+
padding: 0;
|
| 11 |
+
width: 100%;
|
| 12 |
+
min-height: 100%;
|
| 13 |
+
font-family: Arial, sans-serif;
|
| 14 |
+
background: #ffffff;
|
| 15 |
+
}
|
| 16 |
+
.chart-container {
|
| 17 |
+
width: 100%;
|
| 18 |
+
height: 100vh;
|
| 19 |
+
}
|
| 20 |
+
</style>
|
| 21 |
+
<script src="./g2.min.js"></script>
|
| 22 |
+
</head>
|
| 23 |
+
<body>
|
| 24 |
+
<div id="container" class="chart-container"></div>
|
| 25 |
+
<script>
|
| 26 |
+
(async () => {
|
| 27 |
+
const __seedStart = 1079629111;
|
| 28 |
+
let __seed = __seedStart;
|
| 29 |
+
const __originalMathRandom = Math.random;
|
| 30 |
+
function __seededRandom() {
|
| 31 |
+
__seed = (__seed * 1664525 + 1013904223) >>> 0;
|
| 32 |
+
return __seed / 4294967296;
|
| 33 |
+
}
|
| 34 |
+
Math.random = __seededRandom;
|
| 35 |
+
try {
|
| 36 |
+
const { Chart } = G2;
|
| 37 |
+
const __embeddedData0 = [{"country":"挪威","value":50.2,"gdp":335504},{"country":"丹麦","value":42,"gdp":277339},{"country":"比利时","value":39.2,"gdp":421611},{"country":"瑞典","value":38,"gdp":462057},{"country":"法国","value":35.6,"gdp":2228857},{"country":"荷兰","value":34.3,"gdp":702641},{"country":"芬兰","value":33.2,"gdp":215615},{"country":"德国","value":33,"gdp":3144050},{"country":"奥地利","value":32.7,"gdp":349344},{"country":"爱尔兰","value":30.4,"gdp":275567},{"country":"意大利","value":27.8,"gdp":1672438},{"country":"英国","value":26.7,"gdp":2366911},{"country":"西班牙","value":21.3,"gdp":1113851},{"country":"希腊","value":14.2,"gdp":175887},{"country":"葡萄牙","value":13.7,"gdp":184933},{"country":"捷克共和国","value":10.2,"gdp":176564},{"country":"波兰","value":8.6,"gdp":424269},{"country":"罗马尼亚","value":5.5,"gdp":169578}];
|
| 38 |
+
|
| 39 |
+
const chart = new Chart({
|
| 40 |
+
container: 'container',
|
| 41 |
+
autoFit: true,
|
| 42 |
+
});
|
| 43 |
+
|
| 44 |
+
chart
|
| 45 |
+
.interval()
|
| 46 |
+
.data({
|
| 47 |
+
value: __embeddedData0,
|
| 48 |
+
})
|
| 49 |
+
.encode('x', 'country')
|
| 50 |
+
.encode('y', 'value')
|
| 51 |
+
.encode('color', 'country')
|
| 52 |
+
.encode('size', 'gdp')
|
| 53 |
+
.scale('size', { range: [10, 60] })
|
| 54 |
+
.legend('size', false)
|
| 55 |
+
.axis('y', { labelFormatter: '~s' })
|
| 56 |
+
.tooltip(['value', 'gdp']);
|
| 57 |
+
|
| 58 |
+
chart.render();
|
| 59 |
+
} catch (error) {
|
| 60 |
+
console.error(error);
|
| 61 |
+
const pre = document.createElement('pre');
|
| 62 |
+
pre.style.whiteSpace = 'pre-wrap';
|
| 63 |
+
pre.style.padding = '12px';
|
| 64 |
+
pre.style.margin = '12px';
|
| 65 |
+
pre.style.border = '1px solid #ddd';
|
| 66 |
+
pre.textContent = String(error && error.stack ? error.stack : error);
|
| 67 |
+
document.body.appendChild(pre);
|
| 68 |
+
} finally {
|
| 69 |
+
Math.random = __originalMathRandom;
|
| 70 |
+
}
|
| 71 |
+
})();
|
| 72 |
+
</script>
|
| 73 |
+
<!-- source: https://g2.antv.antgroup.com/examples/general/interval/#bar-var-width -->
|
| 74 |
+
</body>
|
| 75 |
+
</html>
|
web/AntV G2/bar/chart_0116_bar.html
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!doctype html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="utf-8" />
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
| 6 |
+
<title>限制高度的柱形图</title>
|
| 7 |
+
<style>
|
| 8 |
+
html, body {
|
| 9 |
+
margin: 0;
|
| 10 |
+
padding: 0;
|
| 11 |
+
width: 100%;
|
| 12 |
+
min-height: 100%;
|
| 13 |
+
font-family: Arial, sans-serif;
|
| 14 |
+
background: #ffffff;
|
| 15 |
+
}
|
| 16 |
+
.chart-container {
|
| 17 |
+
width: 100%;
|
| 18 |
+
height: 100vh;
|
| 19 |
+
}
|
| 20 |
+
</style>
|
| 21 |
+
<script src="./g2.min.js"></script>
|
| 22 |
+
</head>
|
| 23 |
+
<body>
|
| 24 |
+
<div id="container" class="chart-container"></div>
|
| 25 |
+
<script>
|
| 26 |
+
(async () => {
|
| 27 |
+
const __seedStart = 2515499696;
|
| 28 |
+
let __seed = __seedStart;
|
| 29 |
+
const __originalMathRandom = Math.random;
|
| 30 |
+
function __seededRandom() {
|
| 31 |
+
__seed = (__seed * 1664525 + 1013904223) >>> 0;
|
| 32 |
+
return __seed / 4294967296;
|
| 33 |
+
}
|
| 34 |
+
Math.random = __seededRandom;
|
| 35 |
+
try {
|
| 36 |
+
const { Chart } = G2;
|
| 37 |
+
|
| 38 |
+
const chart = new Chart({ container: 'container', autoFit: true });
|
| 39 |
+
|
| 40 |
+
chart
|
| 41 |
+
.interval()
|
| 42 |
+
.data([
|
| 43 |
+
{ genre: 'Sports', sold: 80 },
|
| 44 |
+
{ genre: 'Strategy', sold: 115 },
|
| 45 |
+
{ genre: 'Action', sold: 120 },
|
| 46 |
+
{ genre: 'Shooter', sold: 350 },
|
| 47 |
+
{ genre: 'Other', sold: 150 },
|
| 48 |
+
])
|
| 49 |
+
.encode('x', 'genre')
|
| 50 |
+
.encode('y', 'sold')
|
| 51 |
+
.encode('color', 'genre')
|
| 52 |
+
.style('minHeight', 50);
|
| 53 |
+
|
| 54 |
+
chart.render();
|
| 55 |
+
} catch (error) {
|
| 56 |
+
console.error(error);
|
| 57 |
+
const pre = document.createElement('pre');
|
| 58 |
+
pre.style.whiteSpace = 'pre-wrap';
|
| 59 |
+
pre.style.padding = '12px';
|
| 60 |
+
pre.style.margin = '12px';
|
| 61 |
+
pre.style.border = '1px solid #ddd';
|
| 62 |
+
pre.textContent = String(error && error.stack ? error.stack : error);
|
| 63 |
+
document.body.appendChild(pre);
|
| 64 |
+
} finally {
|
| 65 |
+
Math.random = __originalMathRandom;
|
| 66 |
+
}
|
| 67 |
+
})();
|
| 68 |
+
</script>
|
| 69 |
+
<!-- source: https://g2.antv.antgroup.com/examples/general/interval/#column-min-height -->
|
| 70 |
+
</body>
|
| 71 |
+
</html>
|
web/AntV G2/bar/chart_0117_bar.html
ADDED
|
@@ -0,0 +1,119 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!doctype html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="utf-8" />
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
| 6 |
+
<title>Apple 活动图</title>
|
| 7 |
+
<style>
|
| 8 |
+
html, body {
|
| 9 |
+
margin: 0;
|
| 10 |
+
padding: 0;
|
| 11 |
+
width: 100%;
|
| 12 |
+
min-height: 100%;
|
| 13 |
+
font-family: Arial, sans-serif;
|
| 14 |
+
background: #ffffff;
|
| 15 |
+
}
|
| 16 |
+
.chart-container {
|
| 17 |
+
width: 100%;
|
| 18 |
+
height: 100vh;
|
| 19 |
+
}
|
| 20 |
+
</style>
|
| 21 |
+
<script src="./g2.min.js"></script>
|
| 22 |
+
</head>
|
| 23 |
+
<body>
|
| 24 |
+
<div id="container" class="chart-container"></div>
|
| 25 |
+
<script>
|
| 26 |
+
(async () => {
|
| 27 |
+
const __seedStart = 1725960959;
|
| 28 |
+
let __seed = __seedStart;
|
| 29 |
+
const __originalMathRandom = Math.random;
|
| 30 |
+
function __seededRandom() {
|
| 31 |
+
__seed = (__seed * 1664525 + 1013904223) >>> 0;
|
| 32 |
+
return __seed / 4294967296;
|
| 33 |
+
}
|
| 34 |
+
Math.random = __seededRandom;
|
| 35 |
+
try {
|
| 36 |
+
const { Chart } = G2;
|
| 37 |
+
|
| 38 |
+
const chart = new Chart({
|
| 39 |
+
container: 'container',
|
| 40 |
+
autoFit: true,
|
| 41 |
+
});
|
| 42 |
+
|
| 43 |
+
chart
|
| 44 |
+
.data([
|
| 45 |
+
{
|
| 46 |
+
name: 'activity1',
|
| 47 |
+
percent: 0.6,
|
| 48 |
+
color: '#1ad5de',
|
| 49 |
+
icon: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAAtCAYAAAGMmpigAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAOKADAAQAAAABAAAALQAAAAClV3ChAAAFXElEQVRoBe1aTWhcVRTOvFRTGtMUkiKxiy4UJJKfRYSIIsaNFhUqgdSFVbSuXCi4kFbaRSQIxaIilCy0BUFdaEKw/qFujAUNAVNMJhBLFVRspSEKLU11YjLj973OuZy57747771MbQrz4OXee853fu//mzQ0qKe3t3eHajYE0ujq6iqtra39jvIHoYVMMubn53Mk5nK57WwLwJQ20ag1CFXxMg2uu7v7XdMoV0IntC1xjPyADHjYwwYZGkha+LiIXoe8zNAhUc0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+qg2RMbiaHMVI+n8LaIV5+V1RWVl4VAmjl2rYfeG8YA/hre9DLq3FLS4u8dkwPM5LoN2RlZS2Ul2Sl4Z9WlrJGv4HP/ZzXOYWUYzm3nvd17IcjmkFeodPr6+v3YWCqS3MbzsmfNo6qccLHg7Ls7ksU54fwXNvLNpvBWoxyNwe/gcnx06yzT+0cVXwfAfkKXGDwccyziVjeoH5GEHI4cBjyCYaGifoYxzb6J3FOeNb78TpGZp+7ps6FwVS7WBjPgPAYKi9UnoaBh+W/GYKcE0J4wv5bSTaRqdxipCoitcAyiCRhGImTx4fn0am/TaQ/9f8AlUuAwv0GNPoAAAAASUVORK5CYII=',
|
| 56 |
+
},
|
| 57 |
+
{
|
| 58 |
+
name: 'activity3',
|
| 59 |
+
percent: 0.3,
|
| 60 |
+
color: '#e90b3a',
|
| 61 |
+
icon: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAAtCAYAAAGMmpigAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAOKADAAQAAAABAAAALQAAAAClV3ChAAAFUklEQVRoBe2aXWgcVRTHk2xJrEEXTPygFUWo0EA+xOBDErSIUgpi8CERoX4URaqi+IGligh5KAq+qaCiYB/si24siPigCAaqaMAImwRMsQ9FLIpNwHwYTWKy/s6SM5y5M7MzuzNm98GFzbnn3PP1v/fcuffOpqmpmk93d3eJ712RNqIgnc3yp6en51SpVDos7diPWgYUIzsCmq4g1lIVdomlMq6Xcufs7GwZknQC6w9g/eAqlvkoL5HKGHzsdnqh3A7La6T29vb85OTkkvR5hn19fXs3Nzd/sQZRbcFWBikKxWLxAsRz5Bpp1Fwu96D0RSqqIaP1CaM13NzcvDozM9Ou8gajpFlUbFWnJoZhxi1xntra2q4XHdc41nBqaupnRvQp19ibDtdjVCY4uci0XBUb0XXAnF7pyiryUYPUIEYUwErSQauYcqadZHSO71tJnXrzn9TA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vNs0ROsv6ORMUF2AbA7ravf6xuwwIE2JMAe9Mm67YBd5w195ort3zDAQTYAYDJy7jQtxCSPMA+Yg+8D+p7kWeBabthAPJLwHXr6+vfAs6+2NU8lRb594rb9N8rVFiJ1h3g9g+qX5LkYIVEF1hnQ8za2Qo6oV11BUg5vsuMPRqaGUJK8B/672ED/yxKJ05eN4CA8/3+7iYKuNjf412bMD52Hwwz+o9lp0dGRnI8HU9kEaduMyjJM4tHKcFjNOV6VOCV6vPc93z/4CB6aT7/AiDLwtq0n6bmAAAAAElFTkSuQmCC',
|
| 62 |
+
},
|
| 63 |
+
])
|
| 64 |
+
.coordinate({ type: 'radial', innerRadius: 0.2 });
|
| 65 |
+
|
| 66 |
+
chart
|
| 67 |
+
.interval()
|
| 68 |
+
.encode('x', 'name')
|
| 69 |
+
.encode('y', 1)
|
| 70 |
+
.encode('size', 52)
|
| 71 |
+
.encode('color', 'color')
|
| 72 |
+
.scale('color', { type: 'identity' })
|
| 73 |
+
.style('fillOpacity', 0.25)
|
| 74 |
+
.animate(false);
|
| 75 |
+
|
| 76 |
+
chart
|
| 77 |
+
.interval()
|
| 78 |
+
.encode('x', 'name')
|
| 79 |
+
.encode('y', 'percent')
|
| 80 |
+
.encode('color', 'color')
|
| 81 |
+
.encode('size', 52)
|
| 82 |
+
.style('radius', 26)
|
| 83 |
+
.style('shadowColor', 'rgba(0,0,0,0.45)')
|
| 84 |
+
.style('shadowBlur', 20)
|
| 85 |
+
.style('shadowOffsetX', -2)
|
| 86 |
+
.style('shadowOffsetY', -5)
|
| 87 |
+
.axis(false)
|
| 88 |
+
.animate('enter', {
|
| 89 |
+
type: 'waveIn',
|
| 90 |
+
easing: 'easing-out-bounce',
|
| 91 |
+
duration: 1000,
|
| 92 |
+
});
|
| 93 |
+
|
| 94 |
+
chart
|
| 95 |
+
.image()
|
| 96 |
+
.encode('x', 'name')
|
| 97 |
+
.encode('y', 0)
|
| 98 |
+
.encode('src', (d) => d.icon)
|
| 99 |
+
.encode('size', 12)
|
| 100 |
+
.style('transform', 'translateX(10)');
|
| 101 |
+
|
| 102 |
+
chart.render();
|
| 103 |
+
} catch (error) {
|
| 104 |
+
console.error(error);
|
| 105 |
+
const pre = document.createElement('pre');
|
| 106 |
+
pre.style.whiteSpace = 'pre-wrap';
|
| 107 |
+
pre.style.padding = '12px';
|
| 108 |
+
pre.style.margin = '12px';
|
| 109 |
+
pre.style.border = '1px solid #ddd';
|
| 110 |
+
pre.textContent = String(error && error.stack ? error.stack : error);
|
| 111 |
+
document.body.appendChild(pre);
|
| 112 |
+
} finally {
|
| 113 |
+
Math.random = __originalMathRandom;
|
| 114 |
+
}
|
| 115 |
+
})();
|
| 116 |
+
</script>
|
| 117 |
+
<!-- source: https://g2.antv.antgroup.com/examples/general/radial/#apple-activity -->
|
| 118 |
+
</body>
|
| 119 |
+
</html>
|
web/AntV G2/bar/chart_0118_bar.html
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!doctype html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="utf-8" />
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
| 6 |
+
<title>对数柱形图</title>
|
| 7 |
+
<style>
|
| 8 |
+
html, body {
|
| 9 |
+
margin: 0;
|
| 10 |
+
padding: 0;
|
| 11 |
+
width: 100%;
|
| 12 |
+
min-height: 100%;
|
| 13 |
+
font-family: Arial, sans-serif;
|
| 14 |
+
background: #ffffff;
|
| 15 |
+
}
|
| 16 |
+
.chart-container {
|
| 17 |
+
width: 100%;
|
| 18 |
+
height: 100vh;
|
| 19 |
+
}
|
| 20 |
+
</style>
|
| 21 |
+
<script src="./g2.min.js"></script>
|
| 22 |
+
</head>
|
| 23 |
+
<body>
|
| 24 |
+
<div id="container" class="chart-container"></div>
|
| 25 |
+
<script>
|
| 26 |
+
(async () => {
|
| 27 |
+
const __seedStart = 2540934436;
|
| 28 |
+
let __seed = __seedStart;
|
| 29 |
+
const __originalMathRandom = Math.random;
|
| 30 |
+
function __seededRandom() {
|
| 31 |
+
__seed = (__seed * 1664525 + 1013904223) >>> 0;
|
| 32 |
+
return __seed / 4294967296;
|
| 33 |
+
}
|
| 34 |
+
Math.random = __seededRandom;
|
| 35 |
+
try {
|
| 36 |
+
const { Chart } = G2;
|
| 37 |
+
const __embeddedData0 = [{"letter":"A","frequency":0.08167},{"letter":"B","frequency":0.01492},{"letter":"C","frequency":0.02782},{"letter":"D","frequency":0.04253},{"letter":"E","frequency":0.12702},{"letter":"F","frequency":0.02288},{"letter":"G","frequency":0.02015},{"letter":"H","frequency":0.06094},{"letter":"I","frequency":0.06966},{"letter":"J","frequency":0.00153},{"letter":"K","frequency":0.00772},{"letter":"L","frequency":0.04025},{"letter":"M","frequency":0.02406},{"letter":"N","frequency":0.06749},{"letter":"O","frequency":0.07507},{"letter":"P","frequency":0.01929},{"letter":"Q","frequency":0.00095},{"letter":"R","frequency":0.05987},{"letter":"S","frequency":0.06327},{"letter":"T","frequency":0.09056},{"letter":"U","frequency":0.02758},{"letter":"V","frequency":0.00978},{"letter":"W","frequency":0.0236},{"letter":"X","frequency":0.0015},{"letter":"Y","frequency":0.01974},{"letter":"Z","frequency":0.00074}];
|
| 38 |
+
|
| 39 |
+
const EPSILON = 1e-6;
|
| 40 |
+
|
| 41 |
+
const chart = new Chart({
|
| 42 |
+
container: 'container',
|
| 43 |
+
autoFit: true,
|
| 44 |
+
});
|
| 45 |
+
|
| 46 |
+
chart
|
| 47 |
+
.interval()
|
| 48 |
+
.data({
|
| 49 |
+
value: __embeddedData0,
|
| 50 |
+
})
|
| 51 |
+
.encode('x', 'letter')
|
| 52 |
+
.encode('y', 'frequency')
|
| 53 |
+
.encode('y1', EPSILON) // Log scale cant' map zero, set a value close to zero.
|
| 54 |
+
.scale('y', { type: 'log' })
|
| 55 |
+
.axis('y', { labelFormatter: (d) => (d === EPSILON ? 0 : d) });
|
| 56 |
+
|
| 57 |
+
chart.render();
|
| 58 |
+
} catch (error) {
|
| 59 |
+
console.error(error);
|
| 60 |
+
const pre = document.createElement('pre');
|
| 61 |
+
pre.style.whiteSpace = 'pre-wrap';
|
| 62 |
+
pre.style.padding = '12px';
|
| 63 |
+
pre.style.margin = '12px';
|
| 64 |
+
pre.style.border = '1px solid #ddd';
|
| 65 |
+
pre.textContent = String(error && error.stack ? error.stack : error);
|
| 66 |
+
document.body.appendChild(pre);
|
| 67 |
+
} finally {
|
| 68 |
+
Math.random = __originalMathRandom;
|
| 69 |
+
}
|
| 70 |
+
})();
|
| 71 |
+
</script>
|
| 72 |
+
<!-- source: https://g2.antv.antgroup.com/examples/general/interval/#column-log -->
|
| 73 |
+
</body>
|
| 74 |
+
</html>
|
web/AntV G2/bar/chart_0119_bar.html
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!doctype html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="utf-8" />
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
| 6 |
+
<title>水平条形图</title>
|
| 7 |
+
<style>
|
| 8 |
+
html, body {
|
| 9 |
+
margin: 0;
|
| 10 |
+
padding: 0;
|
| 11 |
+
width: 100%;
|
| 12 |
+
min-height: 100%;
|
| 13 |
+
font-family: Arial, sans-serif;
|
| 14 |
+
background: #ffffff;
|
| 15 |
+
}
|
| 16 |
+
.chart-container {
|
| 17 |
+
width: 100%;
|
| 18 |
+
height: 100vh;
|
| 19 |
+
}
|
| 20 |
+
</style>
|
| 21 |
+
<script src="./g2.min.js"></script>
|
| 22 |
+
</head>
|
| 23 |
+
<body>
|
| 24 |
+
<div id="container" class="chart-container"></div>
|
| 25 |
+
<script>
|
| 26 |
+
(async () => {
|
| 27 |
+
const __seedStart = 3842213949;
|
| 28 |
+
let __seed = __seedStart;
|
| 29 |
+
const __originalMathRandom = Math.random;
|
| 30 |
+
function __seededRandom() {
|
| 31 |
+
__seed = (__seed * 1664525 + 1013904223) >>> 0;
|
| 32 |
+
return __seed / 4294967296;
|
| 33 |
+
}
|
| 34 |
+
Math.random = __seededRandom;
|
| 35 |
+
try {
|
| 36 |
+
const { Chart } = G2;
|
| 37 |
+
const __embeddedData0 = [{"letter":"A","frequency":0.08167},{"letter":"B","frequency":0.01492},{"letter":"C","frequency":0.02782},{"letter":"D","frequency":0.04253},{"letter":"E","frequency":0.12702},{"letter":"F","frequency":0.02288},{"letter":"G","frequency":0.02015},{"letter":"H","frequency":0.06094},{"letter":"I","frequency":0.06966},{"letter":"J","frequency":0.00153},{"letter":"K","frequency":0.00772},{"letter":"L","frequency":0.04025},{"letter":"M","frequency":0.02406},{"letter":"N","frequency":0.06749},{"letter":"O","frequency":0.07507},{"letter":"P","frequency":0.01929},{"letter":"Q","frequency":0.00095},{"letter":"R","frequency":0.05987},{"letter":"S","frequency":0.06327},{"letter":"T","frequency":0.09056},{"letter":"U","frequency":0.02758},{"letter":"V","frequency":0.00978},{"letter":"W","frequency":0.0236},{"letter":"X","frequency":0.0015},{"letter":"Y","frequency":0.01974},{"letter":"Z","frequency":0.00074}];
|
| 38 |
+
/**
|
| 39 |
+
* A recreation of this demo: https://observablehq.com/@d3/horizontal-bar-chart
|
| 40 |
+
*/
|
| 41 |
+
|
| 42 |
+
const chart = new Chart({
|
| 43 |
+
container: 'container',
|
| 44 |
+
autoFit: true,
|
| 45 |
+
});
|
| 46 |
+
|
| 47 |
+
chart.coordinate({ transform: [{ type: 'transpose' }] });
|
| 48 |
+
|
| 49 |
+
chart
|
| 50 |
+
.interval()
|
| 51 |
+
.data({
|
| 52 |
+
value: __embeddedData0,
|
| 53 |
+
format: 'csv',
|
| 54 |
+
})
|
| 55 |
+
.transform({ type: 'sortX', reverse: true })
|
| 56 |
+
.encode('x', 'letter')
|
| 57 |
+
.encode('y', 'frequency')
|
| 58 |
+
.axis('y', { labelFormatter: '.0%' })
|
| 59 |
+
.label({
|
| 60 |
+
text: 'frequency',
|
| 61 |
+
formatter: '.1%',
|
| 62 |
+
textAlign: (d) => (+d.frequency > 0.008 ? 'right' : 'start'),
|
| 63 |
+
fill: (d) => (+d.frequency > 0.008 ? '#fff' : '#000'),
|
| 64 |
+
dx: (d) => (+d.frequency > 0.008 ? -5 : 5),
|
| 65 |
+
});
|
| 66 |
+
|
| 67 |
+
chart.render();
|
| 68 |
+
} catch (error) {
|
| 69 |
+
console.error(error);
|
| 70 |
+
const pre = document.createElement('pre');
|
| 71 |
+
pre.style.whiteSpace = 'pre-wrap';
|
| 72 |
+
pre.style.padding = '12px';
|
| 73 |
+
pre.style.margin = '12px';
|
| 74 |
+
pre.style.border = '1px solid #ddd';
|
| 75 |
+
pre.textContent = String(error && error.stack ? error.stack : error);
|
| 76 |
+
document.body.appendChild(pre);
|
| 77 |
+
} finally {
|
| 78 |
+
Math.random = __originalMathRandom;
|
| 79 |
+
}
|
| 80 |
+
})();
|
| 81 |
+
</script>
|
| 82 |
+
<!-- source: https://g2.antv.antgroup.com/examples/general/interval/#bar -->
|
| 83 |
+
</body>
|
| 84 |
+
</html>
|
web/AntV G2/bar/chart_0120_bar.html
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!doctype html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="utf-8" />
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
| 6 |
+
<title>发散条形图</title>
|
| 7 |
+
<style>
|
| 8 |
+
html, body {
|
| 9 |
+
margin: 0;
|
| 10 |
+
padding: 0;
|
| 11 |
+
width: 100%;
|
| 12 |
+
min-height: 100%;
|
| 13 |
+
font-family: Arial, sans-serif;
|
| 14 |
+
background: #ffffff;
|
| 15 |
+
}
|
| 16 |
+
.chart-container {
|
| 17 |
+
width: 100%;
|
| 18 |
+
height: 100vh;
|
| 19 |
+
}
|
| 20 |
+
</style>
|
| 21 |
+
<script src="./g2.min.js"></script>
|
| 22 |
+
</head>
|
| 23 |
+
<body>
|
| 24 |
+
<div id="container" class="chart-container"></div>
|
| 25 |
+
<script>
|
| 26 |
+
(async () => {
|
| 27 |
+
const __seedStart = 2227046453;
|
| 28 |
+
let __seed = __seedStart;
|
| 29 |
+
const __originalMathRandom = Math.random;
|
| 30 |
+
function __seededRandom() {
|
| 31 |
+
__seed = (__seed * 1664525 + 1013904223) >>> 0;
|
| 32 |
+
return __seed / 4294967296;
|
| 33 |
+
}
|
| 34 |
+
Math.random = __seededRandom;
|
| 35 |
+
try {
|
| 36 |
+
const { Chart } = G2;
|
| 37 |
+
const __embeddedData0 = [{"year":1850,"age":0,"sex":1,"people":1483789},{"year":1850,"age":0,"sex":2,"people":1450376},{"year":1850,"age":5,"sex":1,"people":1411067},{"year":1850,"age":5,"sex":2,"people":1359668},{"year":1850,"age":10,"sex":1,"people":1260099},{"year":1850,"age":10,"sex":2,"people":1216114},{"year":1850,"age":15,"sex":1,"people":1077133},{"year":1850,"age":15,"sex":2,"people":1110619},{"year":1850,"age":20,"sex":1,"people":1017281},{"year":1850,"age":20,"sex":2,"people":1003841},{"year":1850,"age":25,"sex":1,"people":862547},{"year":1850,"age":25,"sex":2,"people":799482},{"year":1850,"age":30,"sex":1,"people":730638},{"year":1850,"age":30,"sex":2,"people":639636},{"year":1850,"age":35,"sex":1,"people":588487},{"year":1850,"age":35,"sex":2,"people":505012},{"year":1850,"age":40,"sex":1,"people":475911},{"year":1850,"age":40,"sex":2,"people":428185},{"year":1850,"age":45,"sex":1,"people":384211},{"year":1850,"age":45,"sex":2,"people":341254},{"year":1850,"age":50,"sex":1,"people":321343},{"year":1850,"age":50,"sex":2,"people":286580},{"year":1850,"age":55,"sex":1,"people":194080},{"year":1850,"age":55,"sex":2,"people":187208},{"year":1850,"age":60,"sex":1,"people":174976},{"year":1850,"age":60,"sex":2,"people":162236},{"year":1850,"age":65,"sex":1,"people":106827},{"year":1850,"age":65,"sex":2,"people":105534},{"year":1850,"age":70,"sex":1,"people":73677},{"year":1850,"age":70,"sex":2,"people":71762},{"year":1850,"age":75,"sex":1,"people":40834},{"year":1850,"age":75,"sex":2,"people":40229},{"year":1850,"age":80,"sex":1,"people":23449},{"year":1850,"age":80,"sex":2,"people":22949},{"year":1850,"age":85,"sex":1,"people":8186},{"year":1850,"age":85,"sex":2,"people":10511},{"year":1850,"age":90,"sex":1,"people":5259},{"year":1850,"age":90,"sex":2,"people":6569},{"year":1860,"age":0,"sex":1,"people":2120846},{"year":1860,"age":0,"sex":2,"people":2092162},{"year":1860,"age":5,"sex":1,"people":1804467},{"year":1860,"age":5,"sex":2,"people":1778772},{"year":1860,"age":10,"sex":1,"people":1612640},{"year":1860,"age":10,"sex":2,"people":1540350},{"year":1860,"age":15,"sex":1,"people":1438094},{"year":1860,"age":15,"sex":2,"people":1495999},{"year":1860,"age":20,"sex":1,"people":1351121},{"year":1860,"age":20,"sex":2,"people":1370462},{"year":1860,"age":25,"sex":1,"people":1217615},{"year":1860,"age":25,"sex":2,"people":1116373},{"year":1860,"age":30,"sex":1,"people":1043174},{"year":1860,"age":30,"sex":2,"people":936055},{"year":1860,"age":35,"sex":1,"people":866910},{"year":1860,"age":35,"sex":2,"people":737136},{"year":1860,"age":40,"sex":1,"people":699434},{"year":1860,"age":40,"sex":2,"people":616826},{"year":1860,"age":45,"sex":1,"people":552404},{"year":1860,"age":45,"sex":2,"people":461739},{"year":1860,"age":50,"sex":1,"people":456176},{"year":1860,"age":50,"sex":2,"people":407305},{"year":1860,"age":55,"sex":1,"people":292417},{"year":1860,"age":55,"sex":2,"people":267224},{"year":1860,"age":60,"sex":1,"people":260887},{"year":1860,"age":60,"sex":2,"people":249735},{"year":1860,"age":65,"sex":1,"people":149331},{"year":1860,"age":65,"sex":2,"people":141405},{"year":1860,"age":70,"sex":1,"people":98465},{"year":1860,"age":70,"sex":2,"people":101778},{"year":1860,"age":75,"sex":1,"people":56699},{"year":1860,"age":75,"sex":2,"people":57597},{"year":1860,"age":80,"sex":1,"people":29007},{"year":1860,"age":80,"sex":2,"people":29506},{"year":1860,"age":85,"sex":1,"people":10434},{"year":1860,"age":85,"sex":2,"people":14053},{"year":1860,"age":90,"sex":1,"people":7232},{"year":1860,"age":90,"sex":2,"people":6622},{"year":1870,"age":0,"sex":1,"people":2800083},{"year":1870,"age":0,"sex":2,"people":2717102},{"year":1870,"age":5,"sex":1,"people":2428469},{"year":1870,"age":5,"sex":2,"people":2393680},{"year":1870,"age":10,"sex":1,"people":2427341},{"year":1870,"age":10,"sex":2,"people":2342670},{"year":1870,"age":15,"sex":1,"people":1958390},{"year":1870,"age":15,"sex":2,"people":2077248},{"year":1870,"age":20,"sex":1,"people":1805303},{"year":1870,"age":20,"sex":2,"people":1909382},{"year":1870,"age":25,"sex":1,"people":1509059},{"year":1870,"age":25,"sex":2,"people":1574285},{"year":1870,"age":30,"sex":1,"people":1251534},{"year":1870,"age":30,"sex":2,"people":1275629},{"year":1870,"age":35,"sex":1,"people":1185336},{"year":1870,"age":35,"sex":2,"people":1137490},{"year":1870,"age":40,"sex":1,"people":968861},{"year":1870,"age":40,"sex":2,"people":944401},{"year":1870,"age":45,"sex":1,"people":852672},{"year":1870,"age":45,"sex":2,"people":747916},{"year":1870,"age":50,"sex":1,"people":736387},{"year":1870,"age":50,"sex":2,"people":637801},{"year":1870,"age":55,"sex":1,"people":486036},{"year":1870,"age":55,"sex":2,"people":407819},{"year":1870,"age":60,"sex":1,"people":399264},{"year":1870,"age":60,"sex":2,"people":374801},{"year":1870,"age":65,"sex":1,"people":260829},{"year":1870,"age":65,"sex":2,"people":239080},{"year":1870,"age":70,"sex":1,"people":173364},{"year":1870,"age":70,"sex":2,"people":165501},{"year":1870,"age":75,"sex":1,"people":86929},{"year":1870,"age":75,"sex":2,"people":89540},{"year":1870,"age":80,"sex":1,"people":47427},{"year":1870,"age":80,"sex":2,"people":54190},{"year":1870,"age":85,"sex":1,"people":15891},{"year":1870,"age":85,"sex":2,"people":19302},{"year":1870,"age":90,"sex":1,"people":8649},{"year":1870,"age":90,"sex":2,"people":13068},{"year":1880,"age":0,"sex":1,"people":3533662},{"year":1880,"age":0,"sex":2,"people":3421597},{"year":1880,"age":5,"sex":1,"people":3297503},{"year":1880,"age":5,"sex":2,"people":3179142},{"year":1880,"age":10,"sex":1,"people":2911924},{"year":1880,"age":10,"sex":2,"people":2813550},{"year":1880,"age":15,"sex":1,"people":2457734},{"year":1880,"age":15,"sex":2,"people":2527818},{"year":1880,"age":20,"sex":1,"people":2547780},{"year":1880,"age":20,"sex":2,"people":2512803},{"year":1880,"age":25,"sex":1,"people":2119393},{"year":1880,"age":25,"sex":2,"people":1974241},{"year":1880,"age":30,"sex":1,"people":1749107},{"year":1880,"age":30,"sex":2,"people":1596772},{"year":1880,"age":35,"sex":1,"people":1540772},{"year":1880,"age":35,"sex":2,"people":1483717},{"year":1880,"age":40,"sex":1,"people":1237347},{"year":1880,"age":40,"sex":2,"people":1239435},{"year":1880,"age":45,"sex":1,"people":1065973},{"year":1880,"age":45,"sex":2,"people":1003711},{"year":1880,"age":50,"sex":1,"people":964484},{"year":1880,"age":50,"sex":2,"people":863012},{"year":1880,"age":55,"sex":1,"people":679147},{"year":1880,"age":55,"sex":2,"people":594843},{"year":1880,"age":60,"sex":1,"people":580298},{"year":1880,"age":60,"sex":2,"people":526956},{"year":1880,"age":65,"sex":1,"people":369398},{"year":1880,"age":65,"sex":2,"people":346303},{"year":1880,"age":70,"sex":1,"people":255422},{"year":1880,"age":70,"sex":2,"people":251860},{"year":1880,"age":75,"sex":1,"people":141628},{"year":1880,"age":75,"sex":2,"people":143513},{"year":1880,"age":80,"sex":1,"people":67526},{"year":1880,"age":80,"sex":2,"people":77290},{"year":1880,"age":85,"sex":1,"people":22437},{"year":1880,"age":85,"sex":2,"people":31227},{"year":1880,"age":90,"sex":1,"people":10272},{"year":1880,"age":90,"sex":2,"people":15451},{"year":1900,"age":0,"sex":1,"people":4619544},{"year":1900,"age":0,"sex":2,"people":4589196},{"year":1900,"age":5,"sex":1,"people":4465783},{"year":1900,"age":5,"sex":2,"people":4390483},{"year":1900,"age":10,"sex":1,"people":4057669},{"year":1900,"age":10,"sex":2,"people":4001749},{"year":1900,"age":15,"sex":1,"people":3774846},{"year":1900,"age":15,"sex":2,"people":3801743},{"year":1900,"age":20,"sex":1,"people":3694038},{"year":1900,"age":20,"sex":2,"people":3751061},{"year":1900,"age":25,"sex":1,"people":3389280},{"year":1900,"age":25,"sex":2,"people":3236056},{"year":1900,"age":30,"sex":1,"people":2918964},{"year":1900,"age":30,"sex":2,"people":2665174},{"year":1900,"age":35,"sex":1,"people":2633883},{"year":1900,"age":35,"sex":2,"people":2347737},{"year":1900,"age":40,"sex":1,"people":2261070},{"year":1900,"age":40,"sex":2,"people":2004987},{"year":1900,"age":45,"sex":1,"people":1868413},{"year":1900,"age":45,"sex":2,"people":1648025},{"year":1900,"age":50,"sex":1,"people":1571038},{"year":1900,"age":50,"sex":2,"people":1411981},{"year":1900,"age":55,"sex":1,"people":1161908},{"year":1900,"age":55,"sex":2,"people":1064632},{"year":1900,"age":60,"sex":1,"people":916571},{"year":1900,"age":60,"sex":2,"people":887508},{"year":1900,"age":65,"sex":1,"people":672663},{"year":1900,"age":65,"sex":2,"people":640212},{"year":1900,"age":70,"sex":1,"people":454747},{"year":1900,"age":70,"sex":2,"people":440007},{"year":1900,"age":75,"sex":1,"people":268211},{"year":1900,"age":75,"sex":2,"people":265879},{"year":1900,"age":80,"sex":1,"people":127435},{"year":1900,"age":80,"sex":2,"people":132449},{"year":1900,"age":85,"sex":1,"people":44008},{"year":1900,"age":85,"sex":2,"people":48614},{"year":1900,"age":90,"sex":1,"people":15164},{"year":1900,"age":90,"sex":2,"people":20093},{"year":1910,"age":0,"sex":1,"people":5296823},{"year":1910,"age":0,"sex":2,"people":5287477},{"year":1910,"age":5,"sex":1,"people":4991803},{"year":1910,"age":5,"sex":2,"people":4866139},{"year":1910,"age":10,"sex":1,"people":4650747},{"year":1910,"age":10,"sex":2,"people":4471887},{"year":1910,"age":15,"sex":1,"people":4566154},{"year":1910,"age":15,"sex":2,"people":4592269},{"year":1910,"age":20,"sex":1,"people":4637632},{"year":1910,"age":20,"sex":2,"people":4447683},{"year":1910,"age":25,"sex":1,"people":4257755},{"year":1910,"age":25,"sex":2,"people":3946153},{"year":1910,"age":30,"sex":1,"people":3658125},{"year":1910,"age":30,"sex":2,"people":3295220},{"year":1910,"age":35,"sex":1,"people":3427518},{"year":1910,"age":35,"sex":2,"people":3088990},{"year":1910,"age":40,"sex":1,"people":2860229},{"year":1910,"age":40,"sex":2,"people":2471267},{"year":1910,"age":45,"sex":1,"people":2363801},{"year":1910,"age":45,"sex":2,"people":2114930},{"year":1910,"age":50,"sex":1,"people":2126516},{"year":1910,"age":50,"sex":2,"people":1773592},{"year":1910,"age":55,"sex":1,"people":1508358},{"year":1910,"age":55,"sex":2,"people":1317651},{"year":1910,"age":60,"sex":1,"people":1189421},{"year":1910,"age":60,"sex":2,"people":1090697},{"year":1910,"age":65,"sex":1,"people":850159},{"year":1910,"age":65,"sex":2,"people":813868},{"year":1910,"age":70,"sex":1,"people":557936},{"year":1910,"age":70,"sex":2,"people":547623},{"year":1910,"age":75,"sex":1,"people":322679},{"year":1910,"age":75,"sex":2,"people":350900},{"year":1910,"age":80,"sex":1,"people":161715},{"year":1910,"age":80,"sex":2,"people":174315},{"year":1910,"age":85,"sex":1,"people":59699},{"year":1910,"age":85,"sex":2,"people":62725},{"year":1910,"age":90,"sex":1,"people":23929},{"year":1910,"age":90,"sex":2,"people":28965},{"year":1920,"age":0,"sex":1,"people":5934792},{"year":1920,"age":0,"sex":2,"people":5694244},{"year":1920,"age":5,"sex":1,"people":5789008},{"year":1920,"age":5,"sex":2,"people":5693960},{"year":1920,"age":10,"sex":1,"people":5401156},{"year":1920,"age":10,"sex":2,"people":5293057},{"year":1920,"age":15,"sex":1,"people":4724365},{"year":1920,"age":15,"sex":2,"people":4779936},{"year":1920,"age":20,"sex":1,"people":4549411},{"year":1920,"age":20,"sex":2,"people":4742632},{"year":1920,"age":25,"sex":1,"people":4565066},{"year":1920,"age":25,"sex":2,"people":4529382},{"year":1920,"age":30,"sex":1,"people":4110771},{"year":1920,"age":30,"sex":2,"people":3982426},{"year":1920,"age":35,"sex":1,"people":4081543},{"year":1920,"age":35,"sex":2,"people":3713810},{"year":1920,"age":40,"sex":1,"people":3321923},{"year":1920,"age":40,"sex":2,"people":3059757},{"year":1920,"age":45,"sex":1,"people":3143891},{"year":1920,"age":45,"sex":2,"people":2669089},{"year":1920,"age":50,"sex":1,"people":2546035},{"year":1920,"age":50,"sex":2,"people":2200491},{"year":1920,"age":55,"sex":1,"people":1880975},{"year":1920,"age":55,"sex":2,"people":1674672},{"year":1920,"age":60,"sex":1,"people":1587549},{"year":1920,"age":60,"sex":2,"people":1382877},{"year":1920,"age":65,"sex":1,"people":1095956},{"year":1920,"age":65,"sex":2,"people":989901},{"year":1920,"age":70,"sex":1,"people":714618},{"year":1920,"age":70,"sex":2,"people":690097},{"year":1920,"age":75,"sex":1,"people":417292},{"year":1920,"age":75,"sex":2,"people":439465},{"year":1920,"age":80,"sex":1,"people":187000},{"year":1920,"age":80,"sex":2,"people":211110},{"year":1920,"age":85,"sex":1,"people":75991},{"year":1920,"age":85,"sex":2,"people":92829},{"year":1920,"age":90,"sex":1,"people":22398},{"year":1920,"age":90,"sex":2,"people":32085},{"year":1930,"age":0,"sex":1,"people":5875250},{"year":1930,"age":0,"sex":2,"people":5662530},{"year":1930,"age":5,"sex":1,"people":6542592},{"year":1930,"age":5,"sex":2,"people":6129561},{"year":1930,"age":10,"sex":1,"people":6064820},{"year":1930,"age":10,"sex":2,"people":5986529},{"year":1930,"age":15,"sex":1,"people":5709452},{"year":1930,"age":15,"sex":2,"people":5769587},{"year":1930,"age":20,"sex":1,"people":5305992},{"year":1930,"age":20,"sex":2,"people":5565382},{"year":1930,"age":25,"sex":1,"people":4929853},{"year":1930,"age":25,"sex":2,"people":5050229},{"year":1930,"age":30,"sex":1,"people":4424408},{"year":1930,"age":30,"sex":2,"people":4455213},{"year":1930,"age":35,"sex":1,"people":4576531},{"year":1930,"age":35,"sex":2,"people":4593776},{"year":1930,"age":40,"sex":1,"people":4075139},{"year":1930,"age":40,"sex":2,"people":3754022},{"year":1930,"age":45,"sex":1,"people":3633152},{"year":1930,"age":45,"sex":2,"people":3396558},{"year":1930,"age":50,"sex":1,"people":3128108},{"year":1930,"age":50,"sex":2,"people":2809191},{"year":1930,"age":55,"sex":1,"people":2434077},{"year":1930,"age":55,"sex":2,"people":2298614},{"year":1930,"age":60,"sex":1,"people":1927564},{"year":1930,"age":60,"sex":2,"people":1783515},{"year":1930,"age":65,"sex":1,"people":1397275},{"year":1930,"age":65,"sex":2,"people":1307312},{"year":1930,"age":70,"sex":1,"people":919045},{"year":1930,"age":70,"sex":2,"people":918509},{"year":1930,"age":75,"sex":1,"people":536375},{"year":1930,"age":75,"sex":2,"people":522716},{"year":1930,"age":80,"sex":1,"people":246708},{"year":1930,"age":80,"sex":2,"people":283579},{"year":1930,"age":85,"sex":1,"people":88978},{"year":1930,"age":85,"sex":2,"people":109210},{"year":1930,"age":90,"sex":1,"people":30338},{"year":1930,"age":90,"sex":2,"people":43483},{"year":1940,"age":0,"sex":1,"people":5294628},{"year":1940,"age":0,"sex":2,"people":5124653},{"year":1940,"age":5,"sex":1,"people":5468378},{"year":1940,"age":5,"sex":2,"people":5359099},{"year":1940,"age":10,"sex":1,"people":5960416},{"year":1940,"age":10,"sex":2,"people":5868532},{"year":1940,"age":15,"sex":1,"people":6165109},{"year":1940,"age":15,"sex":2,"people":6193701},{"year":1940,"age":20,"sex":1,"people":5682414},{"year":1940,"age":20,"sex":2,"people":5896002},{"year":1940,"age":25,"sex":1,"people":5438166},{"year":1940,"age":25,"sex":2,"people":5664244},{"year":1940,"age":30,"sex":1,"people":5040048},{"year":1940,"age":30,"sex":2,"people":5171522},{"year":1940,"age":35,"sex":1,"people":4724804},{"year":1940,"age":35,"sex":2,"people":4791809},{"year":1940,"age":40,"sex":1,"people":4437392},{"year":1940,"age":40,"sex":2,"people":4394061},{"year":1940,"age":45,"sex":1,"people":4190187},{"year":1940,"age":45,"sex":2,"people":4050290},{"year":1940,"age":50,"sex":1,"people":3785735},{"year":1940,"age":50,"sex":2,"people":3488396},{"year":1940,"age":55,"sex":1,"people":2972069},{"year":1940,"age":55,"sex":2,"people":2810000},{"year":1940,"age":60,"sex":1,"people":2370232},{"year":1940,"age":60,"sex":2,"people":2317790},{"year":1940,"age":65,"sex":1,"people":1897678},{"year":1940,"age":65,"sex":2,"people":1911117},{"year":1940,"age":70,"sex":1,"people":1280023},{"year":1940,"age":70,"sex":2,"people":1287711},{"year":1940,"age":75,"sex":1,"people":713875},{"year":1940,"age":75,"sex":2,"people":764915},{"year":1940,"age":80,"sex":1,"people":359418},{"year":1940,"age":80,"sex":2,"people":414761},{"year":1940,"age":85,"sex":1,"people":127303},{"year":1940,"age":85,"sex":2,"people":152131},{"year":1940,"age":90,"sex":1,"people":42263},{"year":1940,"age":90,"sex":2,"people":58119},{"year":1950,"age":0,"sex":1,"people":8211806},{"year":1950,"age":0,"sex":2,"people":7862267},{"year":1950,"age":5,"sex":1,"people":6706601},{"year":1950,"age":5,"sex":2,"people":6450863},{"year":1950,"age":10,"sex":1,"people":5629744},{"year":1950,"age":10,"sex":2,"people":5430835},{"year":1950,"age":15,"sex":1,"people":5264129},{"year":1950,"age":15,"sex":2,"people":5288742},{"year":1950,"age":20,"sex":1,"people":5573308},{"year":1950,"age":20,"sex":2,"people":5854227},{"year":1950,"age":25,"sex":1,"people":6007254},{"year":1950,"age":25,"sex":2,"people":6317332},{"year":1950,"age":30,"sex":1,"people":5676022},{"year":1950,"age":30,"sex":2,"people":5895178},{"year":1950,"age":35,"sex":1,"people":5511364},{"year":1950,"age":35,"sex":2,"people":5696261},{"year":1950,"age":40,"sex":1,"people":5076985},{"year":1950,"age":40,"sex":2,"people":5199224},{"year":1950,"age":45,"sex":1,"people":4533177},{"year":1950,"age":45,"sex":2,"people":4595842},{"year":1950,"age":50,"sex":1,"people":4199164},{"year":1950,"age":50,"sex":2,"people":4147295},{"year":1950,"age":55,"sex":1,"people":3667351},{"year":1950,"age":55,"sex":2,"people":3595158},{"year":1950,"age":60,"sex":1,"people":3035038},{"year":1950,"age":60,"sex":2,"people":3009768},{"year":1950,"age":65,"sex":1,"people":2421234},{"year":1950,"age":65,"sex":2,"people":2548250},{"year":1950,"age":70,"sex":1,"people":1627920},{"year":1950,"age":70,"sex":2,"people":1786831},{"year":1950,"age":75,"sex":1,"people":1006530},{"year":1950,"age":75,"sex":2,"people":1148469},{"year":1950,"age":80,"sex":1,"people":511727},{"year":1950,"age":80,"sex":2,"people":637717},{"year":1950,"age":85,"sex":1,"people":182821},{"year":1950,"age":85,"sex":2,"people":242798},{"year":1950,"age":90,"sex":1,"people":54836},{"year":1950,"age":90,"sex":2,"people":90766},{"year":1960,"age":0,"sex":1,"people":10374975},{"year":1960,"age":0,"sex":2,"people":10146999},{"year":1960,"age":5,"sex":1,"people":9495503},{"year":1960,"age":5,"sex":2,"people":9250741},{"year":1960,"age":10,"sex":1,"people":8563700},{"year":1960,"age":10,"sex":2,"people":8310764},{"year":1960,"age":15,"sex":1,"people":6620902},{"year":1960,"age":15,"sex":2,"people":6617493},{"year":1960,"age":20,"sex":1,"people":5268384},{"year":1960,"age":20,"sex":2,"people":5513495},{"year":1960,"age":25,"sex":1,"people":5311805},{"year":1960,"age":25,"sex":2,"people":5548259},{"year":1960,"age":30,"sex":1,"people":5801342},{"year":1960,"age":30,"sex":2,"people":6090862},{"year":1960,"age":35,"sex":1,"people":6063063},{"year":1960,"age":35,"sex":2,"people":6431337},{"year":1960,"age":40,"sex":1,"people":5657943},{"year":1960,"age":40,"sex":2,"people":5940520},{"year":1960,"age":45,"sex":1,"people":5345658},{"year":1960,"age":45,"sex":2,"people":5516028},{"year":1960,"age":50,"sex":1,"people":4763364},{"year":1960,"age":50,"sex":2,"people":4928844},{"year":1960,"age":55,"sex":1,"people":4170581},{"year":1960,"age":55,"sex":2,"people":4402878},{"year":1960,"age":60,"sex":1,"people":3405293},{"year":1960,"age":60,"sex":2,"people":3723839},{"year":1960,"age":65,"sex":1,"people":2859371},{"year":1960,"age":65,"sex":2,"people":3268699},{"year":1960,"age":70,"sex":1,"people":2115763},{"year":1960,"age":70,"sex":2,"people":2516479},{"year":1960,"age":75,"sex":1,"people":1308913},{"year":1960,"age":75,"sex":2,"people":1641371},{"year":1960,"age":80,"sex":1,"people":619923},{"year":1960,"age":80,"sex":2,"people":856952},{"year":1960,"age":85,"sex":1,"people":253245},{"year":1960,"age":85,"sex":2,"people":384572},{"year":1960,"age":90,"sex":1,"people":75908},{"year":1960,"age":90,"sex":2,"people":135774},{"year":1970,"age":0,"sex":1,"people":8685121},{"year":1970,"age":0,"sex":2,"people":8326887},{"year":1970,"age":5,"sex":1,"people":10411131},{"year":1970,"age":5,"sex":2,"people":10003293},{"year":1970,"age":10,"sex":1,"people":10756403},{"year":1970,"age":10,"sex":2,"people":10343538},{"year":1970,"age":15,"sex":1,"people":9605399},{"year":1970,"age":15,"sex":2,"people":9414284},{"year":1970,"age":20,"sex":1,"people":7729202},{"year":1970,"age":20,"sex":2,"people":8341830},{"year":1970,"age":25,"sex":1,"people":6539301},{"year":1970,"age":25,"sex":2,"people":6903041},{"year":1970,"age":30,"sex":1,"people":5519879},{"year":1970,"age":30,"sex":2,"people":5851441},{"year":1970,"age":35,"sex":1,"people":5396732},{"year":1970,"age":35,"sex":2,"people":5708021},{"year":1970,"age":40,"sex":1,"people":5718538},{"year":1970,"age":40,"sex":2,"people":6129319},{"year":1970,"age":45,"sex":1,"people":5794120},{"year":1970,"age":45,"sex":2,"people":6198742},{"year":1970,"age":50,"sex":1,"people":5298312},{"year":1970,"age":50,"sex":2,"people":5783817},{"year":1970,"age":55,"sex":1,"people":4762911},{"year":1970,"age":55,"sex":2,"people":5222164},{"year":1970,"age":60,"sex":1,"people":4037643},{"year":1970,"age":60,"sex":2,"people":4577251},{"year":1970,"age":65,"sex":1,"people":3142606},{"year":1970,"age":65,"sex":2,"people":3894827},{"year":1970,"age":70,"sex":1,"people":2340826},{"year":1970,"age":70,"sex":2,"people":3138009},{"year":1970,"age":75,"sex":1,"people":1599269},{"year":1970,"age":75,"sex":2,"people":2293376},{"year":1970,"age":80,"sex":1,"people":886155},{"year":1970,"age":80,"sex":2,"people":1417553},{"year":1970,"age":85,"sex":1,"people":371123},{"year":1970,"age":85,"sex":2,"people":658511},{"year":1970,"age":90,"sex":1,"people":186502},{"year":1970,"age":90,"sex":2,"people":314929},{"year":1980,"age":0,"sex":1,"people":8439366},{"year":1980,"age":0,"sex":2,"people":8081854},{"year":1980,"age":5,"sex":1,"people":8680730},{"year":1980,"age":5,"sex":2,"people":8275881},{"year":1980,"age":10,"sex":1,"people":9452338},{"year":1980,"age":10,"sex":2,"people":9048483},{"year":1980,"age":15,"sex":1,"people":10698856},{"year":1980,"age":15,"sex":2,"people":10410271},{"year":1980,"age":20,"sex":1,"people":10486776},{"year":1980,"age":20,"sex":2,"people":10614947},{"year":1980,"age":25,"sex":1,"people":9624053},{"year":1980,"age":25,"sex":2,"people":9827903},{"year":1980,"age":30,"sex":1,"people":8705835},{"year":1980,"age":30,"sex":2,"people":8955225},{"year":1980,"age":35,"sex":1,"people":6852069},{"year":1980,"age":35,"sex":2,"people":7134239},{"year":1980,"age":40,"sex":1,"people":5692148},{"year":1980,"age":40,"sex":2,"people":5953910},{"year":1980,"age":45,"sex":1,"people":5342469},{"year":1980,"age":45,"sex":2,"people":5697543},{"year":1980,"age":50,"sex":1,"people":5603709},{"year":1980,"age":50,"sex":2,"people":6110117},{"year":1980,"age":55,"sex":1,"people":5485098},{"year":1980,"age":55,"sex":2,"people":6160229},{"year":1980,"age":60,"sex":1,"people":4696140},{"year":1980,"age":60,"sex":2,"people":5456885},{"year":1980,"age":65,"sex":1,"people":3893510},{"year":1980,"age":65,"sex":2,"people":4896947},{"year":1980,"age":70,"sex":1,"people":2857774},{"year":1980,"age":70,"sex":2,"people":3963441},{"year":1980,"age":75,"sex":1,"people":1840438},{"year":1980,"age":75,"sex":2,"people":2951759},{"year":1980,"age":80,"sex":1,"people":1012886},{"year":1980,"age":80,"sex":2,"people":1919292},{"year":1980,"age":85,"sex":1,"people":472338},{"year":1980,"age":85,"sex":2,"people":1023115},{"year":1980,"age":90,"sex":1,"people":204148},{"year":1980,"age":90,"sex":2,"people":499046},{"year":1990,"age":0,"sex":1,"people":9307465},{"year":1990,"age":0,"sex":2,"people":8894007},{"year":1990,"age":5,"sex":1,"people":9274732},{"year":1990,"age":5,"sex":2,"people":8799955},{"year":1990,"age":10,"sex":1,"people":8782542},{"year":1990,"age":10,"sex":2,"people":8337284},{"year":1990,"age":15,"sex":1,"people":9020572},{"year":1990,"age":15,"sex":2,"people":8590991},{"year":1990,"age":20,"sex":1,"people":9436188},{"year":1990,"age":20,"sex":2,"people":9152644},{"year":1990,"age":25,"sex":1,"people":10658027},{"year":1990,"age":25,"sex":2,"people":10587292},{"year":1990,"age":30,"sex":1,"people":11028712},{"year":1990,"age":30,"sex":2,"people":11105750},{"year":1990,"age":35,"sex":1,"people":9853933},{"year":1990,"age":35,"sex":2,"people":10038644},{"year":1990,"age":40,"sex":1,"people":8712632},{"year":1990,"age":40,"sex":2,"people":8928252},{"year":1990,"age":45,"sex":1,"people":6848082},{"year":1990,"age":45,"sex":2,"people":7115129},{"year":1990,"age":50,"sex":1,"people":5553992},{"year":1990,"age":50,"sex":2,"people":5899925},{"year":1990,"age":55,"sex":1,"people":4981670},{"year":1990,"age":55,"sex":2,"people":5460506},{"year":1990,"age":60,"sex":1,"people":4953822},{"year":1990,"age":60,"sex":2,"people":5663205},{"year":1990,"age":65,"sex":1,"people":4538398},{"year":1990,"age":65,"sex":2,"people":5594108},{"year":1990,"age":70,"sex":1,"people":3429420},{"year":1990,"age":70,"sex":2,"people":4610222},{"year":1990,"age":75,"sex":1,"people":2344932},{"year":1990,"age":75,"sex":2,"people":3723980},{"year":1990,"age":80,"sex":1,"people":1342996},{"year":1990,"age":80,"sex":2,"people":2545730},{"year":1990,"age":85,"sex":1,"people":588790},{"year":1990,"age":85,"sex":2,"people":1419494},{"year":1990,"age":90,"sex":1,"people":238459},{"year":1990,"age":90,"sex":2,"people":745146},{"year":2000,"age":0,"sex":1,"people":9735380},{"year":2000,"age":0,"sex":2,"people":9310714},{"year":2000,"age":5,"sex":1,"people":10552146},{"year":2000,"age":5,"sex":2,"people":10069564},{"year":2000,"age":10,"sex":1,"people":10563233},{"year":2000,"age":10,"sex":2,"people":10022524},{"year":2000,"age":15,"sex":1,"people":10237419},{"year":2000,"age":15,"sex":2,"people":9692669},{"year":2000,"age":20,"sex":1,"people":9731315},{"year":2000,"age":20,"sex":2,"people":9324244},{"year":2000,"age":25,"sex":1,"people":9659493},{"year":2000,"age":25,"sex":2,"people":9518507},{"year":2000,"age":30,"sex":1,"people":10205879},{"year":2000,"age":30,"sex":2,"people":10119296},{"year":2000,"age":35,"sex":1,"people":11475182},{"year":2000,"age":35,"sex":2,"people":11635647},{"year":2000,"age":40,"sex":1,"people":11320252},{"year":2000,"age":40,"sex":2,"people":11488578},{"year":2000,"age":45,"sex":1,"people":9925006},{"year":2000,"age":45,"sex":2,"people":10261253},{"year":2000,"age":50,"sex":1,"people":8507934},{"year":2000,"age":50,"sex":2,"people":8911133},{"year":2000,"age":55,"sex":1,"people":6459082},{"year":2000,"age":55,"sex":2,"people":6921268},{"year":2000,"age":60,"sex":1,"people":5123399},{"year":2000,"age":60,"sex":2,"people":5668961},{"year":2000,"age":65,"sex":1,"people":4453623},{"year":2000,"age":65,"sex":2,"people":4804784},{"year":2000,"age":70,"sex":1,"people":3792145},{"year":2000,"age":70,"sex":2,"people":5184855},{"year":2000,"age":75,"sex":1,"people":2912655},{"year":2000,"age":75,"sex":2,"people":4355644},{"year":2000,"age":80,"sex":1,"people":1902638},{"year":2000,"age":80,"sex":2,"people":3221898},{"year":2000,"age":85,"sex":1,"people":970357},{"year":2000,"age":85,"sex":2,"people":1981156},{"year":2000,"age":90,"sex":1,"people":336303},{"year":2000,"age":90,"sex":2,"people":1064581}];
|
| 38 |
+
/**
|
| 39 |
+
* A recreation of this demo: https://vega.github.io/vega-lite/examples/bar_diverging_stack_population_pyramid.html
|
| 40 |
+
*/
|
| 41 |
+
|
| 42 |
+
const chart = new Chart({
|
| 43 |
+
container: 'container',
|
| 44 |
+
autoFit: true,
|
| 45 |
+
});
|
| 46 |
+
|
| 47 |
+
chart.coordinate({ transform: [{ type: 'transpose' }] });
|
| 48 |
+
|
| 49 |
+
chart
|
| 50 |
+
.interval()
|
| 51 |
+
.data({
|
| 52 |
+
value: __embeddedData0,
|
| 53 |
+
transform: [
|
| 54 |
+
{
|
| 55 |
+
type: 'filter',
|
| 56 |
+
callback: (d) => d.year === 2000,
|
| 57 |
+
},
|
| 58 |
+
],
|
| 59 |
+
})
|
| 60 |
+
.encode('x', 'age')
|
| 61 |
+
.encode('y', (d) => (d.sex === 1 ? -d.people : d.people))
|
| 62 |
+
.encode('color', 'sex')
|
| 63 |
+
.scale('color', { type: 'ordinal' })
|
| 64 |
+
.scale('x', { range: [1, 0] })
|
| 65 |
+
.axis('y', { labelFormatter: '~s' })
|
| 66 |
+
.legend('color', { labelFormatter: (d) => (d === 1 ? 'Male' : 'Female') })
|
| 67 |
+
.tooltip((d) => ({ value: d.people, name: d.sex === 1 ? 'Male' : 'Female' }));
|
| 68 |
+
|
| 69 |
+
chart.render();
|
| 70 |
+
} catch (error) {
|
| 71 |
+
console.error(error);
|
| 72 |
+
const pre = document.createElement('pre');
|
| 73 |
+
pre.style.whiteSpace = 'pre-wrap';
|
| 74 |
+
pre.style.padding = '12px';
|
| 75 |
+
pre.style.margin = '12px';
|
| 76 |
+
pre.style.border = '1px solid #ddd';
|
| 77 |
+
pre.textContent = String(error && error.stack ? error.stack : error);
|
| 78 |
+
document.body.appendChild(pre);
|
| 79 |
+
} finally {
|
| 80 |
+
Math.random = __originalMathRandom;
|
| 81 |
+
}
|
| 82 |
+
})();
|
| 83 |
+
</script>
|
| 84 |
+
<!-- source: https://g2.antv.antgroup.com/examples/general/interval/#bar-diverging -->
|
| 85 |
+
</body>
|
| 86 |
+
</html>
|
web/AntV G2/bar/chart_0121_bar.html
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!doctype html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="utf-8" />
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
| 6 |
+
<title>区间条形图</title>
|
| 7 |
+
<style>
|
| 8 |
+
html, body {
|
| 9 |
+
margin: 0;
|
| 10 |
+
padding: 0;
|
| 11 |
+
width: 100%;
|
| 12 |
+
min-height: 100%;
|
| 13 |
+
font-family: Arial, sans-serif;
|
| 14 |
+
background: #ffffff;
|
| 15 |
+
}
|
| 16 |
+
.chart-container {
|
| 17 |
+
width: 100%;
|
| 18 |
+
height: 100vh;
|
| 19 |
+
}
|
| 20 |
+
</style>
|
| 21 |
+
<script src="./g2.min.js"></script>
|
| 22 |
+
</head>
|
| 23 |
+
<body>
|
| 24 |
+
<div id="container" class="chart-container"></div>
|
| 25 |
+
<script>
|
| 26 |
+
(async () => {
|
| 27 |
+
const __seedStart = 3737074163;
|
| 28 |
+
let __seed = __seedStart;
|
| 29 |
+
const __originalMathRandom = Math.random;
|
| 30 |
+
function __seededRandom() {
|
| 31 |
+
__seed = (__seed * 1664525 + 1013904223) >>> 0;
|
| 32 |
+
return __seed / 4294967296;
|
| 33 |
+
}
|
| 34 |
+
Math.random = __seededRandom;
|
| 35 |
+
try {
|
| 36 |
+
const { Chart } = G2;
|
| 37 |
+
|
| 38 |
+
const chart = new Chart({
|
| 39 |
+
container: 'container',
|
| 40 |
+
autoFit: true,
|
| 41 |
+
});
|
| 42 |
+
|
| 43 |
+
chart
|
| 44 |
+
.interval()
|
| 45 |
+
.data([
|
| 46 |
+
{ month: 'Jan.', profit: 387264, start: 0, end: 387264 },
|
| 47 |
+
{ month: 'Feb.', profit: 772096, start: 387264, end: 1159360 },
|
| 48 |
+
{ month: 'Mar.', profit: 638075, start: 1159360, end: 1797435 },
|
| 49 |
+
{ month: 'Apr.', profit: -211386, start: 1797435, end: 1586049 },
|
| 50 |
+
{ month: 'May', profit: -138135, start: 1586049, end: 1447914 },
|
| 51 |
+
{ month: 'Jun', profit: -267238, start: 1447914, end: 1180676 },
|
| 52 |
+
{ month: 'Jul.', profit: 431406, start: 1180676, end: 1612082 },
|
| 53 |
+
{ month: 'Aug.', profit: 363018, start: 1612082, end: 1975100 },
|
| 54 |
+
{ month: 'Sep.', profit: -224638, start: 1975100, end: 1750462 },
|
| 55 |
+
{ month: 'Oct.', profit: -299867, start: 1750462, end: 1450595 },
|
| 56 |
+
{ month: 'Nov.', profit: 607365, start: 1450595, end: 2057960 },
|
| 57 |
+
{ month: 'Dec.', profit: 1106986, start: 2057960, end: 3164946 },
|
| 58 |
+
{ month: 'Total', start: 0, end: 3164946 },
|
| 59 |
+
])
|
| 60 |
+
.encode('x', 'month')
|
| 61 |
+
.encode('y', ['end', 'start'])
|
| 62 |
+
.encode('color', (d) =>
|
| 63 |
+
d.month === 'Total' ? 'Total' : d.profit > 0 ? 'Increase' : 'Decrease',
|
| 64 |
+
)
|
| 65 |
+
.axis('y', { labelFormatter: '~s' })
|
| 66 |
+
.tooltip(['start', 'end']);
|
| 67 |
+
|
| 68 |
+
chart.render();
|
| 69 |
+
} catch (error) {
|
| 70 |
+
console.error(error);
|
| 71 |
+
const pre = document.createElement('pre');
|
| 72 |
+
pre.style.whiteSpace = 'pre-wrap';
|
| 73 |
+
pre.style.padding = '12px';
|
| 74 |
+
pre.style.margin = '12px';
|
| 75 |
+
pre.style.border = '1px solid #ddd';
|
| 76 |
+
pre.textContent = String(error && error.stack ? error.stack : error);
|
| 77 |
+
document.body.appendChild(pre);
|
| 78 |
+
} finally {
|
| 79 |
+
Math.random = __originalMathRandom;
|
| 80 |
+
}
|
| 81 |
+
})();
|
| 82 |
+
</script>
|
| 83 |
+
<!-- source: https://g2.antv.antgroup.com/examples/general/interval/#bar-range -->
|
| 84 |
+
</body>
|
| 85 |
+
</html>
|
web/AntV G2/bar/chart_0122_bar.html
ADDED
|
@@ -0,0 +1,109 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!doctype html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="utf-8" />
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
| 6 |
+
<title>微妙级区间条形图</title>
|
| 7 |
+
<style>
|
| 8 |
+
html, body {
|
| 9 |
+
margin: 0;
|
| 10 |
+
padding: 0;
|
| 11 |
+
width: 100%;
|
| 12 |
+
min-height: 100%;
|
| 13 |
+
font-family: Arial, sans-serif;
|
| 14 |
+
background: #ffffff;
|
| 15 |
+
}
|
| 16 |
+
.chart-container {
|
| 17 |
+
width: 100%;
|
| 18 |
+
height: 100vh;
|
| 19 |
+
}
|
| 20 |
+
</style>
|
| 21 |
+
<script src="./g2.min.js"></script>
|
| 22 |
+
</head>
|
| 23 |
+
<body>
|
| 24 |
+
<div id="container" class="chart-container"></div>
|
| 25 |
+
<script>
|
| 26 |
+
(async () => {
|
| 27 |
+
const __seedStart = 1005758843;
|
| 28 |
+
let __seed = __seedStart;
|
| 29 |
+
const __originalMathRandom = Math.random;
|
| 30 |
+
function __seededRandom() {
|
| 31 |
+
__seed = (__seed * 1664525 + 1013904223) >>> 0;
|
| 32 |
+
return __seed / 4294967296;
|
| 33 |
+
}
|
| 34 |
+
Math.random = __seededRandom;
|
| 35 |
+
try {
|
| 36 |
+
const { Chart } = G2;
|
| 37 |
+
|
| 38 |
+
const floatTimestamp = (s) => +new Date(s) + +`0.${s.slice(s.length - 3)}`;
|
| 39 |
+
|
| 40 |
+
const format = (n) => {
|
| 41 |
+
const x = Math.floor(n);
|
| 42 |
+
const s = n + '';
|
| 43 |
+
const d = new Date(x);
|
| 44 |
+
const Y = d.getFullYear();
|
| 45 |
+
const M = d.getMonth() + 1;
|
| 46 |
+
const D = d.getDate();
|
| 47 |
+
const H = d.getHours();
|
| 48 |
+
const MN = d.getMinutes();
|
| 49 |
+
const S = d.getSeconds();
|
| 50 |
+
const MS = d.getMilliseconds();
|
| 51 |
+
const MCM = s.slice(s.length - 3);
|
| 52 |
+
return `${Y}-${M}-${D} ${H}:${MN}:${S}.${MS}${MCM}`;
|
| 53 |
+
};
|
| 54 |
+
|
| 55 |
+
const chart = new Chart({
|
| 56 |
+
container: 'container',
|
| 57 |
+
autoFit: true,
|
| 58 |
+
});
|
| 59 |
+
|
| 60 |
+
chart
|
| 61 |
+
.interval()
|
| 62 |
+
.data([
|
| 63 |
+
{
|
| 64 |
+
task: 'task0',
|
| 65 |
+
startTime: '2023-06-28 03:30:33.900123', // micro seconds
|
| 66 |
+
endTime: '2023-06-28 03:30:33.900678', // micro seconds
|
| 67 |
+
status: '0',
|
| 68 |
+
},
|
| 69 |
+
{
|
| 70 |
+
task: 'task0',
|
| 71 |
+
startTime: '2023-06-28 03:30:33.901123',
|
| 72 |
+
endTime: '2023-06-28 03:30:33.902678',
|
| 73 |
+
status: '1',
|
| 74 |
+
},
|
| 75 |
+
])
|
| 76 |
+
.encode('x', 'task')
|
| 77 |
+
// Add float part to distinguish y and y1
|
| 78 |
+
.encode('y', (d) => floatTimestamp(d.startTime))
|
| 79 |
+
.encode('y1', (d) => floatTimestamp(d.endTime))
|
| 80 |
+
.encode('color', 'status')
|
| 81 |
+
.scale('y', {
|
| 82 |
+
type: 'time',
|
| 83 |
+
domain: [
|
| 84 |
+
new Date('2023-06-28 03:30:33.900'),
|
| 85 |
+
new Date('2023-06-28 03:30:33.903'),
|
| 86 |
+
],
|
| 87 |
+
})
|
| 88 |
+
.coordinate({ transform: [{ type: 'transpose' }] })
|
| 89 |
+
.tooltip({ channel: 'y', valueFormatter: format })
|
| 90 |
+
.tooltip({ channel: 'y1', valueFormatter: format });
|
| 91 |
+
|
| 92 |
+
chart.render();
|
| 93 |
+
} catch (error) {
|
| 94 |
+
console.error(error);
|
| 95 |
+
const pre = document.createElement('pre');
|
| 96 |
+
pre.style.whiteSpace = 'pre-wrap';
|
| 97 |
+
pre.style.padding = '12px';
|
| 98 |
+
pre.style.margin = '12px';
|
| 99 |
+
pre.style.border = '1px solid #ddd';
|
| 100 |
+
pre.textContent = String(error && error.stack ? error.stack : error);
|
| 101 |
+
document.body.appendChild(pre);
|
| 102 |
+
} finally {
|
| 103 |
+
Math.random = __originalMathRandom;
|
| 104 |
+
}
|
| 105 |
+
})();
|
| 106 |
+
</script>
|
| 107 |
+
<!-- source: https://g2.antv.antgroup.com/examples/general/interval/#bar-range-micro -->
|
| 108 |
+
</body>
|
| 109 |
+
</html>
|
web/AntV G2/bar/chart_0123_bar.html
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!doctype html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="utf-8" />
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
| 6 |
+
<title>堆叠条形图</title>
|
| 7 |
+
<style>
|
| 8 |
+
html, body {
|
| 9 |
+
margin: 0;
|
| 10 |
+
padding: 0;
|
| 11 |
+
width: 100%;
|
| 12 |
+
min-height: 100%;
|
| 13 |
+
font-family: Arial, sans-serif;
|
| 14 |
+
background: #ffffff;
|
| 15 |
+
}
|
| 16 |
+
.chart-container {
|
| 17 |
+
width: 100%;
|
| 18 |
+
height: 100vh;
|
| 19 |
+
}
|
| 20 |
+
</style>
|
| 21 |
+
<script src="./g2.min.js"></script>
|
| 22 |
+
</head>
|
| 23 |
+
<body>
|
| 24 |
+
<div id="container" class="chart-container"></div>
|
| 25 |
+
<script>
|
| 26 |
+
(async () => {
|
| 27 |
+
const __seedStart = 2810988408;
|
| 28 |
+
let __seed = __seedStart;
|
| 29 |
+
const __originalMathRandom = Math.random;
|
| 30 |
+
function __seededRandom() {
|
| 31 |
+
__seed = (__seed * 1664525 + 1013904223) >>> 0;
|
| 32 |
+
return __seed / 4294967296;
|
| 33 |
+
}
|
| 34 |
+
Math.random = __seededRandom;
|
| 35 |
+
try {
|
| 36 |
+
const { Chart } = G2;
|
| 37 |
+
const __embeddedData0 = [{"state":"AL","age":"<10","population":598478},{"state":"AK","age":"<10","population":106741},{"state":"AZ","age":"<10","population":892083},{"state":"AR","age":"<10","population":392177},{"state":"CA","age":"<10","population":5038433},{"state":"CO","age":"<10","population":690830},{"state":"CT","age":"<10","population":399369},{"state":"DE","age":"<10","population":112177},{"state":"DC","age":"<10","population":74377},{"state":"FL","age":"<10","population":2211012},{"state":"GA","age":"<10","population":1363631},{"state":"HI","age":"<10","population":176484},{"state":"ID","age":"<10","population":236658},{"state":"IL","age":"<10","population":1619682},{"state":"IN","age":"<10","population":863029},{"state":"IA","age":"<10","population":401712},{"state":"KS","age":"<10","population":401751},{"state":"KY","age":"<10","population":555615},{"state":"LA","age":"<10","population":622061},{"state":"ME","age":"<10","population":137954},{"state":"MD","age":"<10","population":741952},{"state":"MA","age":"<10","population":737748},{"state":"MI","age":"<10","population":1181424},{"state":"MN","age":"<10","population":711604},{"state":"MS","age":"<10","population":400288},{"state":"MO","age":"<10","population":763948},{"state":"MT","age":"<10","population":126020},{"state":"NE","age":"<10","population":263518},{"state":"NV","age":"<10","population":369362},{"state":"NH","age":"<10","population":138762},{"state":"NJ","age":"<10","population":1079136},{"state":"NM","age":"<10","population":276468},{"state":"NY","age":"<10","population":2319945},{"state":"NC","age":"<10","population":1250298},{"state":"ND","age":"<10","population":99477},{"state":"OH","age":"<10","population":1422838},{"state":"OK","age":"<10","population":534481},{"state":"OR","age":"<10","population":474456},{"state":"PA","age":"<10","population":1458931},{"state":"RI","age":"<10","population":111377},{"state":"SC","age":"<10","population":599591},{"state":"SD","age":"<10","population":120366},{"state":"TN","age":"<10","population":818404},{"state":"TX","age":"<10","population":3983091},{"state":"UT","age":"<10","population":513515},{"state":"VT","age":"<10","population":63768},{"state":"VA","age":"<10","population":1033629},{"state":"WA","age":"<10","population":895790},{"state":"WV","age":"<10","population":207017},{"state":"WI","age":"<10","population":705648},{"state":"WY","age":"<10","population":78217},{"state":"PR","age":"<10","population":389428},{"state":"AL","age":"10-19","population":638789},{"state":"AK","age":"10-19","population":99926},{"state":"AZ","age":"10-19","population":912735},{"state":"AR","age":"10-19","population":397185},{"state":"CA","age":"10-19","population":5170341},{"state":"CO","age":"10-19","population":697447},{"state":"CT","age":"10-19","population":481065},{"state":"DE","age":"10-19","population":117854},{"state":"DC","age":"10-19","population":62783},{"state":"FL","age":"10-19","population":2331102},{"state":"GA","age":"10-19","population":1421557},{"state":"HI","age":"10-19","population":163559},{"state":"ID","age":"10-19","population":239509},{"state":"IL","age":"10-19","population":1715984},{"state":"IN","age":"10-19","population":905594},{"state":"IA","age":"10-19","population":418667},{"state":"KS","age":"10-19","population":402092},{"state":"KY","age":"10-19","population":575866},{"state":"LA","age":"10-19","population":613633},{"state":"ME","age":"10-19","population":155774},{"state":"MD","age":"10-19","population":764730},{"state":"MA","age":"10-19","population":862371},{"state":"MI","age":"10-19","population":1324071},{"state":"MN","age":"10-19","population":714399},{"state":"MS","age":"10-19","population":421329},{"state":"MO","age":"10-19","population":792935},{"state":"MT","age":"10-19","population":126294},{"state":"NE","age":"10-19","population":257610},{"state":"NV","age":"10-19","population":360263},{"state":"NH","age":"10-19","population":167495},{"state":"NJ","age":"10-19","population":1153625},{"state":"NM","age":"10-19","population":282662},{"state":"NY","age":"10-19","population":2445591},{"state":"NC","age":"10-19","population":1310398},{"state":"ND","age":"10-19","population":91069},{"state":"OH","age":"10-19","population":1530264},{"state":"OK","age":"10-19","population":522282},{"state":"OR","age":"10-19","population":485345},{"state":"PA","age":"10-19","population":1608018},{"state":"RI","age":"10-19","population":136885},{"state":"SC","age":"10-19","population":619144},{"state":"SD","age":"10-19","population":113383},{"state":"TN","age":"10-19","population":842873},{"state":"TX","age":"10-19","population":3910528},{"state":"UT","age":"10-19","population":479126},{"state":"VT","age":"10-19","population":79351},{"state":"VA","age":"10-19","population":1065461},{"state":"WA","age":"10-19","population":882812},{"state":"WV","age":"10-19","population":218547},{"state":"WI","age":"10-19","population":755224},{"state":"WY","age":"10-19","population":75535},{"state":"PR","age":"10-19","population":479749},{"state":"AL","age":"20-29","population":661666},{"state":"AK","age":"20-29","population":120674},{"state":"AZ","age":"20-29","population":939804},{"state":"AR","age":"20-29","population":399698},{"state":"CA","age":"20-29","population":5809455},{"state":"CO","age":"20-29","population":780508},{"state":"CT","age":"20-29","population":462323},{"state":"DE","age":"20-29","population":127554},{"state":"DC","age":"20-29","population":136976},{"state":"FL","age":"20-29","population":2597830},{"state":"GA","age":"20-29","population":1418696},{"state":"HI","age":"20-29","population":204336},{"state":"ID","age":"20-29","population":218684},{"state":"IL","age":"20-29","population":1789739},{"state":"IN","age":"20-29","population":905590},{"state":"IA","age":"20-29","population":419456},{"state":"KS","age":"20-29","population":406956},{"state":"KY","age":"20-29","population":593819},{"state":"LA","age":"20-29","population":683606},{"state":"ME","age":"20-29","population":156359},{"state":"MD","age":"20-29","population":815346},{"state":"MA","age":"20-29","population":971340},{"state":"MI","age":"20-29","population":1338179},{"state":"MN","age":"20-29","population":728222},{"state":"MS","age":"20-29","population":414195},{"state":"MO","age":"20-29","population":831725},{"state":"MT","age":"20-29","population":136346},{"state":"NE","age":"20-29","population":260646},{"state":"NV","age":"20-29","population":392834},{"state":"NH","age":"20-29","population":167554},{"state":"NJ","age":"20-29","population":1139927},{"state":"NM","age":"20-29","population":289801},{"state":"NY","age":"20-29","population":2894266},{"state":"NC","age":"20-29","population":1350242},{"state":"ND","age":"20-29","population":124509},{"state":"OH","age":"20-29","population":1535538},{"state":"OK","age":"20-29","population":552528},{"state":"OR","age":"20-29","population":538596},{"state":"PA","age":"20-29","population":1712448},{"state":"RI","age":"20-29","population":153674},{"state":"SC","age":"20-29","population":667523},{"state":"SD","age":"20-29","population":116748},{"state":"TN","age":"20-29","population":895337},{"state":"TX","age":"20-29","population":3946447},{"state":"UT","age":"20-29","population":465219},{"state":"VT","age":"20-29","population":81765},{"state":"VA","age":"20-29","population":1170634},{"state":"WA","age":"20-29","population":1004428},{"state":"WV","age":"20-29","population":232027},{"state":"WI","age":"20-29","population":760961},{"state":"WY","age":"20-29","population":82898},{"state":"PR","age":"20-29","population":480184},{"state":"AL","age":"30-39","population":603013},{"state":"AK","age":"30-39","population":102008},{"state":"AZ","age":"30-39","population":857054},{"state":"AR","age":"30-39","population":372998},{"state":"CA","age":"30-39","population":5354112},{"state":"CO","age":"30-39","population":766382},{"state":"CT","age":"30-39","population":424890},{"state":"DE","age":"30-39","population":114063},{"state":"DC","age":"30-39","population":121520},{"state":"FL","age":"30-39","population":2416176},{"state":"GA","age":"30-39","population":1357210},{"state":"HI","age":"30-39","population":187590},{"state":"ID","age":"30-39","population":209500},{"state":"IL","age":"30-39","population":1721954},{"state":"IN","age":"30-39","population":827086},{"state":"IA","age":"30-39","population":383638},{"state":"KS","age":"30-39","population":368732},{"state":"KY","age":"30-39","population":558201},{"state":"LA","age":"30-39","population":615411},{"state":"ME","age":"30-39","population":147695},{"state":"MD","age":"30-39","population":784097},{"state":"MA","age":"30-39","population":847306},{"state":"MI","age":"30-39","population":1162186},{"state":"MN","age":"30-39","population":715583},{"state":"MS","age":"30-39","population":374724},{"state":"MO","age":"30-39","population":763002},{"state":"MT","age":"30-39","population":125004},{"state":"NE","age":"30-39","population":244236},{"state":"NV","age":"30-39","population":390261},{"state":"NH","age":"30-39","population":151409},{"state":"NJ","age":"30-39","population":1143452},{"state":"NM","age":"30-39","population":260579},{"state":"NY","age":"30-39","population":2605355},{"state":"NC","age":"30-39","population":1268976},{"state":"ND","age":"30-39","population":94713},{"state":"OH","age":"30-39","population":1398724},{"state":"OK","age":"30-39","population":501392},{"state":"OR","age":"30-39","population":537767},{"state":"PA","age":"30-39","population":1520409},{"state":"RI","age":"30-39","population":126503},{"state":"SC","age":"30-39","population":596491},{"state":"SD","age":"30-39","population":105499},{"state":"TN","age":"30-39","population":837313},{"state":"TX","age":"30-39","population":3770534},{"state":"UT","age":"30-39","population":436010},{"state":"VT","age":"30-39","population":70092},{"state":"VA","age":"30-39","population":1112111},{"state":"WA","age":"30-39","population":970613},{"state":"WV","age":"30-39","population":220494},{"state":"WI","age":"30-39","population":714479},{"state":"WY","age":"30-39","population":76912},{"state":"PR","age":"30-39","population":441842},{"state":"AL","age":"40-49","population":625599},{"state":"AK","age":"40-49","population":91539},{"state":"AZ","age":"40-49","population":833290},{"state":"AR","age":"40-49","population":370157},{"state":"CA","age":"40-49","population":5179258},{"state":"CO","age":"40-49","population":705450},{"state":"CT","age":"40-49","population":496265},{"state":"DE","age":"40-49","population":117588},{"state":"DC","age":"40-49","population":80570},{"state":"FL","age":"40-49","population":2575576},{"state":"GA","age":"40-49","population":1404698},{"state":"HI","age":"40-49","population":176904},{"state":"ID","age":"40-49","population":194678},{"state":"IL","age":"40-49","population":1697069},{"state":"IN","age":"40-49","population":844059},{"state":"IA","age":"40-49","population":370719},{"state":"KS","age":"40-49","population":344427},{"state":"KY","age":"40-49","population":580553},{"state":"LA","age":"40-49","population":571991},{"state":"ME","age":"40-49","population":176908},{"state":"MD","age":"40-49","population":815875},{"state":"MA","age":"40-49","population":916106},{"state":"MI","age":"40-49","population":1283122},{"state":"MN","age":"40-49","population":692201},{"state":"MS","age":"40-49","population":377165},{"state":"MO","age":"40-49","population":750989},{"state":"MT","age":"40-49","population":116502},{"state":"NE","age":"40-49","population":222479},{"state":"NV","age":"40-49","population":387272},{"state":"NH","age":"40-49","population":182703},{"state":"NJ","age":"40-49","population":1254602},{"state":"NM","age":"40-49","population":244346},{"state":"NY","age":"40-49","population":2617327},{"state":"NC","age":"40-49","population":1357746},{"state":"ND","age":"40-49","population":80327},{"state":"OH","age":"40-49","population":1490959},{"state":"OK","age":"40-49","population":469410},{"state":"OR","age":"40-49","population":507826},{"state":"PA","age":"40-49","population":1645291},{"state":"RI","age":"40-49","population":137892},{"state":"SC","age":"40-49","population":619792},{"state":"SD","age":"40-49","population":96288},{"state":"TN","age":"40-49","population":866343},{"state":"TX","age":"40-49","population":3545746},{"state":"UT","age":"40-49","population":328569},{"state":"VT","age":"40-49","population":79982},{"state":"VA","age":"40-49","population":1134928},{"state":"WA","age":"40-49","population":921205},{"state":"WV","age":"40-49","population":238218},{"state":"WI","age":"40-49","population":732280},{"state":"WY","age":"40-49","population":68464},{"state":"PR","age":"40-49","population":456009},{"state":"AL","age":"50-59","population":673864},{"state":"AK","age":"50-59","population":104569},{"state":"AZ","age":"50-59","population":834858},{"state":"AR","age":"50-59","population":395070},{"state":"CA","age":"50-59","population":5042094},{"state":"CO","age":"50-59","population":725661},{"state":"CT","age":"50-59","population":546361},{"state":"DE","age":"50-59","population":133331},{"state":"DC","age":"50-59","population":74779},{"state":"FL","age":"50-59","population":2762983},{"state":"GA","age":"50-59","population":1337985},{"state":"HI","age":"50-59","population":188438},{"state":"ID","age":"50-59","population":205170},{"state":"IL","age":"50-59","population":1773366},{"state":"IN","age":"50-59","population":911778},{"state":"IA","age":"50-59","population":427554},{"state":"KS","age":"50-59","population":389834},{"state":"KY","age":"50-59","population":623164},{"state":"LA","age":"50-59","population":631936},{"state":"ME","age":"50-59","population":215787},{"state":"MD","age":"50-59","population":862778},{"state":"MA","age":"50-59","population":979128},{"state":"MI","age":"50-59","population":1454462},{"state":"MN","age":"50-59","population":782655},{"state":"MS","age":"50-59","population":400164},{"state":"MO","age":"50-59","population":857534},{"state":"MT","age":"50-59","population":149800},{"state":"NE","age":"50-59","population":250911},{"state":"NV","age":"50-59","population":373757},{"state":"NH","age":"50-59","population":217950},{"state":"NJ","age":"50-59","population":1307263},{"state":"NM","age":"50-59","population":280363},{"state":"NY","age":"50-59","population":2755620},{"state":"NC","age":"50-59","population":1356117},{"state":"ND","age":"50-59","population":98688},{"state":"OH","age":"50-59","population":1677794},{"state":"OK","age":"50-59","population":512850},{"state":"OR","age":"50-59","population":534421},{"state":"PA","age":"50-59","population":1881378},{"state":"RI","age":"50-59","population":156127},{"state":"SC","age":"50-59","population":663408},{"state":"SD","age":"50-59","population":117012},{"state":"TN","age":"50-59","population":904272},{"state":"TX","age":"50-59","population":3344930},{"state":"UT","age":"50-59","population":301596},{"state":"VT","age":"50-59","population":99521},{"state":"VA","age":"50-59","population":1162028},{"state":"WA","age":"50-59","population":970407},{"state":"WV","age":"50-59","population":269346},{"state":"WI","age":"50-59","population":848672},{"state":"WY","age":"50-59","population":81018},{"state":"PR","age":"50-59","population":452503},{"state":"AL","age":"60-69","population":548376},{"state":"AK","age":"60-69","population":70473},{"state":"AZ","age":"60-69","population":737884},{"state":"AR","age":"60-69","population":329734},{"state":"CA","age":"60-69","population":3737461},{"state":"CO","age":"60-69","population":563376},{"state":"CT","age":"60-69","population":400995},{"state":"DE","age":"60-69","population":110822},{"state":"DC","age":"60-69","population":56984},{"state":"FL","age":"60-69","population":2404659},{"state":"GA","age":"60-69","population":998253},{"state":"HI","age":"60-69","population":164957},{"state":"ID","age":"60-69","population":179429},{"state":"IL","age":"60-69","population":1326121},{"state":"IN","age":"60-69","population":704523},{"state":"IA","age":"60-69","population":344037},{"state":"KS","age":"60-69","population":300759},{"state":"KY","age":"60-69","population":495736},{"state":"LA","age":"60-69","population":488846},{"state":"ME","age":"60-69","population":179540},{"state":"MD","age":"60-69","population":636309},{"state":"MA","age":"60-69","population":737805},{"state":"MI","age":"60-69","population":1148131},{"state":"MN","age":"60-69","population":577313},{"state":"MS","age":"60-69","population":319443},{"state":"MO","age":"60-69","population":668878},{"state":"MT","age":"60-69","population":130977},{"state":"NE","age":"60-69","population":195705},{"state":"NV","age":"60-69","population":309651},{"state":"NH","age":"60-69","population":164287},{"state":"NJ","age":"60-69","population":946399},{"state":"NM","age":"60-69","population":239044},{"state":"NY","age":"60-69","population":2095207},{"state":"NC","age":"60-69","population":1095320},{"state":"ND","age":"60-69","population":73825},{"state":"OH","age":"60-69","population":1320776},{"state":"OK","age":"60-69","population":404704},{"state":"OR","age":"60-69","population":490894},{"state":"PA","age":"60-69","population":1491536},{"state":"RI","age":"60-69","population":117653},{"state":"SC","age":"60-69","population":579856},{"state":"SD","age":"60-69","population":92824},{"state":"TN","age":"60-69","population":741045},{"state":"TX","age":"60-69","population":2431494},{"state":"UT","age":"60-69","population":230007},{"state":"VT","age":"60-69","population":82136},{"state":"VA","age":"60-69","population":881763},{"state":"WA","age":"60-69","population":784208},{"state":"WV","age":"60-69","population":243108},{"state":"WI","age":"60-69","population":645015},{"state":"WY","age":"60-69","population":67484},{"state":"PR","age":"60-69","population":411924},{"state":"AL","age":"70-79","population":316598},{"state":"AK","age":"70-79","population":28422},{"state":"AZ","age":"70-79","population":466153},{"state":"AR","age":"70-79","population":197985},{"state":"CA","age":"70-79","population":2011678},{"state":"CO","age":"70-79","population":274466},{"state":"CT","age":"70-79","population":217827},{"state":"DE","age":"70-79","population":65369},{"state":"DC","age":"70-79","population":31362},{"state":"FL","age":"70-79","population":1615547},{"state":"GA","age":"70-79","population":528108},{"state":"HI","age":"70-79","population":85345},{"state":"ID","age":"70-79","population":97621},{"state":"IL","age":"70-79","population":728821},{"state":"IN","age":"70-79","population":384788},{"state":"IA","age":"70-79","population":197223},{"state":"KS","age":"70-79","population":166104},{"state":"KY","age":"70-79","population":273961},{"state":"LA","age":"70-79","population":266123},{"state":"ME","age":"70-79","population":97899},{"state":"MD","age":"70-79","population":330736},{"state":"MA","age":"70-79","population":401931},{"state":"MI","age":"70-79","population":619722},{"state":"MN","age":"70-79","population":312906},{"state":"MS","age":"70-79","population":181195},{"state":"MO","age":"70-79","population":388086},{"state":"MT","age":"70-79","population":70528},{"state":"NE","age":"70-79","population":107650},{"state":"NV","age":"70-79","population":173499},{"state":"NH","age":"70-79","population":84791},{"state":"NJ","age":"70-79","population":523620},{"state":"NM","age":"70-79","population":135013},{"state":"NY","age":"70-79","population":1160055},{"state":"NC","age":"70-79","population":609234},{"state":"ND","age":"70-79","population":41348},{"state":"OH","age":"70-79","population":728158},{"state":"OK","age":"70-79","population":239887},{"state":"OR","age":"70-79","population":255809},{"state":"PA","age":"70-79","population":850897},{"state":"RI","age":"70-79","population":63359},{"state":"SC","age":"70-79","population":322073},{"state":"SD","age":"70-79","population":50398},{"state":"TN","age":"70-79","population":414939},{"state":"TX","age":"70-79","population":1291486},{"state":"UT","age":"70-79","population":123674},{"state":"VT","age":"70-79","population":42978},{"state":"VA","age":"70-79","population":475141},{"state":"WA","age":"70-79","population":401094},{"state":"WV","age":"70-79","population":138134},{"state":"WI","age":"70-79","population":350772},{"state":"WY","age":"70-79","population":32819},{"state":"PR","age":"70-79","population":268783},{"state":"AL","age":"≥80","population":174781},{"state":"AK","age":"≥80","population":12503},{"state":"AZ","age":"≥80","population":254716},{"state":"AR","age":"≥80","population":113468},{"state":"CA","age":"≥80","population":1311374},{"state":"CO","age":"≥80","population":155175},{"state":"CT","age":"≥80","population":159475},{"state":"DE","age":"≥80","population":35937},{"state":"DC","age":"≥80","population":19658},{"state":"FL","age":"≥80","population":1019566},{"state":"GA","age":"≥80","population":269182},{"state":"HI","age":"≥80","population":66060},{"state":"ID","age":"≥80","population":54234},{"state":"IL","age":"≥80","population":478948},{"state":"IN","age":"≥80","population":243131},{"state":"IA","age":"≥80","population":143583},{"state":"KS","age":"≥80","population":117637},{"state":"KY","age":"≥80","population":155074},{"state":"LA","age":"≥80","population":152063},{"state":"ME","age":"≥80","population":62007},{"state":"MD","age":"≥80","population":208079},{"state":"MA","age":"≥80","population":288408},{"state":"MI","age":"≥80","population":398303},{"state":"MN","age":"≥80","population":215985},{"state":"MS","age":"≥80","population":100689},{"state":"MO","age":"≥80","population":242554},{"state":"MT","age":"≥80","population":41920},{"state":"NE","age":"≥80","population":78504},{"state":"NV","age":"≥80","population":82273},{"state":"NH","age":"≥80","population":52552},{"state":"NJ","age":"≥80","population":367432},{"state":"NM","age":"≥80","population":74393},{"state":"NY","age":"≥80","population":804091},{"state":"NC","age":"≥80","population":342497},{"state":"ND","age":"≥80","population":32206},{"state":"OH","age":"≥80","population":481890},{"state":"OK","age":"≥80","population":138055},{"state":"OR","age":"≥80","population":157153},{"state":"PA","age":"≥80","population":615069},{"state":"RI","age":"≥80","population":51021},{"state":"SC","age":"≥80","population":166727},{"state":"SD","age":"≥80","population":38540},{"state":"TN","age":"≥80","population":227483},{"state":"TX","age":"≥80","population":732179},{"state":"UT","age":"≥80","population":70711},{"state":"VT","age":"≥80","population":26656},{"state":"VA","age":"≥80","population":274606},{"state":"WA","age":"≥80","population":242589},{"state":"WV","age":"≥80","population":79201},{"state":"WI","age":"≥80","population":241747},{"state":"WY","age":"≥80","population":19682},{"state":"PR","age":"≥80","population":148963}];
|
| 38 |
+
/**
|
| 39 |
+
* A recreation of this demo: https://observablehq.com/@d3/stacked-bar-chart
|
| 40 |
+
*/
|
| 41 |
+
|
| 42 |
+
const chart = new Chart({
|
| 43 |
+
container: 'container',
|
| 44 |
+
autoFit: true,
|
| 45 |
+
});
|
| 46 |
+
|
| 47 |
+
chart
|
| 48 |
+
.interval()
|
| 49 |
+
.data({
|
| 50 |
+
value: __embeddedData0,
|
| 51 |
+
format: 'csv',
|
| 52 |
+
})
|
| 53 |
+
.transform({ type: 'stackY' })
|
| 54 |
+
.transform({ type: 'sortX', by: 'y', reverse: true })
|
| 55 |
+
.encode('x', 'state')
|
| 56 |
+
.encode('y', 'population')
|
| 57 |
+
.encode('color', 'age')
|
| 58 |
+
.axis('x', {
|
| 59 |
+
labelSpacing: 4,
|
| 60 |
+
labelTransform: 'rotate(90)',
|
| 61 |
+
})
|
| 62 |
+
.axis('y', { labelFormatter: '~s' });
|
| 63 |
+
|
| 64 |
+
chart.render();
|
| 65 |
+
} catch (error) {
|
| 66 |
+
console.error(error);
|
| 67 |
+
const pre = document.createElement('pre');
|
| 68 |
+
pre.style.whiteSpace = 'pre-wrap';
|
| 69 |
+
pre.style.padding = '12px';
|
| 70 |
+
pre.style.margin = '12px';
|
| 71 |
+
pre.style.border = '1px solid #ddd';
|
| 72 |
+
pre.textContent = String(error && error.stack ? error.stack : error);
|
| 73 |
+
document.body.appendChild(pre);
|
| 74 |
+
} finally {
|
| 75 |
+
Math.random = __originalMathRandom;
|
| 76 |
+
}
|
| 77 |
+
})();
|
| 78 |
+
</script>
|
| 79 |
+
<!-- source: https://g2.antv.antgroup.com/examples/general/interval/#bar-stacked -->
|
| 80 |
+
</body>
|
| 81 |
+
</html>
|
web/AntV G2/bar/chart_0124_bar.html
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!doctype html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="utf-8" />
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
| 6 |
+
<title>堆叠水平条形图</title>
|
| 7 |
+
<style>
|
| 8 |
+
html, body {
|
| 9 |
+
margin: 0;
|
| 10 |
+
padding: 0;
|
| 11 |
+
width: 100%;
|
| 12 |
+
min-height: 100%;
|
| 13 |
+
font-family: Arial, sans-serif;
|
| 14 |
+
background: #ffffff;
|
| 15 |
+
}
|
| 16 |
+
.chart-container {
|
| 17 |
+
width: 100%;
|
| 18 |
+
height: 100vh;
|
| 19 |
+
}
|
| 20 |
+
</style>
|
| 21 |
+
<script src="./g2.min.js"></script>
|
| 22 |
+
</head>
|
| 23 |
+
<body>
|
| 24 |
+
<div id="container" class="chart-container"></div>
|
| 25 |
+
<script>
|
| 26 |
+
(async () => {
|
| 27 |
+
const __seedStart = 3185869264;
|
| 28 |
+
let __seed = __seedStart;
|
| 29 |
+
const __originalMathRandom = Math.random;
|
| 30 |
+
function __seededRandom() {
|
| 31 |
+
__seed = (__seed * 1664525 + 1013904223) >>> 0;
|
| 32 |
+
return __seed / 4294967296;
|
| 33 |
+
}
|
| 34 |
+
Math.random = __seededRandom;
|
| 35 |
+
try {
|
| 36 |
+
const { Chart } = G2;
|
| 37 |
+
const __embeddedData0 = [{"state":"AL","age":"<10","population":598478},{"state":"AK","age":"<10","population":106741},{"state":"AZ","age":"<10","population":892083},{"state":"AR","age":"<10","population":392177},{"state":"CA","age":"<10","population":5038433},{"state":"CO","age":"<10","population":690830},{"state":"CT","age":"<10","population":399369},{"state":"DE","age":"<10","population":112177},{"state":"DC","age":"<10","population":74377},{"state":"FL","age":"<10","population":2211012},{"state":"GA","age":"<10","population":1363631},{"state":"HI","age":"<10","population":176484},{"state":"ID","age":"<10","population":236658},{"state":"IL","age":"<10","population":1619682},{"state":"IN","age":"<10","population":863029},{"state":"IA","age":"<10","population":401712},{"state":"KS","age":"<10","population":401751},{"state":"KY","age":"<10","population":555615},{"state":"LA","age":"<10","population":622061},{"state":"ME","age":"<10","population":137954},{"state":"MD","age":"<10","population":741952},{"state":"MA","age":"<10","population":737748},{"state":"MI","age":"<10","population":1181424},{"state":"MN","age":"<10","population":711604},{"state":"MS","age":"<10","population":400288},{"state":"MO","age":"<10","population":763948},{"state":"MT","age":"<10","population":126020},{"state":"NE","age":"<10","population":263518},{"state":"NV","age":"<10","population":369362},{"state":"NH","age":"<10","population":138762},{"state":"NJ","age":"<10","population":1079136},{"state":"NM","age":"<10","population":276468},{"state":"NY","age":"<10","population":2319945},{"state":"NC","age":"<10","population":1250298},{"state":"ND","age":"<10","population":99477},{"state":"OH","age":"<10","population":1422838},{"state":"OK","age":"<10","population":534481},{"state":"OR","age":"<10","population":474456},{"state":"PA","age":"<10","population":1458931},{"state":"RI","age":"<10","population":111377},{"state":"SC","age":"<10","population":599591},{"state":"SD","age":"<10","population":120366},{"state":"TN","age":"<10","population":818404},{"state":"TX","age":"<10","population":3983091},{"state":"UT","age":"<10","population":513515},{"state":"VT","age":"<10","population":63768},{"state":"VA","age":"<10","population":1033629},{"state":"WA","age":"<10","population":895790},{"state":"WV","age":"<10","population":207017},{"state":"WI","age":"<10","population":705648},{"state":"WY","age":"<10","population":78217},{"state":"PR","age":"<10","population":389428},{"state":"AL","age":"10-19","population":638789},{"state":"AK","age":"10-19","population":99926},{"state":"AZ","age":"10-19","population":912735},{"state":"AR","age":"10-19","population":397185},{"state":"CA","age":"10-19","population":5170341},{"state":"CO","age":"10-19","population":697447},{"state":"CT","age":"10-19","population":481065},{"state":"DE","age":"10-19","population":117854},{"state":"DC","age":"10-19","population":62783},{"state":"FL","age":"10-19","population":2331102},{"state":"GA","age":"10-19","population":1421557},{"state":"HI","age":"10-19","population":163559},{"state":"ID","age":"10-19","population":239509},{"state":"IL","age":"10-19","population":1715984},{"state":"IN","age":"10-19","population":905594},{"state":"IA","age":"10-19","population":418667},{"state":"KS","age":"10-19","population":402092},{"state":"KY","age":"10-19","population":575866},{"state":"LA","age":"10-19","population":613633},{"state":"ME","age":"10-19","population":155774},{"state":"MD","age":"10-19","population":764730},{"state":"MA","age":"10-19","population":862371},{"state":"MI","age":"10-19","population":1324071},{"state":"MN","age":"10-19","population":714399},{"state":"MS","age":"10-19","population":421329},{"state":"MO","age":"10-19","population":792935},{"state":"MT","age":"10-19","population":126294},{"state":"NE","age":"10-19","population":257610},{"state":"NV","age":"10-19","population":360263},{"state":"NH","age":"10-19","population":167495},{"state":"NJ","age":"10-19","population":1153625},{"state":"NM","age":"10-19","population":282662},{"state":"NY","age":"10-19","population":2445591},{"state":"NC","age":"10-19","population":1310398},{"state":"ND","age":"10-19","population":91069},{"state":"OH","age":"10-19","population":1530264},{"state":"OK","age":"10-19","population":522282},{"state":"OR","age":"10-19","population":485345},{"state":"PA","age":"10-19","population":1608018},{"state":"RI","age":"10-19","population":136885},{"state":"SC","age":"10-19","population":619144},{"state":"SD","age":"10-19","population":113383},{"state":"TN","age":"10-19","population":842873},{"state":"TX","age":"10-19","population":3910528},{"state":"UT","age":"10-19","population":479126},{"state":"VT","age":"10-19","population":79351},{"state":"VA","age":"10-19","population":1065461},{"state":"WA","age":"10-19","population":882812},{"state":"WV","age":"10-19","population":218547},{"state":"WI","age":"10-19","population":755224},{"state":"WY","age":"10-19","population":75535},{"state":"PR","age":"10-19","population":479749},{"state":"AL","age":"20-29","population":661666},{"state":"AK","age":"20-29","population":120674},{"state":"AZ","age":"20-29","population":939804},{"state":"AR","age":"20-29","population":399698},{"state":"CA","age":"20-29","population":5809455},{"state":"CO","age":"20-29","population":780508},{"state":"CT","age":"20-29","population":462323},{"state":"DE","age":"20-29","population":127554},{"state":"DC","age":"20-29","population":136976},{"state":"FL","age":"20-29","population":2597830},{"state":"GA","age":"20-29","population":1418696},{"state":"HI","age":"20-29","population":204336},{"state":"ID","age":"20-29","population":218684},{"state":"IL","age":"20-29","population":1789739},{"state":"IN","age":"20-29","population":905590},{"state":"IA","age":"20-29","population":419456},{"state":"KS","age":"20-29","population":406956},{"state":"KY","age":"20-29","population":593819},{"state":"LA","age":"20-29","population":683606},{"state":"ME","age":"20-29","population":156359},{"state":"MD","age":"20-29","population":815346},{"state":"MA","age":"20-29","population":971340},{"state":"MI","age":"20-29","population":1338179},{"state":"MN","age":"20-29","population":728222},{"state":"MS","age":"20-29","population":414195},{"state":"MO","age":"20-29","population":831725},{"state":"MT","age":"20-29","population":136346},{"state":"NE","age":"20-29","population":260646},{"state":"NV","age":"20-29","population":392834},{"state":"NH","age":"20-29","population":167554},{"state":"NJ","age":"20-29","population":1139927},{"state":"NM","age":"20-29","population":289801},{"state":"NY","age":"20-29","population":2894266},{"state":"NC","age":"20-29","population":1350242},{"state":"ND","age":"20-29","population":124509},{"state":"OH","age":"20-29","population":1535538},{"state":"OK","age":"20-29","population":552528},{"state":"OR","age":"20-29","population":538596},{"state":"PA","age":"20-29","population":1712448},{"state":"RI","age":"20-29","population":153674},{"state":"SC","age":"20-29","population":667523},{"state":"SD","age":"20-29","population":116748},{"state":"TN","age":"20-29","population":895337},{"state":"TX","age":"20-29","population":3946447},{"state":"UT","age":"20-29","population":465219},{"state":"VT","age":"20-29","population":81765},{"state":"VA","age":"20-29","population":1170634},{"state":"WA","age":"20-29","population":1004428},{"state":"WV","age":"20-29","population":232027},{"state":"WI","age":"20-29","population":760961},{"state":"WY","age":"20-29","population":82898},{"state":"PR","age":"20-29","population":480184},{"state":"AL","age":"30-39","population":603013},{"state":"AK","age":"30-39","population":102008},{"state":"AZ","age":"30-39","population":857054},{"state":"AR","age":"30-39","population":372998},{"state":"CA","age":"30-39","population":5354112},{"state":"CO","age":"30-39","population":766382},{"state":"CT","age":"30-39","population":424890},{"state":"DE","age":"30-39","population":114063},{"state":"DC","age":"30-39","population":121520},{"state":"FL","age":"30-39","population":2416176},{"state":"GA","age":"30-39","population":1357210},{"state":"HI","age":"30-39","population":187590},{"state":"ID","age":"30-39","population":209500},{"state":"IL","age":"30-39","population":1721954},{"state":"IN","age":"30-39","population":827086},{"state":"IA","age":"30-39","population":383638},{"state":"KS","age":"30-39","population":368732},{"state":"KY","age":"30-39","population":558201},{"state":"LA","age":"30-39","population":615411},{"state":"ME","age":"30-39","population":147695},{"state":"MD","age":"30-39","population":784097},{"state":"MA","age":"30-39","population":847306},{"state":"MI","age":"30-39","population":1162186},{"state":"MN","age":"30-39","population":715583},{"state":"MS","age":"30-39","population":374724},{"state":"MO","age":"30-39","population":763002},{"state":"MT","age":"30-39","population":125004},{"state":"NE","age":"30-39","population":244236},{"state":"NV","age":"30-39","population":390261},{"state":"NH","age":"30-39","population":151409},{"state":"NJ","age":"30-39","population":1143452},{"state":"NM","age":"30-39","population":260579},{"state":"NY","age":"30-39","population":2605355},{"state":"NC","age":"30-39","population":1268976},{"state":"ND","age":"30-39","population":94713},{"state":"OH","age":"30-39","population":1398724},{"state":"OK","age":"30-39","population":501392},{"state":"OR","age":"30-39","population":537767},{"state":"PA","age":"30-39","population":1520409},{"state":"RI","age":"30-39","population":126503},{"state":"SC","age":"30-39","population":596491},{"state":"SD","age":"30-39","population":105499},{"state":"TN","age":"30-39","population":837313},{"state":"TX","age":"30-39","population":3770534},{"state":"UT","age":"30-39","population":436010},{"state":"VT","age":"30-39","population":70092},{"state":"VA","age":"30-39","population":1112111},{"state":"WA","age":"30-39","population":970613},{"state":"WV","age":"30-39","population":220494},{"state":"WI","age":"30-39","population":714479},{"state":"WY","age":"30-39","population":76912},{"state":"PR","age":"30-39","population":441842},{"state":"AL","age":"40-49","population":625599},{"state":"AK","age":"40-49","population":91539},{"state":"AZ","age":"40-49","population":833290},{"state":"AR","age":"40-49","population":370157},{"state":"CA","age":"40-49","population":5179258},{"state":"CO","age":"40-49","population":705450},{"state":"CT","age":"40-49","population":496265},{"state":"DE","age":"40-49","population":117588},{"state":"DC","age":"40-49","population":80570},{"state":"FL","age":"40-49","population":2575576},{"state":"GA","age":"40-49","population":1404698},{"state":"HI","age":"40-49","population":176904},{"state":"ID","age":"40-49","population":194678},{"state":"IL","age":"40-49","population":1697069},{"state":"IN","age":"40-49","population":844059},{"state":"IA","age":"40-49","population":370719},{"state":"KS","age":"40-49","population":344427},{"state":"KY","age":"40-49","population":580553},{"state":"LA","age":"40-49","population":571991},{"state":"ME","age":"40-49","population":176908},{"state":"MD","age":"40-49","population":815875},{"state":"MA","age":"40-49","population":916106},{"state":"MI","age":"40-49","population":1283122},{"state":"MN","age":"40-49","population":692201},{"state":"MS","age":"40-49","population":377165},{"state":"MO","age":"40-49","population":750989},{"state":"MT","age":"40-49","population":116502},{"state":"NE","age":"40-49","population":222479},{"state":"NV","age":"40-49","population":387272},{"state":"NH","age":"40-49","population":182703},{"state":"NJ","age":"40-49","population":1254602},{"state":"NM","age":"40-49","population":244346},{"state":"NY","age":"40-49","population":2617327},{"state":"NC","age":"40-49","population":1357746},{"state":"ND","age":"40-49","population":80327},{"state":"OH","age":"40-49","population":1490959},{"state":"OK","age":"40-49","population":469410},{"state":"OR","age":"40-49","population":507826},{"state":"PA","age":"40-49","population":1645291},{"state":"RI","age":"40-49","population":137892},{"state":"SC","age":"40-49","population":619792},{"state":"SD","age":"40-49","population":96288},{"state":"TN","age":"40-49","population":866343},{"state":"TX","age":"40-49","population":3545746},{"state":"UT","age":"40-49","population":328569},{"state":"VT","age":"40-49","population":79982},{"state":"VA","age":"40-49","population":1134928},{"state":"WA","age":"40-49","population":921205},{"state":"WV","age":"40-49","population":238218},{"state":"WI","age":"40-49","population":732280},{"state":"WY","age":"40-49","population":68464},{"state":"PR","age":"40-49","population":456009},{"state":"AL","age":"50-59","population":673864},{"state":"AK","age":"50-59","population":104569},{"state":"AZ","age":"50-59","population":834858},{"state":"AR","age":"50-59","population":395070},{"state":"CA","age":"50-59","population":5042094},{"state":"CO","age":"50-59","population":725661},{"state":"CT","age":"50-59","population":546361},{"state":"DE","age":"50-59","population":133331},{"state":"DC","age":"50-59","population":74779},{"state":"FL","age":"50-59","population":2762983},{"state":"GA","age":"50-59","population":1337985},{"state":"HI","age":"50-59","population":188438},{"state":"ID","age":"50-59","population":205170},{"state":"IL","age":"50-59","population":1773366},{"state":"IN","age":"50-59","population":911778},{"state":"IA","age":"50-59","population":427554},{"state":"KS","age":"50-59","population":389834},{"state":"KY","age":"50-59","population":623164},{"state":"LA","age":"50-59","population":631936},{"state":"ME","age":"50-59","population":215787},{"state":"MD","age":"50-59","population":862778},{"state":"MA","age":"50-59","population":979128},{"state":"MI","age":"50-59","population":1454462},{"state":"MN","age":"50-59","population":782655},{"state":"MS","age":"50-59","population":400164},{"state":"MO","age":"50-59","population":857534},{"state":"MT","age":"50-59","population":149800},{"state":"NE","age":"50-59","population":250911},{"state":"NV","age":"50-59","population":373757},{"state":"NH","age":"50-59","population":217950},{"state":"NJ","age":"50-59","population":1307263},{"state":"NM","age":"50-59","population":280363},{"state":"NY","age":"50-59","population":2755620},{"state":"NC","age":"50-59","population":1356117},{"state":"ND","age":"50-59","population":98688},{"state":"OH","age":"50-59","population":1677794},{"state":"OK","age":"50-59","population":512850},{"state":"OR","age":"50-59","population":534421},{"state":"PA","age":"50-59","population":1881378},{"state":"RI","age":"50-59","population":156127},{"state":"SC","age":"50-59","population":663408},{"state":"SD","age":"50-59","population":117012},{"state":"TN","age":"50-59","population":904272},{"state":"TX","age":"50-59","population":3344930},{"state":"UT","age":"50-59","population":301596},{"state":"VT","age":"50-59","population":99521},{"state":"VA","age":"50-59","population":1162028},{"state":"WA","age":"50-59","population":970407},{"state":"WV","age":"50-59","population":269346},{"state":"WI","age":"50-59","population":848672},{"state":"WY","age":"50-59","population":81018},{"state":"PR","age":"50-59","population":452503},{"state":"AL","age":"60-69","population":548376},{"state":"AK","age":"60-69","population":70473},{"state":"AZ","age":"60-69","population":737884},{"state":"AR","age":"60-69","population":329734},{"state":"CA","age":"60-69","population":3737461},{"state":"CO","age":"60-69","population":563376},{"state":"CT","age":"60-69","population":400995},{"state":"DE","age":"60-69","population":110822},{"state":"DC","age":"60-69","population":56984},{"state":"FL","age":"60-69","population":2404659},{"state":"GA","age":"60-69","population":998253},{"state":"HI","age":"60-69","population":164957},{"state":"ID","age":"60-69","population":179429},{"state":"IL","age":"60-69","population":1326121},{"state":"IN","age":"60-69","population":704523},{"state":"IA","age":"60-69","population":344037},{"state":"KS","age":"60-69","population":300759},{"state":"KY","age":"60-69","population":495736},{"state":"LA","age":"60-69","population":488846},{"state":"ME","age":"60-69","population":179540},{"state":"MD","age":"60-69","population":636309},{"state":"MA","age":"60-69","population":737805},{"state":"MI","age":"60-69","population":1148131},{"state":"MN","age":"60-69","population":577313},{"state":"MS","age":"60-69","population":319443},{"state":"MO","age":"60-69","population":668878},{"state":"MT","age":"60-69","population":130977},{"state":"NE","age":"60-69","population":195705},{"state":"NV","age":"60-69","population":309651},{"state":"NH","age":"60-69","population":164287},{"state":"NJ","age":"60-69","population":946399},{"state":"NM","age":"60-69","population":239044},{"state":"NY","age":"60-69","population":2095207},{"state":"NC","age":"60-69","population":1095320},{"state":"ND","age":"60-69","population":73825},{"state":"OH","age":"60-69","population":1320776},{"state":"OK","age":"60-69","population":404704},{"state":"OR","age":"60-69","population":490894},{"state":"PA","age":"60-69","population":1491536},{"state":"RI","age":"60-69","population":117653},{"state":"SC","age":"60-69","population":579856},{"state":"SD","age":"60-69","population":92824},{"state":"TN","age":"60-69","population":741045},{"state":"TX","age":"60-69","population":2431494},{"state":"UT","age":"60-69","population":230007},{"state":"VT","age":"60-69","population":82136},{"state":"VA","age":"60-69","population":881763},{"state":"WA","age":"60-69","population":784208},{"state":"WV","age":"60-69","population":243108},{"state":"WI","age":"60-69","population":645015},{"state":"WY","age":"60-69","population":67484},{"state":"PR","age":"60-69","population":411924},{"state":"AL","age":"70-79","population":316598},{"state":"AK","age":"70-79","population":28422},{"state":"AZ","age":"70-79","population":466153},{"state":"AR","age":"70-79","population":197985},{"state":"CA","age":"70-79","population":2011678},{"state":"CO","age":"70-79","population":274466},{"state":"CT","age":"70-79","population":217827},{"state":"DE","age":"70-79","population":65369},{"state":"DC","age":"70-79","population":31362},{"state":"FL","age":"70-79","population":1615547},{"state":"GA","age":"70-79","population":528108},{"state":"HI","age":"70-79","population":85345},{"state":"ID","age":"70-79","population":97621},{"state":"IL","age":"70-79","population":728821},{"state":"IN","age":"70-79","population":384788},{"state":"IA","age":"70-79","population":197223},{"state":"KS","age":"70-79","population":166104},{"state":"KY","age":"70-79","population":273961},{"state":"LA","age":"70-79","population":266123},{"state":"ME","age":"70-79","population":97899},{"state":"MD","age":"70-79","population":330736},{"state":"MA","age":"70-79","population":401931},{"state":"MI","age":"70-79","population":619722},{"state":"MN","age":"70-79","population":312906},{"state":"MS","age":"70-79","population":181195},{"state":"MO","age":"70-79","population":388086},{"state":"MT","age":"70-79","population":70528},{"state":"NE","age":"70-79","population":107650},{"state":"NV","age":"70-79","population":173499},{"state":"NH","age":"70-79","population":84791},{"state":"NJ","age":"70-79","population":523620},{"state":"NM","age":"70-79","population":135013},{"state":"NY","age":"70-79","population":1160055},{"state":"NC","age":"70-79","population":609234},{"state":"ND","age":"70-79","population":41348},{"state":"OH","age":"70-79","population":728158},{"state":"OK","age":"70-79","population":239887},{"state":"OR","age":"70-79","population":255809},{"state":"PA","age":"70-79","population":850897},{"state":"RI","age":"70-79","population":63359},{"state":"SC","age":"70-79","population":322073},{"state":"SD","age":"70-79","population":50398},{"state":"TN","age":"70-79","population":414939},{"state":"TX","age":"70-79","population":1291486},{"state":"UT","age":"70-79","population":123674},{"state":"VT","age":"70-79","population":42978},{"state":"VA","age":"70-79","population":475141},{"state":"WA","age":"70-79","population":401094},{"state":"WV","age":"70-79","population":138134},{"state":"WI","age":"70-79","population":350772},{"state":"WY","age":"70-79","population":32819},{"state":"PR","age":"70-79","population":268783},{"state":"AL","age":"≥80","population":174781},{"state":"AK","age":"≥80","population":12503},{"state":"AZ","age":"≥80","population":254716},{"state":"AR","age":"≥80","population":113468},{"state":"CA","age":"≥80","population":1311374},{"state":"CO","age":"≥80","population":155175},{"state":"CT","age":"≥80","population":159475},{"state":"DE","age":"≥80","population":35937},{"state":"DC","age":"≥80","population":19658},{"state":"FL","age":"≥80","population":1019566},{"state":"GA","age":"≥80","population":269182},{"state":"HI","age":"≥80","population":66060},{"state":"ID","age":"≥80","population":54234},{"state":"IL","age":"≥80","population":478948},{"state":"IN","age":"≥80","population":243131},{"state":"IA","age":"≥80","population":143583},{"state":"KS","age":"≥80","population":117637},{"state":"KY","age":"≥80","population":155074},{"state":"LA","age":"≥80","population":152063},{"state":"ME","age":"≥80","population":62007},{"state":"MD","age":"≥80","population":208079},{"state":"MA","age":"≥80","population":288408},{"state":"MI","age":"≥80","population":398303},{"state":"MN","age":"≥80","population":215985},{"state":"MS","age":"≥80","population":100689},{"state":"MO","age":"≥80","population":242554},{"state":"MT","age":"≥80","population":41920},{"state":"NE","age":"≥80","population":78504},{"state":"NV","age":"≥80","population":82273},{"state":"NH","age":"≥80","population":52552},{"state":"NJ","age":"≥80","population":367432},{"state":"NM","age":"≥80","population":74393},{"state":"NY","age":"≥80","population":804091},{"state":"NC","age":"≥80","population":342497},{"state":"ND","age":"≥80","population":32206},{"state":"OH","age":"≥80","population":481890},{"state":"OK","age":"≥80","population":138055},{"state":"OR","age":"≥80","population":157153},{"state":"PA","age":"≥80","population":615069},{"state":"RI","age":"≥80","population":51021},{"state":"SC","age":"≥80","population":166727},{"state":"SD","age":"≥80","population":38540},{"state":"TN","age":"≥80","population":227483},{"state":"TX","age":"≥80","population":732179},{"state":"UT","age":"≥80","population":70711},{"state":"VT","age":"≥80","population":26656},{"state":"VA","age":"≥80","population":274606},{"state":"WA","age":"≥80","population":242589},{"state":"WV","age":"≥80","population":79201},{"state":"WI","age":"≥80","population":241747},{"state":"WY","age":"≥80","population":19682},{"state":"PR","age":"≥80","population":148963}];
|
| 38 |
+
/**
|
| 39 |
+
* A recreation of this demo: https://observablehq.com/@d3/stacked-horizontal-bar-chart
|
| 40 |
+
*/
|
| 41 |
+
|
| 42 |
+
const chart = new Chart({
|
| 43 |
+
container: 'container',
|
| 44 |
+
autoFit: true,
|
| 45 |
+
});
|
| 46 |
+
|
| 47 |
+
chart.coordinate({ transform: [{ type: 'transpose' }] });
|
| 48 |
+
|
| 49 |
+
chart
|
| 50 |
+
.interval()
|
| 51 |
+
.data({
|
| 52 |
+
value: __embeddedData0,
|
| 53 |
+
format: 'csv',
|
| 54 |
+
})
|
| 55 |
+
.transform({ type: 'stackY' })
|
| 56 |
+
.transform({ type: 'sortX', by: 'y', reverse: true })
|
| 57 |
+
.encode('x', 'state')
|
| 58 |
+
.encode('y', 'population')
|
| 59 |
+
.encode('color', 'age')
|
| 60 |
+
.axis('y', { labelFormatter: '~s' });
|
| 61 |
+
|
| 62 |
+
chart.render();
|
| 63 |
+
} catch (error) {
|
| 64 |
+
console.error(error);
|
| 65 |
+
const pre = document.createElement('pre');
|
| 66 |
+
pre.style.whiteSpace = 'pre-wrap';
|
| 67 |
+
pre.style.padding = '12px';
|
| 68 |
+
pre.style.margin = '12px';
|
| 69 |
+
pre.style.border = '1px solid #ddd';
|
| 70 |
+
pre.textContent = String(error && error.stack ? error.stack : error);
|
| 71 |
+
document.body.appendChild(pre);
|
| 72 |
+
} finally {
|
| 73 |
+
Math.random = __originalMathRandom;
|
| 74 |
+
}
|
| 75 |
+
})();
|
| 76 |
+
</script>
|
| 77 |
+
<!-- source: https://g2.antv.antgroup.com/examples/general/interval/#bar-stacked-horizontal -->
|
| 78 |
+
</body>
|
| 79 |
+
</html>
|
web/AntV G2/bar/chart_0125_bar.html
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!doctype html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="utf-8" />
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
| 6 |
+
<title>归一化堆叠条形图</title>
|
| 7 |
+
<style>
|
| 8 |
+
html, body {
|
| 9 |
+
margin: 0;
|
| 10 |
+
padding: 0;
|
| 11 |
+
width: 100%;
|
| 12 |
+
min-height: 100%;
|
| 13 |
+
font-family: Arial, sans-serif;
|
| 14 |
+
background: #ffffff;
|
| 15 |
+
}
|
| 16 |
+
.chart-container {
|
| 17 |
+
width: 100%;
|
| 18 |
+
height: 100vh;
|
| 19 |
+
}
|
| 20 |
+
</style>
|
| 21 |
+
<script src="./g2.min.js"></script>
|
| 22 |
+
</head>
|
| 23 |
+
<body>
|
| 24 |
+
<div id="container" class="chart-container"></div>
|
| 25 |
+
<script>
|
| 26 |
+
(async () => {
|
| 27 |
+
const __seedStart = 4007567096;
|
| 28 |
+
let __seed = __seedStart;
|
| 29 |
+
const __originalMathRandom = Math.random;
|
| 30 |
+
function __seededRandom() {
|
| 31 |
+
__seed = (__seed * 1664525 + 1013904223) >>> 0;
|
| 32 |
+
return __seed / 4294967296;
|
| 33 |
+
}
|
| 34 |
+
Math.random = __seededRandom;
|
| 35 |
+
try {
|
| 36 |
+
const { Chart } = G2;
|
| 37 |
+
const __embeddedData0 = [{"state":"AL","age":"<10","population":598478},{"state":"AK","age":"<10","population":106741},{"state":"AZ","age":"<10","population":892083},{"state":"AR","age":"<10","population":392177},{"state":"CA","age":"<10","population":5038433},{"state":"CO","age":"<10","population":690830},{"state":"CT","age":"<10","population":399369},{"state":"DE","age":"<10","population":112177},{"state":"DC","age":"<10","population":74377},{"state":"FL","age":"<10","population":2211012},{"state":"GA","age":"<10","population":1363631},{"state":"HI","age":"<10","population":176484},{"state":"ID","age":"<10","population":236658},{"state":"IL","age":"<10","population":1619682},{"state":"IN","age":"<10","population":863029},{"state":"IA","age":"<10","population":401712},{"state":"KS","age":"<10","population":401751},{"state":"KY","age":"<10","population":555615},{"state":"LA","age":"<10","population":622061},{"state":"ME","age":"<10","population":137954},{"state":"MD","age":"<10","population":741952},{"state":"MA","age":"<10","population":737748},{"state":"MI","age":"<10","population":1181424},{"state":"MN","age":"<10","population":711604},{"state":"MS","age":"<10","population":400288},{"state":"MO","age":"<10","population":763948},{"state":"MT","age":"<10","population":126020},{"state":"NE","age":"<10","population":263518},{"state":"NV","age":"<10","population":369362},{"state":"NH","age":"<10","population":138762},{"state":"NJ","age":"<10","population":1079136},{"state":"NM","age":"<10","population":276468},{"state":"NY","age":"<10","population":2319945},{"state":"NC","age":"<10","population":1250298},{"state":"ND","age":"<10","population":99477},{"state":"OH","age":"<10","population":1422838},{"state":"OK","age":"<10","population":534481},{"state":"OR","age":"<10","population":474456},{"state":"PA","age":"<10","population":1458931},{"state":"RI","age":"<10","population":111377},{"state":"SC","age":"<10","population":599591},{"state":"SD","age":"<10","population":120366},{"state":"TN","age":"<10","population":818404},{"state":"TX","age":"<10","population":3983091},{"state":"UT","age":"<10","population":513515},{"state":"VT","age":"<10","population":63768},{"state":"VA","age":"<10","population":1033629},{"state":"WA","age":"<10","population":895790},{"state":"WV","age":"<10","population":207017},{"state":"WI","age":"<10","population":705648},{"state":"WY","age":"<10","population":78217},{"state":"PR","age":"<10","population":389428},{"state":"AL","age":"10-19","population":638789},{"state":"AK","age":"10-19","population":99926},{"state":"AZ","age":"10-19","population":912735},{"state":"AR","age":"10-19","population":397185},{"state":"CA","age":"10-19","population":5170341},{"state":"CO","age":"10-19","population":697447},{"state":"CT","age":"10-19","population":481065},{"state":"DE","age":"10-19","population":117854},{"state":"DC","age":"10-19","population":62783},{"state":"FL","age":"10-19","population":2331102},{"state":"GA","age":"10-19","population":1421557},{"state":"HI","age":"10-19","population":163559},{"state":"ID","age":"10-19","population":239509},{"state":"IL","age":"10-19","population":1715984},{"state":"IN","age":"10-19","population":905594},{"state":"IA","age":"10-19","population":418667},{"state":"KS","age":"10-19","population":402092},{"state":"KY","age":"10-19","population":575866},{"state":"LA","age":"10-19","population":613633},{"state":"ME","age":"10-19","population":155774},{"state":"MD","age":"10-19","population":764730},{"state":"MA","age":"10-19","population":862371},{"state":"MI","age":"10-19","population":1324071},{"state":"MN","age":"10-19","population":714399},{"state":"MS","age":"10-19","population":421329},{"state":"MO","age":"10-19","population":792935},{"state":"MT","age":"10-19","population":126294},{"state":"NE","age":"10-19","population":257610},{"state":"NV","age":"10-19","population":360263},{"state":"NH","age":"10-19","population":167495},{"state":"NJ","age":"10-19","population":1153625},{"state":"NM","age":"10-19","population":282662},{"state":"NY","age":"10-19","population":2445591},{"state":"NC","age":"10-19","population":1310398},{"state":"ND","age":"10-19","population":91069},{"state":"OH","age":"10-19","population":1530264},{"state":"OK","age":"10-19","population":522282},{"state":"OR","age":"10-19","population":485345},{"state":"PA","age":"10-19","population":1608018},{"state":"RI","age":"10-19","population":136885},{"state":"SC","age":"10-19","population":619144},{"state":"SD","age":"10-19","population":113383},{"state":"TN","age":"10-19","population":842873},{"state":"TX","age":"10-19","population":3910528},{"state":"UT","age":"10-19","population":479126},{"state":"VT","age":"10-19","population":79351},{"state":"VA","age":"10-19","population":1065461},{"state":"WA","age":"10-19","population":882812},{"state":"WV","age":"10-19","population":218547},{"state":"WI","age":"10-19","population":755224},{"state":"WY","age":"10-19","population":75535},{"state":"PR","age":"10-19","population":479749},{"state":"AL","age":"20-29","population":661666},{"state":"AK","age":"20-29","population":120674},{"state":"AZ","age":"20-29","population":939804},{"state":"AR","age":"20-29","population":399698},{"state":"CA","age":"20-29","population":5809455},{"state":"CO","age":"20-29","population":780508},{"state":"CT","age":"20-29","population":462323},{"state":"DE","age":"20-29","population":127554},{"state":"DC","age":"20-29","population":136976},{"state":"FL","age":"20-29","population":2597830},{"state":"GA","age":"20-29","population":1418696},{"state":"HI","age":"20-29","population":204336},{"state":"ID","age":"20-29","population":218684},{"state":"IL","age":"20-29","population":1789739},{"state":"IN","age":"20-29","population":905590},{"state":"IA","age":"20-29","population":419456},{"state":"KS","age":"20-29","population":406956},{"state":"KY","age":"20-29","population":593819},{"state":"LA","age":"20-29","population":683606},{"state":"ME","age":"20-29","population":156359},{"state":"MD","age":"20-29","population":815346},{"state":"MA","age":"20-29","population":971340},{"state":"MI","age":"20-29","population":1338179},{"state":"MN","age":"20-29","population":728222},{"state":"MS","age":"20-29","population":414195},{"state":"MO","age":"20-29","population":831725},{"state":"MT","age":"20-29","population":136346},{"state":"NE","age":"20-29","population":260646},{"state":"NV","age":"20-29","population":392834},{"state":"NH","age":"20-29","population":167554},{"state":"NJ","age":"20-29","population":1139927},{"state":"NM","age":"20-29","population":289801},{"state":"NY","age":"20-29","population":2894266},{"state":"NC","age":"20-29","population":1350242},{"state":"ND","age":"20-29","population":124509},{"state":"OH","age":"20-29","population":1535538},{"state":"OK","age":"20-29","population":552528},{"state":"OR","age":"20-29","population":538596},{"state":"PA","age":"20-29","population":1712448},{"state":"RI","age":"20-29","population":153674},{"state":"SC","age":"20-29","population":667523},{"state":"SD","age":"20-29","population":116748},{"state":"TN","age":"20-29","population":895337},{"state":"TX","age":"20-29","population":3946447},{"state":"UT","age":"20-29","population":465219},{"state":"VT","age":"20-29","population":81765},{"state":"VA","age":"20-29","population":1170634},{"state":"WA","age":"20-29","population":1004428},{"state":"WV","age":"20-29","population":232027},{"state":"WI","age":"20-29","population":760961},{"state":"WY","age":"20-29","population":82898},{"state":"PR","age":"20-29","population":480184},{"state":"AL","age":"30-39","population":603013},{"state":"AK","age":"30-39","population":102008},{"state":"AZ","age":"30-39","population":857054},{"state":"AR","age":"30-39","population":372998},{"state":"CA","age":"30-39","population":5354112},{"state":"CO","age":"30-39","population":766382},{"state":"CT","age":"30-39","population":424890},{"state":"DE","age":"30-39","population":114063},{"state":"DC","age":"30-39","population":121520},{"state":"FL","age":"30-39","population":2416176},{"state":"GA","age":"30-39","population":1357210},{"state":"HI","age":"30-39","population":187590},{"state":"ID","age":"30-39","population":209500},{"state":"IL","age":"30-39","population":1721954},{"state":"IN","age":"30-39","population":827086},{"state":"IA","age":"30-39","population":383638},{"state":"KS","age":"30-39","population":368732},{"state":"KY","age":"30-39","population":558201},{"state":"LA","age":"30-39","population":615411},{"state":"ME","age":"30-39","population":147695},{"state":"MD","age":"30-39","population":784097},{"state":"MA","age":"30-39","population":847306},{"state":"MI","age":"30-39","population":1162186},{"state":"MN","age":"30-39","population":715583},{"state":"MS","age":"30-39","population":374724},{"state":"MO","age":"30-39","population":763002},{"state":"MT","age":"30-39","population":125004},{"state":"NE","age":"30-39","population":244236},{"state":"NV","age":"30-39","population":390261},{"state":"NH","age":"30-39","population":151409},{"state":"NJ","age":"30-39","population":1143452},{"state":"NM","age":"30-39","population":260579},{"state":"NY","age":"30-39","population":2605355},{"state":"NC","age":"30-39","population":1268976},{"state":"ND","age":"30-39","population":94713},{"state":"OH","age":"30-39","population":1398724},{"state":"OK","age":"30-39","population":501392},{"state":"OR","age":"30-39","population":537767},{"state":"PA","age":"30-39","population":1520409},{"state":"RI","age":"30-39","population":126503},{"state":"SC","age":"30-39","population":596491},{"state":"SD","age":"30-39","population":105499},{"state":"TN","age":"30-39","population":837313},{"state":"TX","age":"30-39","population":3770534},{"state":"UT","age":"30-39","population":436010},{"state":"VT","age":"30-39","population":70092},{"state":"VA","age":"30-39","population":1112111},{"state":"WA","age":"30-39","population":970613},{"state":"WV","age":"30-39","population":220494},{"state":"WI","age":"30-39","population":714479},{"state":"WY","age":"30-39","population":76912},{"state":"PR","age":"30-39","population":441842},{"state":"AL","age":"40-49","population":625599},{"state":"AK","age":"40-49","population":91539},{"state":"AZ","age":"40-49","population":833290},{"state":"AR","age":"40-49","population":370157},{"state":"CA","age":"40-49","population":5179258},{"state":"CO","age":"40-49","population":705450},{"state":"CT","age":"40-49","population":496265},{"state":"DE","age":"40-49","population":117588},{"state":"DC","age":"40-49","population":80570},{"state":"FL","age":"40-49","population":2575576},{"state":"GA","age":"40-49","population":1404698},{"state":"HI","age":"40-49","population":176904},{"state":"ID","age":"40-49","population":194678},{"state":"IL","age":"40-49","population":1697069},{"state":"IN","age":"40-49","population":844059},{"state":"IA","age":"40-49","population":370719},{"state":"KS","age":"40-49","population":344427},{"state":"KY","age":"40-49","population":580553},{"state":"LA","age":"40-49","population":571991},{"state":"ME","age":"40-49","population":176908},{"state":"MD","age":"40-49","population":815875},{"state":"MA","age":"40-49","population":916106},{"state":"MI","age":"40-49","population":1283122},{"state":"MN","age":"40-49","population":692201},{"state":"MS","age":"40-49","population":377165},{"state":"MO","age":"40-49","population":750989},{"state":"MT","age":"40-49","population":116502},{"state":"NE","age":"40-49","population":222479},{"state":"NV","age":"40-49","population":387272},{"state":"NH","age":"40-49","population":182703},{"state":"NJ","age":"40-49","population":1254602},{"state":"NM","age":"40-49","population":244346},{"state":"NY","age":"40-49","population":2617327},{"state":"NC","age":"40-49","population":1357746},{"state":"ND","age":"40-49","population":80327},{"state":"OH","age":"40-49","population":1490959},{"state":"OK","age":"40-49","population":469410},{"state":"OR","age":"40-49","population":507826},{"state":"PA","age":"40-49","population":1645291},{"state":"RI","age":"40-49","population":137892},{"state":"SC","age":"40-49","population":619792},{"state":"SD","age":"40-49","population":96288},{"state":"TN","age":"40-49","population":866343},{"state":"TX","age":"40-49","population":3545746},{"state":"UT","age":"40-49","population":328569},{"state":"VT","age":"40-49","population":79982},{"state":"VA","age":"40-49","population":1134928},{"state":"WA","age":"40-49","population":921205},{"state":"WV","age":"40-49","population":238218},{"state":"WI","age":"40-49","population":732280},{"state":"WY","age":"40-49","population":68464},{"state":"PR","age":"40-49","population":456009},{"state":"AL","age":"50-59","population":673864},{"state":"AK","age":"50-59","population":104569},{"state":"AZ","age":"50-59","population":834858},{"state":"AR","age":"50-59","population":395070},{"state":"CA","age":"50-59","population":5042094},{"state":"CO","age":"50-59","population":725661},{"state":"CT","age":"50-59","population":546361},{"state":"DE","age":"50-59","population":133331},{"state":"DC","age":"50-59","population":74779},{"state":"FL","age":"50-59","population":2762983},{"state":"GA","age":"50-59","population":1337985},{"state":"HI","age":"50-59","population":188438},{"state":"ID","age":"50-59","population":205170},{"state":"IL","age":"50-59","population":1773366},{"state":"IN","age":"50-59","population":911778},{"state":"IA","age":"50-59","population":427554},{"state":"KS","age":"50-59","population":389834},{"state":"KY","age":"50-59","population":623164},{"state":"LA","age":"50-59","population":631936},{"state":"ME","age":"50-59","population":215787},{"state":"MD","age":"50-59","population":862778},{"state":"MA","age":"50-59","population":979128},{"state":"MI","age":"50-59","population":1454462},{"state":"MN","age":"50-59","population":782655},{"state":"MS","age":"50-59","population":400164},{"state":"MO","age":"50-59","population":857534},{"state":"MT","age":"50-59","population":149800},{"state":"NE","age":"50-59","population":250911},{"state":"NV","age":"50-59","population":373757},{"state":"NH","age":"50-59","population":217950},{"state":"NJ","age":"50-59","population":1307263},{"state":"NM","age":"50-59","population":280363},{"state":"NY","age":"50-59","population":2755620},{"state":"NC","age":"50-59","population":1356117},{"state":"ND","age":"50-59","population":98688},{"state":"OH","age":"50-59","population":1677794},{"state":"OK","age":"50-59","population":512850},{"state":"OR","age":"50-59","population":534421},{"state":"PA","age":"50-59","population":1881378},{"state":"RI","age":"50-59","population":156127},{"state":"SC","age":"50-59","population":663408},{"state":"SD","age":"50-59","population":117012},{"state":"TN","age":"50-59","population":904272},{"state":"TX","age":"50-59","population":3344930},{"state":"UT","age":"50-59","population":301596},{"state":"VT","age":"50-59","population":99521},{"state":"VA","age":"50-59","population":1162028},{"state":"WA","age":"50-59","population":970407},{"state":"WV","age":"50-59","population":269346},{"state":"WI","age":"50-59","population":848672},{"state":"WY","age":"50-59","population":81018},{"state":"PR","age":"50-59","population":452503},{"state":"AL","age":"60-69","population":548376},{"state":"AK","age":"60-69","population":70473},{"state":"AZ","age":"60-69","population":737884},{"state":"AR","age":"60-69","population":329734},{"state":"CA","age":"60-69","population":3737461},{"state":"CO","age":"60-69","population":563376},{"state":"CT","age":"60-69","population":400995},{"state":"DE","age":"60-69","population":110822},{"state":"DC","age":"60-69","population":56984},{"state":"FL","age":"60-69","population":2404659},{"state":"GA","age":"60-69","population":998253},{"state":"HI","age":"60-69","population":164957},{"state":"ID","age":"60-69","population":179429},{"state":"IL","age":"60-69","population":1326121},{"state":"IN","age":"60-69","population":704523},{"state":"IA","age":"60-69","population":344037},{"state":"KS","age":"60-69","population":300759},{"state":"KY","age":"60-69","population":495736},{"state":"LA","age":"60-69","population":488846},{"state":"ME","age":"60-69","population":179540},{"state":"MD","age":"60-69","population":636309},{"state":"MA","age":"60-69","population":737805},{"state":"MI","age":"60-69","population":1148131},{"state":"MN","age":"60-69","population":577313},{"state":"MS","age":"60-69","population":319443},{"state":"MO","age":"60-69","population":668878},{"state":"MT","age":"60-69","population":130977},{"state":"NE","age":"60-69","population":195705},{"state":"NV","age":"60-69","population":309651},{"state":"NH","age":"60-69","population":164287},{"state":"NJ","age":"60-69","population":946399},{"state":"NM","age":"60-69","population":239044},{"state":"NY","age":"60-69","population":2095207},{"state":"NC","age":"60-69","population":1095320},{"state":"ND","age":"60-69","population":73825},{"state":"OH","age":"60-69","population":1320776},{"state":"OK","age":"60-69","population":404704},{"state":"OR","age":"60-69","population":490894},{"state":"PA","age":"60-69","population":1491536},{"state":"RI","age":"60-69","population":117653},{"state":"SC","age":"60-69","population":579856},{"state":"SD","age":"60-69","population":92824},{"state":"TN","age":"60-69","population":741045},{"state":"TX","age":"60-69","population":2431494},{"state":"UT","age":"60-69","population":230007},{"state":"VT","age":"60-69","population":82136},{"state":"VA","age":"60-69","population":881763},{"state":"WA","age":"60-69","population":784208},{"state":"WV","age":"60-69","population":243108},{"state":"WI","age":"60-69","population":645015},{"state":"WY","age":"60-69","population":67484},{"state":"PR","age":"60-69","population":411924},{"state":"AL","age":"70-79","population":316598},{"state":"AK","age":"70-79","population":28422},{"state":"AZ","age":"70-79","population":466153},{"state":"AR","age":"70-79","population":197985},{"state":"CA","age":"70-79","population":2011678},{"state":"CO","age":"70-79","population":274466},{"state":"CT","age":"70-79","population":217827},{"state":"DE","age":"70-79","population":65369},{"state":"DC","age":"70-79","population":31362},{"state":"FL","age":"70-79","population":1615547},{"state":"GA","age":"70-79","population":528108},{"state":"HI","age":"70-79","population":85345},{"state":"ID","age":"70-79","population":97621},{"state":"IL","age":"70-79","population":728821},{"state":"IN","age":"70-79","population":384788},{"state":"IA","age":"70-79","population":197223},{"state":"KS","age":"70-79","population":166104},{"state":"KY","age":"70-79","population":273961},{"state":"LA","age":"70-79","population":266123},{"state":"ME","age":"70-79","population":97899},{"state":"MD","age":"70-79","population":330736},{"state":"MA","age":"70-79","population":401931},{"state":"MI","age":"70-79","population":619722},{"state":"MN","age":"70-79","population":312906},{"state":"MS","age":"70-79","population":181195},{"state":"MO","age":"70-79","population":388086},{"state":"MT","age":"70-79","population":70528},{"state":"NE","age":"70-79","population":107650},{"state":"NV","age":"70-79","population":173499},{"state":"NH","age":"70-79","population":84791},{"state":"NJ","age":"70-79","population":523620},{"state":"NM","age":"70-79","population":135013},{"state":"NY","age":"70-79","population":1160055},{"state":"NC","age":"70-79","population":609234},{"state":"ND","age":"70-79","population":41348},{"state":"OH","age":"70-79","population":728158},{"state":"OK","age":"70-79","population":239887},{"state":"OR","age":"70-79","population":255809},{"state":"PA","age":"70-79","population":850897},{"state":"RI","age":"70-79","population":63359},{"state":"SC","age":"70-79","population":322073},{"state":"SD","age":"70-79","population":50398},{"state":"TN","age":"70-79","population":414939},{"state":"TX","age":"70-79","population":1291486},{"state":"UT","age":"70-79","population":123674},{"state":"VT","age":"70-79","population":42978},{"state":"VA","age":"70-79","population":475141},{"state":"WA","age":"70-79","population":401094},{"state":"WV","age":"70-79","population":138134},{"state":"WI","age":"70-79","population":350772},{"state":"WY","age":"70-79","population":32819},{"state":"PR","age":"70-79","population":268783},{"state":"AL","age":"≥80","population":174781},{"state":"AK","age":"≥80","population":12503},{"state":"AZ","age":"≥80","population":254716},{"state":"AR","age":"≥80","population":113468},{"state":"CA","age":"≥80","population":1311374},{"state":"CO","age":"≥80","population":155175},{"state":"CT","age":"≥80","population":159475},{"state":"DE","age":"≥80","population":35937},{"state":"DC","age":"≥80","population":19658},{"state":"FL","age":"≥80","population":1019566},{"state":"GA","age":"≥80","population":269182},{"state":"HI","age":"≥80","population":66060},{"state":"ID","age":"≥80","population":54234},{"state":"IL","age":"≥80","population":478948},{"state":"IN","age":"≥80","population":243131},{"state":"IA","age":"≥80","population":143583},{"state":"KS","age":"≥80","population":117637},{"state":"KY","age":"≥80","population":155074},{"state":"LA","age":"≥80","population":152063},{"state":"ME","age":"≥80","population":62007},{"state":"MD","age":"≥80","population":208079},{"state":"MA","age":"≥80","population":288408},{"state":"MI","age":"≥80","population":398303},{"state":"MN","age":"≥80","population":215985},{"state":"MS","age":"≥80","population":100689},{"state":"MO","age":"≥80","population":242554},{"state":"MT","age":"≥80","population":41920},{"state":"NE","age":"≥80","population":78504},{"state":"NV","age":"≥80","population":82273},{"state":"NH","age":"≥80","population":52552},{"state":"NJ","age":"≥80","population":367432},{"state":"NM","age":"≥80","population":74393},{"state":"NY","age":"≥80","population":804091},{"state":"NC","age":"≥80","population":342497},{"state":"ND","age":"≥80","population":32206},{"state":"OH","age":"≥80","population":481890},{"state":"OK","age":"≥80","population":138055},{"state":"OR","age":"≥80","population":157153},{"state":"PA","age":"≥80","population":615069},{"state":"RI","age":"≥80","population":51021},{"state":"SC","age":"≥80","population":166727},{"state":"SD","age":"≥80","population":38540},{"state":"TN","age":"≥80","population":227483},{"state":"TX","age":"≥80","population":732179},{"state":"UT","age":"≥80","population":70711},{"state":"VT","age":"≥80","population":26656},{"state":"VA","age":"≥80","population":274606},{"state":"WA","age":"≥80","population":242589},{"state":"WV","age":"≥80","population":79201},{"state":"WI","age":"≥80","population":241747},{"state":"WY","age":"≥80","population":19682},{"state":"PR","age":"≥80","population":148963}];
|
| 38 |
+
/**
|
| 39 |
+
* A recreation of this demo: https://observablehq.com/@d3/stacked-normalized-horizontal-bar
|
| 40 |
+
*/
|
| 41 |
+
|
| 42 |
+
const chart = new Chart({
|
| 43 |
+
container: 'container',
|
| 44 |
+
autoFit: true,
|
| 45 |
+
});
|
| 46 |
+
|
| 47 |
+
chart.coordinate({ transform: [{ type: 'transpose' }] });
|
| 48 |
+
|
| 49 |
+
chart
|
| 50 |
+
.interval()
|
| 51 |
+
.data({
|
| 52 |
+
value: __embeddedData0,
|
| 53 |
+
format: 'csv',
|
| 54 |
+
})
|
| 55 |
+
.transform({ type: 'stackY' })
|
| 56 |
+
.transform({ type: 'sortX', by: 'y', reverse: true })
|
| 57 |
+
.transform({ type: 'normalizeY' })
|
| 58 |
+
.encode('x', 'state')
|
| 59 |
+
.encode('y', 'population')
|
| 60 |
+
.encode('color', 'age')
|
| 61 |
+
.axis('y', { labelFormatter: '.0%' })
|
| 62 |
+
.tooltip({ channel: 'y0', valueFormatter: '.0%' });
|
| 63 |
+
|
| 64 |
+
chart.render();
|
| 65 |
+
} catch (error) {
|
| 66 |
+
console.error(error);
|
| 67 |
+
const pre = document.createElement('pre');
|
| 68 |
+
pre.style.whiteSpace = 'pre-wrap';
|
| 69 |
+
pre.style.padding = '12px';
|
| 70 |
+
pre.style.margin = '12px';
|
| 71 |
+
pre.style.border = '1px solid #ddd';
|
| 72 |
+
pre.textContent = String(error && error.stack ? error.stack : error);
|
| 73 |
+
document.body.appendChild(pre);
|
| 74 |
+
} finally {
|
| 75 |
+
Math.random = __originalMathRandom;
|
| 76 |
+
}
|
| 77 |
+
})();
|
| 78 |
+
</script>
|
| 79 |
+
<!-- source: https://g2.antv.antgroup.com/examples/general/interval/#bar-normalized-stacked -->
|
| 80 |
+
</body>
|
| 81 |
+
</html>
|
web/AntV G2/bar/chart_0126_bar.html
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!doctype html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="utf-8" />
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
| 6 |
+
<title>分组条形图</title>
|
| 7 |
+
<style>
|
| 8 |
+
html, body {
|
| 9 |
+
margin: 0;
|
| 10 |
+
padding: 0;
|
| 11 |
+
width: 100%;
|
| 12 |
+
min-height: 100%;
|
| 13 |
+
font-family: Arial, sans-serif;
|
| 14 |
+
background: #ffffff;
|
| 15 |
+
}
|
| 16 |
+
.chart-container {
|
| 17 |
+
width: 100%;
|
| 18 |
+
height: 100vh;
|
| 19 |
+
}
|
| 20 |
+
</style>
|
| 21 |
+
<script src="./g2.min.js"></script>
|
| 22 |
+
</head>
|
| 23 |
+
<body>
|
| 24 |
+
<div id="container" class="chart-container"></div>
|
| 25 |
+
<script>
|
| 26 |
+
(async () => {
|
| 27 |
+
const __seedStart = 1368838002;
|
| 28 |
+
let __seed = __seedStart;
|
| 29 |
+
const __originalMathRandom = Math.random;
|
| 30 |
+
function __seededRandom() {
|
| 31 |
+
__seed = (__seed * 1664525 + 1013904223) >>> 0;
|
| 32 |
+
return __seed / 4294967296;
|
| 33 |
+
}
|
| 34 |
+
Math.random = __seededRandom;
|
| 35 |
+
try {
|
| 36 |
+
const { Chart } = G2;
|
| 37 |
+
const __embeddedData0 = [{"state":"AL","age":"<10","population":598478},{"state":"AK","age":"<10","population":106741},{"state":"AZ","age":"<10","population":892083},{"state":"AR","age":"<10","population":392177},{"state":"CA","age":"<10","population":5038433},{"state":"CO","age":"<10","population":690830},{"state":"CT","age":"<10","population":399369},{"state":"DE","age":"<10","population":112177},{"state":"DC","age":"<10","population":74377},{"state":"FL","age":"<10","population":2211012},{"state":"GA","age":"<10","population":1363631},{"state":"HI","age":"<10","population":176484},{"state":"ID","age":"<10","population":236658},{"state":"IL","age":"<10","population":1619682},{"state":"IN","age":"<10","population":863029},{"state":"IA","age":"<10","population":401712},{"state":"KS","age":"<10","population":401751},{"state":"KY","age":"<10","population":555615},{"state":"LA","age":"<10","population":622061},{"state":"ME","age":"<10","population":137954},{"state":"MD","age":"<10","population":741952},{"state":"MA","age":"<10","population":737748},{"state":"MI","age":"<10","population":1181424},{"state":"MN","age":"<10","population":711604},{"state":"MS","age":"<10","population":400288},{"state":"MO","age":"<10","population":763948},{"state":"MT","age":"<10","population":126020},{"state":"NE","age":"<10","population":263518},{"state":"NV","age":"<10","population":369362},{"state":"NH","age":"<10","population":138762},{"state":"NJ","age":"<10","population":1079136},{"state":"NM","age":"<10","population":276468},{"state":"NY","age":"<10","population":2319945},{"state":"NC","age":"<10","population":1250298},{"state":"ND","age":"<10","population":99477},{"state":"OH","age":"<10","population":1422838},{"state":"OK","age":"<10","population":534481},{"state":"OR","age":"<10","population":474456},{"state":"PA","age":"<10","population":1458931},{"state":"RI","age":"<10","population":111377},{"state":"SC","age":"<10","population":599591},{"state":"SD","age":"<10","population":120366},{"state":"TN","age":"<10","population":818404},{"state":"TX","age":"<10","population":3983091},{"state":"UT","age":"<10","population":513515},{"state":"VT","age":"<10","population":63768},{"state":"VA","age":"<10","population":1033629},{"state":"WA","age":"<10","population":895790},{"state":"WV","age":"<10","population":207017},{"state":"WI","age":"<10","population":705648},{"state":"WY","age":"<10","population":78217},{"state":"PR","age":"<10","population":389428},{"state":"AL","age":"10-19","population":638789},{"state":"AK","age":"10-19","population":99926},{"state":"AZ","age":"10-19","population":912735},{"state":"AR","age":"10-19","population":397185},{"state":"CA","age":"10-19","population":5170341},{"state":"CO","age":"10-19","population":697447},{"state":"CT","age":"10-19","population":481065},{"state":"DE","age":"10-19","population":117854},{"state":"DC","age":"10-19","population":62783},{"state":"FL","age":"10-19","population":2331102},{"state":"GA","age":"10-19","population":1421557},{"state":"HI","age":"10-19","population":163559},{"state":"ID","age":"10-19","population":239509},{"state":"IL","age":"10-19","population":1715984},{"state":"IN","age":"10-19","population":905594},{"state":"IA","age":"10-19","population":418667},{"state":"KS","age":"10-19","population":402092},{"state":"KY","age":"10-19","population":575866},{"state":"LA","age":"10-19","population":613633},{"state":"ME","age":"10-19","population":155774},{"state":"MD","age":"10-19","population":764730},{"state":"MA","age":"10-19","population":862371},{"state":"MI","age":"10-19","population":1324071},{"state":"MN","age":"10-19","population":714399},{"state":"MS","age":"10-19","population":421329},{"state":"MO","age":"10-19","population":792935},{"state":"MT","age":"10-19","population":126294},{"state":"NE","age":"10-19","population":257610},{"state":"NV","age":"10-19","population":360263},{"state":"NH","age":"10-19","population":167495},{"state":"NJ","age":"10-19","population":1153625},{"state":"NM","age":"10-19","population":282662},{"state":"NY","age":"10-19","population":2445591},{"state":"NC","age":"10-19","population":1310398},{"state":"ND","age":"10-19","population":91069},{"state":"OH","age":"10-19","population":1530264},{"state":"OK","age":"10-19","population":522282},{"state":"OR","age":"10-19","population":485345},{"state":"PA","age":"10-19","population":1608018},{"state":"RI","age":"10-19","population":136885},{"state":"SC","age":"10-19","population":619144},{"state":"SD","age":"10-19","population":113383},{"state":"TN","age":"10-19","population":842873},{"state":"TX","age":"10-19","population":3910528},{"state":"UT","age":"10-19","population":479126},{"state":"VT","age":"10-19","population":79351},{"state":"VA","age":"10-19","population":1065461},{"state":"WA","age":"10-19","population":882812},{"state":"WV","age":"10-19","population":218547},{"state":"WI","age":"10-19","population":755224},{"state":"WY","age":"10-19","population":75535},{"state":"PR","age":"10-19","population":479749},{"state":"AL","age":"20-29","population":661666},{"state":"AK","age":"20-29","population":120674},{"state":"AZ","age":"20-29","population":939804},{"state":"AR","age":"20-29","population":399698},{"state":"CA","age":"20-29","population":5809455},{"state":"CO","age":"20-29","population":780508},{"state":"CT","age":"20-29","population":462323},{"state":"DE","age":"20-29","population":127554},{"state":"DC","age":"20-29","population":136976},{"state":"FL","age":"20-29","population":2597830},{"state":"GA","age":"20-29","population":1418696},{"state":"HI","age":"20-29","population":204336},{"state":"ID","age":"20-29","population":218684},{"state":"IL","age":"20-29","population":1789739},{"state":"IN","age":"20-29","population":905590},{"state":"IA","age":"20-29","population":419456},{"state":"KS","age":"20-29","population":406956},{"state":"KY","age":"20-29","population":593819},{"state":"LA","age":"20-29","population":683606},{"state":"ME","age":"20-29","population":156359},{"state":"MD","age":"20-29","population":815346},{"state":"MA","age":"20-29","population":971340},{"state":"MI","age":"20-29","population":1338179},{"state":"MN","age":"20-29","population":728222},{"state":"MS","age":"20-29","population":414195},{"state":"MO","age":"20-29","population":831725},{"state":"MT","age":"20-29","population":136346},{"state":"NE","age":"20-29","population":260646},{"state":"NV","age":"20-29","population":392834},{"state":"NH","age":"20-29","population":167554},{"state":"NJ","age":"20-29","population":1139927},{"state":"NM","age":"20-29","population":289801},{"state":"NY","age":"20-29","population":2894266},{"state":"NC","age":"20-29","population":1350242},{"state":"ND","age":"20-29","population":124509},{"state":"OH","age":"20-29","population":1535538},{"state":"OK","age":"20-29","population":552528},{"state":"OR","age":"20-29","population":538596},{"state":"PA","age":"20-29","population":1712448},{"state":"RI","age":"20-29","population":153674},{"state":"SC","age":"20-29","population":667523},{"state":"SD","age":"20-29","population":116748},{"state":"TN","age":"20-29","population":895337},{"state":"TX","age":"20-29","population":3946447},{"state":"UT","age":"20-29","population":465219},{"state":"VT","age":"20-29","population":81765},{"state":"VA","age":"20-29","population":1170634},{"state":"WA","age":"20-29","population":1004428},{"state":"WV","age":"20-29","population":232027},{"state":"WI","age":"20-29","population":760961},{"state":"WY","age":"20-29","population":82898},{"state":"PR","age":"20-29","population":480184},{"state":"AL","age":"30-39","population":603013},{"state":"AK","age":"30-39","population":102008},{"state":"AZ","age":"30-39","population":857054},{"state":"AR","age":"30-39","population":372998},{"state":"CA","age":"30-39","population":5354112},{"state":"CO","age":"30-39","population":766382},{"state":"CT","age":"30-39","population":424890},{"state":"DE","age":"30-39","population":114063},{"state":"DC","age":"30-39","population":121520},{"state":"FL","age":"30-39","population":2416176},{"state":"GA","age":"30-39","population":1357210},{"state":"HI","age":"30-39","population":187590},{"state":"ID","age":"30-39","population":209500},{"state":"IL","age":"30-39","population":1721954},{"state":"IN","age":"30-39","population":827086},{"state":"IA","age":"30-39","population":383638},{"state":"KS","age":"30-39","population":368732},{"state":"KY","age":"30-39","population":558201},{"state":"LA","age":"30-39","population":615411},{"state":"ME","age":"30-39","population":147695},{"state":"MD","age":"30-39","population":784097},{"state":"MA","age":"30-39","population":847306},{"state":"MI","age":"30-39","population":1162186},{"state":"MN","age":"30-39","population":715583},{"state":"MS","age":"30-39","population":374724},{"state":"MO","age":"30-39","population":763002},{"state":"MT","age":"30-39","population":125004},{"state":"NE","age":"30-39","population":244236},{"state":"NV","age":"30-39","population":390261},{"state":"NH","age":"30-39","population":151409},{"state":"NJ","age":"30-39","population":1143452},{"state":"NM","age":"30-39","population":260579},{"state":"NY","age":"30-39","population":2605355},{"state":"NC","age":"30-39","population":1268976},{"state":"ND","age":"30-39","population":94713},{"state":"OH","age":"30-39","population":1398724},{"state":"OK","age":"30-39","population":501392},{"state":"OR","age":"30-39","population":537767},{"state":"PA","age":"30-39","population":1520409},{"state":"RI","age":"30-39","population":126503},{"state":"SC","age":"30-39","population":596491},{"state":"SD","age":"30-39","population":105499},{"state":"TN","age":"30-39","population":837313},{"state":"TX","age":"30-39","population":3770534},{"state":"UT","age":"30-39","population":436010},{"state":"VT","age":"30-39","population":70092},{"state":"VA","age":"30-39","population":1112111},{"state":"WA","age":"30-39","population":970613},{"state":"WV","age":"30-39","population":220494},{"state":"WI","age":"30-39","population":714479},{"state":"WY","age":"30-39","population":76912},{"state":"PR","age":"30-39","population":441842},{"state":"AL","age":"40-49","population":625599},{"state":"AK","age":"40-49","population":91539},{"state":"AZ","age":"40-49","population":833290},{"state":"AR","age":"40-49","population":370157},{"state":"CA","age":"40-49","population":5179258},{"state":"CO","age":"40-49","population":705450},{"state":"CT","age":"40-49","population":496265},{"state":"DE","age":"40-49","population":117588},{"state":"DC","age":"40-49","population":80570},{"state":"FL","age":"40-49","population":2575576},{"state":"GA","age":"40-49","population":1404698},{"state":"HI","age":"40-49","population":176904},{"state":"ID","age":"40-49","population":194678},{"state":"IL","age":"40-49","population":1697069},{"state":"IN","age":"40-49","population":844059},{"state":"IA","age":"40-49","population":370719},{"state":"KS","age":"40-49","population":344427},{"state":"KY","age":"40-49","population":580553},{"state":"LA","age":"40-49","population":571991},{"state":"ME","age":"40-49","population":176908},{"state":"MD","age":"40-49","population":815875},{"state":"MA","age":"40-49","population":916106},{"state":"MI","age":"40-49","population":1283122},{"state":"MN","age":"40-49","population":692201},{"state":"MS","age":"40-49","population":377165},{"state":"MO","age":"40-49","population":750989},{"state":"MT","age":"40-49","population":116502},{"state":"NE","age":"40-49","population":222479},{"state":"NV","age":"40-49","population":387272},{"state":"NH","age":"40-49","population":182703},{"state":"NJ","age":"40-49","population":1254602},{"state":"NM","age":"40-49","population":244346},{"state":"NY","age":"40-49","population":2617327},{"state":"NC","age":"40-49","population":1357746},{"state":"ND","age":"40-49","population":80327},{"state":"OH","age":"40-49","population":1490959},{"state":"OK","age":"40-49","population":469410},{"state":"OR","age":"40-49","population":507826},{"state":"PA","age":"40-49","population":1645291},{"state":"RI","age":"40-49","population":137892},{"state":"SC","age":"40-49","population":619792},{"state":"SD","age":"40-49","population":96288},{"state":"TN","age":"40-49","population":866343},{"state":"TX","age":"40-49","population":3545746},{"state":"UT","age":"40-49","population":328569},{"state":"VT","age":"40-49","population":79982},{"state":"VA","age":"40-49","population":1134928},{"state":"WA","age":"40-49","population":921205},{"state":"WV","age":"40-49","population":238218},{"state":"WI","age":"40-49","population":732280},{"state":"WY","age":"40-49","population":68464},{"state":"PR","age":"40-49","population":456009},{"state":"AL","age":"50-59","population":673864},{"state":"AK","age":"50-59","population":104569},{"state":"AZ","age":"50-59","population":834858},{"state":"AR","age":"50-59","population":395070},{"state":"CA","age":"50-59","population":5042094},{"state":"CO","age":"50-59","population":725661},{"state":"CT","age":"50-59","population":546361},{"state":"DE","age":"50-59","population":133331},{"state":"DC","age":"50-59","population":74779},{"state":"FL","age":"50-59","population":2762983},{"state":"GA","age":"50-59","population":1337985},{"state":"HI","age":"50-59","population":188438},{"state":"ID","age":"50-59","population":205170},{"state":"IL","age":"50-59","population":1773366},{"state":"IN","age":"50-59","population":911778},{"state":"IA","age":"50-59","population":427554},{"state":"KS","age":"50-59","population":389834},{"state":"KY","age":"50-59","population":623164},{"state":"LA","age":"50-59","population":631936},{"state":"ME","age":"50-59","population":215787},{"state":"MD","age":"50-59","population":862778},{"state":"MA","age":"50-59","population":979128},{"state":"MI","age":"50-59","population":1454462},{"state":"MN","age":"50-59","population":782655},{"state":"MS","age":"50-59","population":400164},{"state":"MO","age":"50-59","population":857534},{"state":"MT","age":"50-59","population":149800},{"state":"NE","age":"50-59","population":250911},{"state":"NV","age":"50-59","population":373757},{"state":"NH","age":"50-59","population":217950},{"state":"NJ","age":"50-59","population":1307263},{"state":"NM","age":"50-59","population":280363},{"state":"NY","age":"50-59","population":2755620},{"state":"NC","age":"50-59","population":1356117},{"state":"ND","age":"50-59","population":98688},{"state":"OH","age":"50-59","population":1677794},{"state":"OK","age":"50-59","population":512850},{"state":"OR","age":"50-59","population":534421},{"state":"PA","age":"50-59","population":1881378},{"state":"RI","age":"50-59","population":156127},{"state":"SC","age":"50-59","population":663408},{"state":"SD","age":"50-59","population":117012},{"state":"TN","age":"50-59","population":904272},{"state":"TX","age":"50-59","population":3344930},{"state":"UT","age":"50-59","population":301596},{"state":"VT","age":"50-59","population":99521},{"state":"VA","age":"50-59","population":1162028},{"state":"WA","age":"50-59","population":970407},{"state":"WV","age":"50-59","population":269346},{"state":"WI","age":"50-59","population":848672},{"state":"WY","age":"50-59","population":81018},{"state":"PR","age":"50-59","population":452503},{"state":"AL","age":"60-69","population":548376},{"state":"AK","age":"60-69","population":70473},{"state":"AZ","age":"60-69","population":737884},{"state":"AR","age":"60-69","population":329734},{"state":"CA","age":"60-69","population":3737461},{"state":"CO","age":"60-69","population":563376},{"state":"CT","age":"60-69","population":400995},{"state":"DE","age":"60-69","population":110822},{"state":"DC","age":"60-69","population":56984},{"state":"FL","age":"60-69","population":2404659},{"state":"GA","age":"60-69","population":998253},{"state":"HI","age":"60-69","population":164957},{"state":"ID","age":"60-69","population":179429},{"state":"IL","age":"60-69","population":1326121},{"state":"IN","age":"60-69","population":704523},{"state":"IA","age":"60-69","population":344037},{"state":"KS","age":"60-69","population":300759},{"state":"KY","age":"60-69","population":495736},{"state":"LA","age":"60-69","population":488846},{"state":"ME","age":"60-69","population":179540},{"state":"MD","age":"60-69","population":636309},{"state":"MA","age":"60-69","population":737805},{"state":"MI","age":"60-69","population":1148131},{"state":"MN","age":"60-69","population":577313},{"state":"MS","age":"60-69","population":319443},{"state":"MO","age":"60-69","population":668878},{"state":"MT","age":"60-69","population":130977},{"state":"NE","age":"60-69","population":195705},{"state":"NV","age":"60-69","population":309651},{"state":"NH","age":"60-69","population":164287},{"state":"NJ","age":"60-69","population":946399},{"state":"NM","age":"60-69","population":239044},{"state":"NY","age":"60-69","population":2095207},{"state":"NC","age":"60-69","population":1095320},{"state":"ND","age":"60-69","population":73825},{"state":"OH","age":"60-69","population":1320776},{"state":"OK","age":"60-69","population":404704},{"state":"OR","age":"60-69","population":490894},{"state":"PA","age":"60-69","population":1491536},{"state":"RI","age":"60-69","population":117653},{"state":"SC","age":"60-69","population":579856},{"state":"SD","age":"60-69","population":92824},{"state":"TN","age":"60-69","population":741045},{"state":"TX","age":"60-69","population":2431494},{"state":"UT","age":"60-69","population":230007},{"state":"VT","age":"60-69","population":82136},{"state":"VA","age":"60-69","population":881763},{"state":"WA","age":"60-69","population":784208},{"state":"WV","age":"60-69","population":243108},{"state":"WI","age":"60-69","population":645015},{"state":"WY","age":"60-69","population":67484},{"state":"PR","age":"60-69","population":411924},{"state":"AL","age":"70-79","population":316598},{"state":"AK","age":"70-79","population":28422},{"state":"AZ","age":"70-79","population":466153},{"state":"AR","age":"70-79","population":197985},{"state":"CA","age":"70-79","population":2011678},{"state":"CO","age":"70-79","population":274466},{"state":"CT","age":"70-79","population":217827},{"state":"DE","age":"70-79","population":65369},{"state":"DC","age":"70-79","population":31362},{"state":"FL","age":"70-79","population":1615547},{"state":"GA","age":"70-79","population":528108},{"state":"HI","age":"70-79","population":85345},{"state":"ID","age":"70-79","population":97621},{"state":"IL","age":"70-79","population":728821},{"state":"IN","age":"70-79","population":384788},{"state":"IA","age":"70-79","population":197223},{"state":"KS","age":"70-79","population":166104},{"state":"KY","age":"70-79","population":273961},{"state":"LA","age":"70-79","population":266123},{"state":"ME","age":"70-79","population":97899},{"state":"MD","age":"70-79","population":330736},{"state":"MA","age":"70-79","population":401931},{"state":"MI","age":"70-79","population":619722},{"state":"MN","age":"70-79","population":312906},{"state":"MS","age":"70-79","population":181195},{"state":"MO","age":"70-79","population":388086},{"state":"MT","age":"70-79","population":70528},{"state":"NE","age":"70-79","population":107650},{"state":"NV","age":"70-79","population":173499},{"state":"NH","age":"70-79","population":84791},{"state":"NJ","age":"70-79","population":523620},{"state":"NM","age":"70-79","population":135013},{"state":"NY","age":"70-79","population":1160055},{"state":"NC","age":"70-79","population":609234},{"state":"ND","age":"70-79","population":41348},{"state":"OH","age":"70-79","population":728158},{"state":"OK","age":"70-79","population":239887},{"state":"OR","age":"70-79","population":255809},{"state":"PA","age":"70-79","population":850897},{"state":"RI","age":"70-79","population":63359},{"state":"SC","age":"70-79","population":322073},{"state":"SD","age":"70-79","population":50398},{"state":"TN","age":"70-79","population":414939},{"state":"TX","age":"70-79","population":1291486},{"state":"UT","age":"70-79","population":123674},{"state":"VT","age":"70-79","population":42978},{"state":"VA","age":"70-79","population":475141},{"state":"WA","age":"70-79","population":401094},{"state":"WV","age":"70-79","population":138134},{"state":"WI","age":"70-79","population":350772},{"state":"WY","age":"70-79","population":32819},{"state":"PR","age":"70-79","population":268783},{"state":"AL","age":"≥80","population":174781},{"state":"AK","age":"≥80","population":12503},{"state":"AZ","age":"≥80","population":254716},{"state":"AR","age":"≥80","population":113468},{"state":"CA","age":"≥80","population":1311374},{"state":"CO","age":"≥80","population":155175},{"state":"CT","age":"≥80","population":159475},{"state":"DE","age":"≥80","population":35937},{"state":"DC","age":"≥80","population":19658},{"state":"FL","age":"≥80","population":1019566},{"state":"GA","age":"≥80","population":269182},{"state":"HI","age":"≥80","population":66060},{"state":"ID","age":"≥80","population":54234},{"state":"IL","age":"≥80","population":478948},{"state":"IN","age":"≥80","population":243131},{"state":"IA","age":"≥80","population":143583},{"state":"KS","age":"≥80","population":117637},{"state":"KY","age":"≥80","population":155074},{"state":"LA","age":"≥80","population":152063},{"state":"ME","age":"≥80","population":62007},{"state":"MD","age":"≥80","population":208079},{"state":"MA","age":"≥80","population":288408},{"state":"MI","age":"≥80","population":398303},{"state":"MN","age":"≥80","population":215985},{"state":"MS","age":"≥80","population":100689},{"state":"MO","age":"≥80","population":242554},{"state":"MT","age":"≥80","population":41920},{"state":"NE","age":"≥80","population":78504},{"state":"NV","age":"≥80","population":82273},{"state":"NH","age":"≥80","population":52552},{"state":"NJ","age":"≥80","population":367432},{"state":"NM","age":"≥80","population":74393},{"state":"NY","age":"≥80","population":804091},{"state":"NC","age":"≥80","population":342497},{"state":"ND","age":"≥80","population":32206},{"state":"OH","age":"≥80","population":481890},{"state":"OK","age":"≥80","population":138055},{"state":"OR","age":"≥80","population":157153},{"state":"PA","age":"≥80","population":615069},{"state":"RI","age":"≥80","population":51021},{"state":"SC","age":"≥80","population":166727},{"state":"SD","age":"≥80","population":38540},{"state":"TN","age":"≥80","population":227483},{"state":"TX","age":"≥80","population":732179},{"state":"UT","age":"≥80","population":70711},{"state":"VT","age":"≥80","population":26656},{"state":"VA","age":"≥80","population":274606},{"state":"WA","age":"≥80","population":242589},{"state":"WV","age":"≥80","population":79201},{"state":"WI","age":"≥80","population":241747},{"state":"WY","age":"≥80","population":19682},{"state":"PR","age":"≥80","population":148963}];
|
| 38 |
+
/**
|
| 39 |
+
* A recreation of this demo: https://observablehq.com/@d3/grouped-bar-chart
|
| 40 |
+
*/
|
| 41 |
+
|
| 42 |
+
const chart = new Chart({
|
| 43 |
+
container: 'container',
|
| 44 |
+
autoFit: true,
|
| 45 |
+
});
|
| 46 |
+
|
| 47 |
+
chart.title({
|
| 48 |
+
title: 'Population by age and state',
|
| 49 |
+
subtitle: 'It shows the population of U.S. by age and state.',
|
| 50 |
+
});
|
| 51 |
+
|
| 52 |
+
chart
|
| 53 |
+
.interval()
|
| 54 |
+
.data({
|
| 55 |
+
value: __embeddedData0,
|
| 56 |
+
format: 'csv',
|
| 57 |
+
})
|
| 58 |
+
.transform({ type: 'sortX', by: 'y', reverse: true, slice: 6 })
|
| 59 |
+
.transform({ type: 'dodgeX' })
|
| 60 |
+
.encode('x', 'state')
|
| 61 |
+
.encode('y', 'population')
|
| 62 |
+
.encode('color', 'age')
|
| 63 |
+
.scale('y', { nice: true })
|
| 64 |
+
.axis('y', { labelFormatter: '~s' });
|
| 65 |
+
|
| 66 |
+
chart
|
| 67 |
+
.interaction('tooltip', { shared: true })
|
| 68 |
+
.interaction('elementHighlightByColor', { background: true });
|
| 69 |
+
|
| 70 |
+
chart.render();
|
| 71 |
+
} catch (error) {
|
| 72 |
+
console.error(error);
|
| 73 |
+
const pre = document.createElement('pre');
|
| 74 |
+
pre.style.whiteSpace = 'pre-wrap';
|
| 75 |
+
pre.style.padding = '12px';
|
| 76 |
+
pre.style.margin = '12px';
|
| 77 |
+
pre.style.border = '1px solid #ddd';
|
| 78 |
+
pre.textContent = String(error && error.stack ? error.stack : error);
|
| 79 |
+
document.body.appendChild(pre);
|
| 80 |
+
} finally {
|
| 81 |
+
Math.random = __originalMathRandom;
|
| 82 |
+
}
|
| 83 |
+
})();
|
| 84 |
+
</script>
|
| 85 |
+
<!-- source: https://g2.antv.antgroup.com/examples/general/interval/#bar-dodged -->
|
| 86 |
+
</body>
|
| 87 |
+
</html>
|
web/AntV G2/bar/chart_0127_bar.html
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!doctype html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="utf-8" />
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
| 6 |
+
<title>弹性条形图</title>
|
| 7 |
+
<style>
|
| 8 |
+
html, body {
|
| 9 |
+
margin: 0;
|
| 10 |
+
padding: 0;
|
| 11 |
+
width: 100%;
|
| 12 |
+
min-height: 100%;
|
| 13 |
+
font-family: Arial, sans-serif;
|
| 14 |
+
background: #ffffff;
|
| 15 |
+
}
|
| 16 |
+
.chart-container {
|
| 17 |
+
width: 100%;
|
| 18 |
+
height: 100vh;
|
| 19 |
+
}
|
| 20 |
+
</style>
|
| 21 |
+
<script src="./g2.min.js"></script>
|
| 22 |
+
</head>
|
| 23 |
+
<body>
|
| 24 |
+
<div id="container" class="chart-container"></div>
|
| 25 |
+
<script>
|
| 26 |
+
(async () => {
|
| 27 |
+
const __seedStart = 3260746792;
|
| 28 |
+
let __seed = __seedStart;
|
| 29 |
+
const __originalMathRandom = Math.random;
|
| 30 |
+
function __seededRandom() {
|
| 31 |
+
__seed = (__seed * 1664525 + 1013904223) >>> 0;
|
| 32 |
+
return __seed / 4294967296;
|
| 33 |
+
}
|
| 34 |
+
Math.random = __seededRandom;
|
| 35 |
+
try {
|
| 36 |
+
const { Chart } = G2;
|
| 37 |
+
const __embeddedData0 = [{"country":"挪威","value":50.2,"gdp":335504},{"country":"丹麦","value":42,"gdp":277339},{"country":"比利时","value":39.2,"gdp":421611},{"country":"瑞典","value":38,"gdp":462057},{"country":"法国","value":35.6,"gdp":2228857},{"country":"荷兰","value":34.3,"gdp":702641},{"country":"芬兰","value":33.2,"gdp":215615},{"country":"德国","value":33,"gdp":3144050},{"country":"奥地利","value":32.7,"gdp":349344},{"country":"爱尔兰","value":30.4,"gdp":275567},{"country":"意大利","value":27.8,"gdp":1672438},{"country":"英国","value":26.7,"gdp":2366911},{"country":"西班牙","value":21.3,"gdp":1113851},{"country":"希腊","value":14.2,"gdp":175887},{"country":"葡萄牙","value":13.7,"gdp":184933},{"country":"捷克共和国","value":10.2,"gdp":176564},{"country":"波兰","value":8.6,"gdp":424269},{"country":"罗马尼亚","value":5.5,"gdp":169578}];
|
| 38 |
+
/**
|
| 39 |
+
* A recreation of this demo: https://www.highcharts.com.cn/demo/highcharts/variwide
|
| 40 |
+
*/
|
| 41 |
+
|
| 42 |
+
const chart = new Chart({
|
| 43 |
+
container: 'container',
|
| 44 |
+
autoFit: true,
|
| 45 |
+
});
|
| 46 |
+
|
| 47 |
+
chart
|
| 48 |
+
.interval()
|
| 49 |
+
.data({
|
| 50 |
+
value: __embeddedData0,
|
| 51 |
+
})
|
| 52 |
+
.transform({ type: 'flexX', field: 'gdp' })
|
| 53 |
+
.encode('x', 'country')
|
| 54 |
+
.encode('y', 'value')
|
| 55 |
+
.encode('color', 'country')
|
| 56 |
+
.axis('y', { labelFormatter: '~s' })
|
| 57 |
+
.tooltip(['value', 'gdp']);
|
| 58 |
+
|
| 59 |
+
chart.render();
|
| 60 |
+
} catch (error) {
|
| 61 |
+
console.error(error);
|
| 62 |
+
const pre = document.createElement('pre');
|
| 63 |
+
pre.style.whiteSpace = 'pre-wrap';
|
| 64 |
+
pre.style.padding = '12px';
|
| 65 |
+
pre.style.margin = '12px';
|
| 66 |
+
pre.style.border = '1px solid #ddd';
|
| 67 |
+
pre.textContent = String(error && error.stack ? error.stack : error);
|
| 68 |
+
document.body.appendChild(pre);
|
| 69 |
+
} finally {
|
| 70 |
+
Math.random = __originalMathRandom;
|
| 71 |
+
}
|
| 72 |
+
})();
|
| 73 |
+
</script>
|
| 74 |
+
<!-- source: https://g2.antv.antgroup.com/examples/general/interval/#bar-flex -->
|
| 75 |
+
</body>
|
| 76 |
+
</html>
|
web/AntV G2/bar/chart_0128_bar.html
ADDED
|
@@ -0,0 +1,300 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!doctype html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="utf-8" />
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
| 6 |
+
<title>K线图</title>
|
| 7 |
+
<style>
|
| 8 |
+
html, body {
|
| 9 |
+
margin: 0;
|
| 10 |
+
padding: 0;
|
| 11 |
+
width: 100%;
|
| 12 |
+
min-height: 100%;
|
| 13 |
+
font-family: Arial, sans-serif;
|
| 14 |
+
background: #ffffff;
|
| 15 |
+
}
|
| 16 |
+
.chart-container {
|
| 17 |
+
width: 100%;
|
| 18 |
+
height: 100vh;
|
| 19 |
+
}
|
| 20 |
+
</style>
|
| 21 |
+
<script src="./g2.min.js"></script>
|
| 22 |
+
</head>
|
| 23 |
+
<body>
|
| 24 |
+
<div id="container" class="chart-container"></div>
|
| 25 |
+
<script>
|
| 26 |
+
(async () => {
|
| 27 |
+
const __seedStart = 1382681955;
|
| 28 |
+
let __seed = __seedStart;
|
| 29 |
+
const __originalMathRandom = Math.random;
|
| 30 |
+
function __seededRandom() {
|
| 31 |
+
__seed = (__seed * 1664525 + 1013904223) >>> 0;
|
| 32 |
+
return __seed / 4294967296;
|
| 33 |
+
}
|
| 34 |
+
Math.random = __seededRandom;
|
| 35 |
+
try {
|
| 36 |
+
const { Chart } = G2;
|
| 37 |
+
|
| 38 |
+
const data = [
|
| 39 |
+
{
|
| 40 |
+
time: '2015-11-19',
|
| 41 |
+
start: 8.18,
|
| 42 |
+
max: 8.33,
|
| 43 |
+
min: 7.98,
|
| 44 |
+
end: 8.32,
|
| 45 |
+
volumn: 1810,
|
| 46 |
+
money: 14723.56,
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
time: '2015-11-18',
|
| 50 |
+
start: 8.37,
|
| 51 |
+
max: 8.6,
|
| 52 |
+
min: 8.03,
|
| 53 |
+
end: 8.09,
|
| 54 |
+
volumn: 2790.37,
|
| 55 |
+
money: 23309.19,
|
| 56 |
+
},
|
| 57 |
+
{
|
| 58 |
+
time: '2015-11-17',
|
| 59 |
+
start: 8.7,
|
| 60 |
+
max: 8.78,
|
| 61 |
+
min: 8.32,
|
| 62 |
+
end: 8.37,
|
| 63 |
+
volumn: 3729.04,
|
| 64 |
+
money: 31709.71,
|
| 65 |
+
},
|
| 66 |
+
{
|
| 67 |
+
time: '2015-11-16',
|
| 68 |
+
start: 8.18,
|
| 69 |
+
max: 8.69,
|
| 70 |
+
min: 8.05,
|
| 71 |
+
end: 8.62,
|
| 72 |
+
volumn: 3095.44,
|
| 73 |
+
money: 26100.69,
|
| 74 |
+
},
|
| 75 |
+
{
|
| 76 |
+
time: '2015-11-13',
|
| 77 |
+
start: 8.01,
|
| 78 |
+
max: 8.75,
|
| 79 |
+
min: 7.97,
|
| 80 |
+
end: 8.41,
|
| 81 |
+
volumn: 5815.58,
|
| 82 |
+
money: 48562.37,
|
| 83 |
+
},
|
| 84 |
+
{
|
| 85 |
+
time: '2015-11-12',
|
| 86 |
+
start: 7.76,
|
| 87 |
+
max: 8.18,
|
| 88 |
+
min: 7.61,
|
| 89 |
+
end: 8.15,
|
| 90 |
+
volumn: 4742.6,
|
| 91 |
+
money: 37565.36,
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
time: '2015-11-11',
|
| 95 |
+
start: 7.55,
|
| 96 |
+
max: 7.81,
|
| 97 |
+
min: 7.49,
|
| 98 |
+
end: 7.8,
|
| 99 |
+
volumn: 3133.82,
|
| 100 |
+
money: 24065.42,
|
| 101 |
+
},
|
| 102 |
+
{
|
| 103 |
+
time: '2015-11-10',
|
| 104 |
+
start: 7.5,
|
| 105 |
+
max: 7.68,
|
| 106 |
+
min: 7.44,
|
| 107 |
+
end: 7.57,
|
| 108 |
+
volumn: 2670.35,
|
| 109 |
+
money: 20210.58,
|
| 110 |
+
},
|
| 111 |
+
{
|
| 112 |
+
time: '2015-11-09',
|
| 113 |
+
start: 7.65,
|
| 114 |
+
max: 7.66,
|
| 115 |
+
min: 7.3,
|
| 116 |
+
end: 7.58,
|
| 117 |
+
volumn: 2841.79,
|
| 118 |
+
money: 21344.36,
|
| 119 |
+
},
|
| 120 |
+
{
|
| 121 |
+
time: '2015-11-06',
|
| 122 |
+
start: 7.52,
|
| 123 |
+
max: 7.71,
|
| 124 |
+
min: 7.48,
|
| 125 |
+
end: 7.64,
|
| 126 |
+
volumn: 2725.44,
|
| 127 |
+
money: 20721.51,
|
| 128 |
+
},
|
| 129 |
+
{
|
| 130 |
+
time: '2015-11-05',
|
| 131 |
+
start: 7.48,
|
| 132 |
+
max: 7.57,
|
| 133 |
+
min: 7.29,
|
| 134 |
+
end: 7.48,
|
| 135 |
+
volumn: 3520.85,
|
| 136 |
+
money: 26140.83,
|
| 137 |
+
},
|
| 138 |
+
{
|
| 139 |
+
time: '2015-11-04',
|
| 140 |
+
start: 7.01,
|
| 141 |
+
max: 7.5,
|
| 142 |
+
min: 7.01,
|
| 143 |
+
end: 7.46,
|
| 144 |
+
volumn: 3591.47,
|
| 145 |
+
money: 26285.52,
|
| 146 |
+
},
|
| 147 |
+
{
|
| 148 |
+
time: '2015-11-03',
|
| 149 |
+
start: 7.1,
|
| 150 |
+
max: 7.17,
|
| 151 |
+
min: 6.82,
|
| 152 |
+
end: 7,
|
| 153 |
+
volumn: 2029.21,
|
| 154 |
+
money: 14202.33,
|
| 155 |
+
},
|
| 156 |
+
{
|
| 157 |
+
time: '2015-11-02',
|
| 158 |
+
start: 7.09,
|
| 159 |
+
max: 7.44,
|
| 160 |
+
min: 6.93,
|
| 161 |
+
end: 7.17,
|
| 162 |
+
volumn: 3191.31,
|
| 163 |
+
money: 23205.11,
|
| 164 |
+
},
|
| 165 |
+
{
|
| 166 |
+
time: '2015-10-30',
|
| 167 |
+
start: 6.98,
|
| 168 |
+
max: 7.27,
|
| 169 |
+
min: 6.84,
|
| 170 |
+
end: 7.18,
|
| 171 |
+
volumn: 3522.61,
|
| 172 |
+
money: 25083.44,
|
| 173 |
+
},
|
| 174 |
+
{
|
| 175 |
+
time: '2015-10-29',
|
| 176 |
+
start: 6.94,
|
| 177 |
+
max: 7.2,
|
| 178 |
+
min: 6.8,
|
| 179 |
+
end: 7.05,
|
| 180 |
+
volumn: 2752.27,
|
| 181 |
+
money: 19328.44,
|
| 182 |
+
},
|
| 183 |
+
{
|
| 184 |
+
time: '2015-10-28',
|
| 185 |
+
start: 7.01,
|
| 186 |
+
max: 7.14,
|
| 187 |
+
min: 6.8,
|
| 188 |
+
end: 6.85,
|
| 189 |
+
volumn: 2311.11,
|
| 190 |
+
money: 16137.32,
|
| 191 |
+
},
|
| 192 |
+
{
|
| 193 |
+
time: '2015-10-27',
|
| 194 |
+
start: 6.91,
|
| 195 |
+
max: 7.31,
|
| 196 |
+
min: 6.48,
|
| 197 |
+
end: 7.18,
|
| 198 |
+
volumn: 3172.9,
|
| 199 |
+
money: 21827.3,
|
| 200 |
+
},
|
| 201 |
+
{
|
| 202 |
+
time: '2015-10-26',
|
| 203 |
+
start: 6.9,
|
| 204 |
+
max: 7.08,
|
| 205 |
+
min: 6.87,
|
| 206 |
+
end: 6.95,
|
| 207 |
+
volumn: 2769.31,
|
| 208 |
+
money: 19337.44,
|
| 209 |
+
},
|
| 210 |
+
{
|
| 211 |
+
time: '2015-10-23',
|
| 212 |
+
start: 6.71,
|
| 213 |
+
max: 6.85,
|
| 214 |
+
min: 6.58,
|
| 215 |
+
end: 6.79,
|
| 216 |
+
volumn: 2483.18,
|
| 217 |
+
money: 16714.31,
|
| 218 |
+
},
|
| 219 |
+
{
|
| 220 |
+
time: '2015-10-22',
|
| 221 |
+
start: 6.38,
|
| 222 |
+
max: 6.67,
|
| 223 |
+
min: 6.34,
|
| 224 |
+
end: 6.65,
|
| 225 |
+
volumn: 2225.88,
|
| 226 |
+
money: 14465.56,
|
| 227 |
+
},
|
| 228 |
+
];
|
| 229 |
+
|
| 230 |
+
const chart = new Chart({
|
| 231 |
+
container: 'container',
|
| 232 |
+
autoFit: true,
|
| 233 |
+
});
|
| 234 |
+
|
| 235 |
+
chart
|
| 236 |
+
.data(data)
|
| 237 |
+
.encode('x', 'time')
|
| 238 |
+
.encode('color', (d) => {
|
| 239 |
+
const trend = Math.sign(d.start - d.end);
|
| 240 |
+
return trend > 0 ? '下跌' : trend === 0 ? '不变' : '上涨';
|
| 241 |
+
})
|
| 242 |
+
.scale('x', {
|
| 243 |
+
compare: (a, b) => new Date(a).getTime() - new Date(b).getTime(),
|
| 244 |
+
})
|
| 245 |
+
.scale('color', {
|
| 246 |
+
domain: ['下跌', '不变', '上涨'],
|
| 247 |
+
range: ['#4daf4a', '#999999', '#e41a1c'],
|
| 248 |
+
});
|
| 249 |
+
|
| 250 |
+
chart
|
| 251 |
+
.link()
|
| 252 |
+
.encode('y', ['min', 'max'])
|
| 253 |
+
.tooltip({
|
| 254 |
+
title: 'time',
|
| 255 |
+
items: [
|
| 256 |
+
{ field: 'start', name: '开盘价' },
|
| 257 |
+
{ field: 'end', name: '收盘价' },
|
| 258 |
+
{ field: 'min', name: '最低价' },
|
| 259 |
+
{ field: 'max', name: '最高价' },
|
| 260 |
+
],
|
| 261 |
+
});
|
| 262 |
+
|
| 263 |
+
chart
|
| 264 |
+
.interval()
|
| 265 |
+
.encode('y', ['start', 'end'])
|
| 266 |
+
.style('fillOpacity', 1)
|
| 267 |
+
.style('stroke', (d) => {
|
| 268 |
+
if (d.start === d.end) return '#999999';
|
| 269 |
+
})
|
| 270 |
+
.axis('y', {
|
| 271 |
+
title: false,
|
| 272 |
+
})
|
| 273 |
+
.tooltip({
|
| 274 |
+
title: 'time',
|
| 275 |
+
items: [
|
| 276 |
+
{ field: 'start', name: '开盘价' },
|
| 277 |
+
{ field: 'end', name: '收盘价' },
|
| 278 |
+
{ field: 'min', name: '最低价' },
|
| 279 |
+
{ field: 'max', name: '最高价' },
|
| 280 |
+
],
|
| 281 |
+
});
|
| 282 |
+
|
| 283 |
+
chart.render();
|
| 284 |
+
} catch (error) {
|
| 285 |
+
console.error(error);
|
| 286 |
+
const pre = document.createElement('pre');
|
| 287 |
+
pre.style.whiteSpace = 'pre-wrap';
|
| 288 |
+
pre.style.padding = '12px';
|
| 289 |
+
pre.style.margin = '12px';
|
| 290 |
+
pre.style.border = '1px solid #ddd';
|
| 291 |
+
pre.textContent = String(error && error.stack ? error.stack : error);
|
| 292 |
+
document.body.appendChild(pre);
|
| 293 |
+
} finally {
|
| 294 |
+
Math.random = __originalMathRandom;
|
| 295 |
+
}
|
| 296 |
+
})();
|
| 297 |
+
</script>
|
| 298 |
+
<!-- source: https://g2.antv.antgroup.com/examples/general/candlestick/#basis -->
|
| 299 |
+
</body>
|
| 300 |
+
</html>
|
web/AntV G2/bar/g2.min.js
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
web/AntV G2/bar/weblink.txt
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
https://g2.antv.antgroup.com/examples/general/interval/#bar-basic
|
| 2 |
+
https://g2.antv.antgroup.com/examples/general/interval/#bar-basic-transposed
|
| 3 |
+
https://g2.antv.antgroup.com/examples/general/interval/#bar-basic-stacked
|
| 4 |
+
https://g2.antv.antgroup.com/examples/general/interval/#bar-basic-grouped
|
| 5 |
+
https://g2.antv.antgroup.com/examples/general/interval/#column-interactive
|
| 6 |
+
https://g2.antv.antgroup.com/examples/general/interval/#bar-var-width
|
| 7 |
+
https://g2.antv.antgroup.com/examples/general/interval/#column-min-height
|
| 8 |
+
https://g2.antv.antgroup.com/examples/general/radial/#apple-activity
|
| 9 |
+
https://g2.antv.antgroup.com/examples/general/interval/#column-log
|
| 10 |
+
https://g2.antv.antgroup.com/examples/general/interval/#bar
|
| 11 |
+
https://g2.antv.antgroup.com/examples/general/interval/#bar-diverging
|
| 12 |
+
https://g2.antv.antgroup.com/examples/general/interval/#bar-range
|
| 13 |
+
https://g2.antv.antgroup.com/examples/general/interval/#bar-range-micro
|
| 14 |
+
https://g2.antv.antgroup.com/examples/general/interval/#bar-stacked
|
| 15 |
+
https://g2.antv.antgroup.com/examples/general/interval/#bar-stacked-horizontal
|
| 16 |
+
https://g2.antv.antgroup.com/examples/general/interval/#bar-normalized-stacked
|
| 17 |
+
https://g2.antv.antgroup.com/examples/general/interval/#bar-dodged
|
| 18 |
+
https://g2.antv.antgroup.com/examples/general/interval/#bar-flex
|
| 19 |
+
https://g2.antv.antgroup.com/examples/general/candlestick/#basis
|
web/AntV G2/box/chart_0058_box.html
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!doctype html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="utf-8" />
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
| 6 |
+
<title>预处理箱线图</title>
|
| 7 |
+
<style>
|
| 8 |
+
html, body {
|
| 9 |
+
margin: 0;
|
| 10 |
+
padding: 0;
|
| 11 |
+
width: 100%;
|
| 12 |
+
min-height: 100%;
|
| 13 |
+
font-family: Arial, sans-serif;
|
| 14 |
+
background: #ffffff;
|
| 15 |
+
}
|
| 16 |
+
.chart-container {
|
| 17 |
+
width: 100%;
|
| 18 |
+
height: 100vh;
|
| 19 |
+
}
|
| 20 |
+
</style>
|
| 21 |
+
<script src="./g2.min.js"></script>
|
| 22 |
+
</head>
|
| 23 |
+
<body>
|
| 24 |
+
<div id="container" class="chart-container"></div>
|
| 25 |
+
<script>
|
| 26 |
+
(async () => {
|
| 27 |
+
const __seedStart = 4218663168;
|
| 28 |
+
let __seed = __seedStart;
|
| 29 |
+
const __originalMathRandom = Math.random;
|
| 30 |
+
function __seededRandom() {
|
| 31 |
+
__seed = (__seed * 1664525 + 1013904223) >>> 0;
|
| 32 |
+
return __seed / 4294967296;
|
| 33 |
+
}
|
| 34 |
+
Math.random = __seededRandom;
|
| 35 |
+
try {
|
| 36 |
+
const { Chart } = G2;
|
| 37 |
+
|
| 38 |
+
const data = [
|
| 39 |
+
{ x: 'Oceania', y: [1, 9, 16, 22, 24] },
|
| 40 |
+
{ x: 'East Europe', y: [1, 5, 8, 12, 16] },
|
| 41 |
+
{ x: 'Australia', y: [1, 8, 12, 19, 26] },
|
| 42 |
+
{ x: 'South America', y: [2, 8, 12, 21, 28] },
|
| 43 |
+
{ x: 'North Africa', y: [1, 8, 14, 18, 24] },
|
| 44 |
+
{ x: 'North America', y: [3, 10, 17, 28, 30] },
|
| 45 |
+
{ x: 'West Europe', y: [1, 7, 10, 17, 22] },
|
| 46 |
+
{ x: 'West Africa', y: [1, 6, 8, 13, 16] },
|
| 47 |
+
];
|
| 48 |
+
|
| 49 |
+
const chart = new Chart({
|
| 50 |
+
container: 'container',
|
| 51 |
+
autoFit: true,
|
| 52 |
+
});
|
| 53 |
+
|
| 54 |
+
chart
|
| 55 |
+
.box()
|
| 56 |
+
.data(data)
|
| 57 |
+
.encode('x', 'x')
|
| 58 |
+
.encode('y', 'y')
|
| 59 |
+
.encode('color', 'x')
|
| 60 |
+
.scale('x', { paddingInner: 0.6, paddingOuter: 0.3 })
|
| 61 |
+
.scale('y', { zero: true })
|
| 62 |
+
.legend(false)
|
| 63 |
+
.style('stroke', 'black')
|
| 64 |
+
.tooltip([
|
| 65 |
+
{ name: 'min', channel: 'y' },
|
| 66 |
+
{ name: 'q1', channel: 'y1' },
|
| 67 |
+
{ name: 'q2', channel: 'y2' },
|
| 68 |
+
{ name: 'q3', channel: 'y3' },
|
| 69 |
+
{ name: 'max', channel: 'y4' },
|
| 70 |
+
]);
|
| 71 |
+
|
| 72 |
+
chart.render();
|
| 73 |
+
} catch (error) {
|
| 74 |
+
console.error(error);
|
| 75 |
+
const pre = document.createElement('pre');
|
| 76 |
+
pre.style.whiteSpace = 'pre-wrap';
|
| 77 |
+
pre.style.padding = '12px';
|
| 78 |
+
pre.style.margin = '12px';
|
| 79 |
+
pre.style.border = '1px solid #ddd';
|
| 80 |
+
pre.textContent = String(error && error.stack ? error.stack : error);
|
| 81 |
+
document.body.appendChild(pre);
|
| 82 |
+
} finally {
|
| 83 |
+
Math.random = __originalMathRandom;
|
| 84 |
+
}
|
| 85 |
+
})();
|
| 86 |
+
</script>
|
| 87 |
+
<!-- source: https://g2.antv.antgroup.com/examples/general/box/#box -->
|
| 88 |
+
</body>
|
| 89 |
+
</html>
|
web/AntV G2/box/chart_0059_box.html
ADDED
|
@@ -0,0 +1,155 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!doctype html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="utf-8" />
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
| 6 |
+
<title>预处理分组箱线图</title>
|
| 7 |
+
<style>
|
| 8 |
+
html, body {
|
| 9 |
+
margin: 0;
|
| 10 |
+
padding: 0;
|
| 11 |
+
width: 100%;
|
| 12 |
+
min-height: 100%;
|
| 13 |
+
font-family: Arial, sans-serif;
|
| 14 |
+
background: #ffffff;
|
| 15 |
+
}
|
| 16 |
+
.chart-container {
|
| 17 |
+
width: 100%;
|
| 18 |
+
height: 100vh;
|
| 19 |
+
}
|
| 20 |
+
</style>
|
| 21 |
+
<script src="./g2.min.js"></script>
|
| 22 |
+
</head>
|
| 23 |
+
<body>
|
| 24 |
+
<div id="container" class="chart-container"></div>
|
| 25 |
+
<script>
|
| 26 |
+
(async () => {
|
| 27 |
+
const __seedStart = 2729947832;
|
| 28 |
+
let __seed = __seedStart;
|
| 29 |
+
const __originalMathRandom = Math.random;
|
| 30 |
+
function __seededRandom() {
|
| 31 |
+
__seed = (__seed * 1664525 + 1013904223) >>> 0;
|
| 32 |
+
return __seed / 4294967296;
|
| 33 |
+
}
|
| 34 |
+
Math.random = __seededRandom;
|
| 35 |
+
try {
|
| 36 |
+
const { Chart } = G2;
|
| 37 |
+
|
| 38 |
+
const data = [
|
| 39 |
+
{
|
| 40 |
+
Species: 'I. setosa',
|
| 41 |
+
type: 'SepalLength',
|
| 42 |
+
value: 5.1,
|
| 43 |
+
bin: [4.3, 4.8, 5, 5.2, 5.8],
|
| 44 |
+
},
|
| 45 |
+
{
|
| 46 |
+
Species: 'I. setosa',
|
| 47 |
+
type: 'SepalWidth',
|
| 48 |
+
value: 3.5,
|
| 49 |
+
bin: [2.3, 3.2, 3.4, 3.7, 4.4],
|
| 50 |
+
},
|
| 51 |
+
{
|
| 52 |
+
Species: 'I. setosa',
|
| 53 |
+
type: 'PetalLength',
|
| 54 |
+
value: 1.4,
|
| 55 |
+
bin: [1, 1.4, 1.5, 1.6, 1.9],
|
| 56 |
+
},
|
| 57 |
+
{
|
| 58 |
+
Species: 'I. setosa',
|
| 59 |
+
type: 'PetalWidth',
|
| 60 |
+
value: 0.2,
|
| 61 |
+
bin: [0.1, 0.2, 0.2, 0.3, 0.6],
|
| 62 |
+
},
|
| 63 |
+
{
|
| 64 |
+
Species: 'I. versicolor',
|
| 65 |
+
type: 'SepalLength',
|
| 66 |
+
value: 7,
|
| 67 |
+
bin: [4.9, 5.6, 5.9, 6.3, 7],
|
| 68 |
+
},
|
| 69 |
+
{
|
| 70 |
+
Species: 'I. versicolor',
|
| 71 |
+
type: 'SepalWidth',
|
| 72 |
+
value: 3.2,
|
| 73 |
+
bin: [2, 2.5, 2.8, 3, 3.4],
|
| 74 |
+
},
|
| 75 |
+
{
|
| 76 |
+
Species: 'I. versicolor',
|
| 77 |
+
type: 'PetalLength',
|
| 78 |
+
value: 4.7,
|
| 79 |
+
bin: [3, 4, 4.35, 4.6, 5.1],
|
| 80 |
+
},
|
| 81 |
+
{
|
| 82 |
+
Species: 'I. versicolor',
|
| 83 |
+
type: 'PetalWidth',
|
| 84 |
+
value: 1.4,
|
| 85 |
+
bin: [1, 1.2, 1.3, 1.5, 1.8],
|
| 86 |
+
},
|
| 87 |
+
{
|
| 88 |
+
Species: 'I. virginica',
|
| 89 |
+
type: 'SepalLength',
|
| 90 |
+
value: 6.3,
|
| 91 |
+
bin: [4.9, 6.2, 6.5, 6.9, 7.9],
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
Species: 'I. virginica',
|
| 95 |
+
type: 'SepalWidth',
|
| 96 |
+
value: 3.3,
|
| 97 |
+
bin: [2.2, 2.8, 3, 3.2, 3.8],
|
| 98 |
+
},
|
| 99 |
+
{
|
| 100 |
+
Species: 'I. virginica',
|
| 101 |
+
type: 'PetalLength',
|
| 102 |
+
value: 6,
|
| 103 |
+
bin: [4.5, 5.1, 5.55, 5.9, 6.9],
|
| 104 |
+
},
|
| 105 |
+
{
|
| 106 |
+
Species: 'I. virginica',
|
| 107 |
+
type: 'PetalWidth',
|
| 108 |
+
value: 2.5,
|
| 109 |
+
bin: [1.4, 1.8, 2, 2.3, 2.5],
|
| 110 |
+
},
|
| 111 |
+
];
|
| 112 |
+
|
| 113 |
+
const chart = new Chart({
|
| 114 |
+
container: 'container',
|
| 115 |
+
autoFit: true,
|
| 116 |
+
});
|
| 117 |
+
const boxTooltipItems = [
|
| 118 |
+
{ name: 'min', channel: 'y' },
|
| 119 |
+
{ name: 'q1', channel: 'y1' },
|
| 120 |
+
{ name: 'q2', channel: 'y2' },
|
| 121 |
+
{ name: 'q3', channel: 'y3' },
|
| 122 |
+
{ name: 'max', channel: 'y4' },
|
| 123 |
+
];
|
| 124 |
+
|
| 125 |
+
chart
|
| 126 |
+
.box()
|
| 127 |
+
.data(data)
|
| 128 |
+
.encode('x', 'type')
|
| 129 |
+
.encode('y', 'bin')
|
| 130 |
+
.encode('series', 'Species')
|
| 131 |
+
.encode('color', 'Species')
|
| 132 |
+
.scale('x', { paddingInner: 0.2, paddingOuter: 0.1 })
|
| 133 |
+
.scale('y', { zero: true })
|
| 134 |
+
.scale('series', { paddingInner: 0.3, paddingOuter: 0.1 })
|
| 135 |
+
.style('stroke', 'black')
|
| 136 |
+
.tooltip({ items: boxTooltipItems });
|
| 137 |
+
|
| 138 |
+
chart.render();
|
| 139 |
+
} catch (error) {
|
| 140 |
+
console.error(error);
|
| 141 |
+
const pre = document.createElement('pre');
|
| 142 |
+
pre.style.whiteSpace = 'pre-wrap';
|
| 143 |
+
pre.style.padding = '12px';
|
| 144 |
+
pre.style.margin = '12px';
|
| 145 |
+
pre.style.border = '1px solid #ddd';
|
| 146 |
+
pre.textContent = String(error && error.stack ? error.stack : error);
|
| 147 |
+
document.body.appendChild(pre);
|
| 148 |
+
} finally {
|
| 149 |
+
Math.random = __originalMathRandom;
|
| 150 |
+
}
|
| 151 |
+
})();
|
| 152 |
+
</script>
|
| 153 |
+
<!-- source: https://g2.antv.antgroup.com/examples/general/box/#grouped-box -->
|
| 154 |
+
</body>
|
| 155 |
+
</html>
|
web/AntV G2/box/chart_0060_box.html
ADDED
|
@@ -0,0 +1,624 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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<meta charset="utf-8" />
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
| 6 |
+
<title>无异常点箱线图</title>
|
| 7 |
+
<style>
|
| 8 |
+
html, body {
|
| 9 |
+
margin: 0;
|
| 10 |
+
padding: 0;
|
| 11 |
+
width: 100%;
|
| 12 |
+
min-height: 100%;
|
| 13 |
+
font-family: Arial, sans-serif;
|
| 14 |
+
background: #ffffff;
|
| 15 |
+
}
|
| 16 |
+
.chart-container {
|
| 17 |
+
width: 100%;
|
| 18 |
+
height: 100vh;
|
| 19 |
+
}
|
| 20 |
+
</style>
|
| 21 |
+
<script src="./g2.min.js"></script>
|
| 22 |
+
</head>
|
| 23 |
+
<body>
|
| 24 |
+
<div id="container" class="chart-container"></div>
|
| 25 |
+
<script>
|
| 26 |
+
(async () => {
|
| 27 |
+
const __seedStart = 3142039804;
|
| 28 |
+
let __seed = __seedStart;
|
| 29 |
+
const __originalMathRandom = Math.random;
|
| 30 |
+
function __seededRandom() {
|
| 31 |
+
__seed = (__seed * 1664525 + 1013904223) >>> 0;
|
| 32 |
+
return __seed / 4294967296;
|
| 33 |
+
}
|
| 34 |
+
Math.random = __seededRandom;
|
| 35 |
+
try {
|
| 36 |
+
const { Chart } = G2;
|
| 37 |
+
const raw = [
|
| 38 |
+
{
|
| 39 |
+
"Expt": 1,
|
| 40 |
+
"Run": 1,
|
| 41 |
+
"Speed": 850
|
| 42 |
+
},
|
| 43 |
+
{
|
| 44 |
+
"Expt": 1,
|
| 45 |
+
"Run": 2,
|
| 46 |
+
"Speed": 740
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"Expt": 1,
|
| 50 |
+
"Run": 3,
|
| 51 |
+
"Speed": 900
|
| 52 |
+
},
|
| 53 |
+
{
|
| 54 |
+
"Expt": 1,
|
| 55 |
+
"Run": 4,
|
| 56 |
+
"Speed": 1070
|
| 57 |
+
},
|
| 58 |
+
{
|
| 59 |
+
"Expt": 1,
|
| 60 |
+
"Run": 5,
|
| 61 |
+
"Speed": 930
|
| 62 |
+
},
|
| 63 |
+
{
|
| 64 |
+
"Expt": 1,
|
| 65 |
+
"Run": 6,
|
| 66 |
+
"Speed": 850
|
| 67 |
+
},
|
| 68 |
+
{
|
| 69 |
+
"Expt": 1,
|
| 70 |
+
"Run": 7,
|
| 71 |
+
"Speed": 950
|
| 72 |
+
},
|
| 73 |
+
{
|
| 74 |
+
"Expt": 1,
|
| 75 |
+
"Run": 8,
|
| 76 |
+
"Speed": 980
|
| 77 |
+
},
|
| 78 |
+
{
|
| 79 |
+
"Expt": 1,
|
| 80 |
+
"Run": 9,
|
| 81 |
+
"Speed": 980
|
| 82 |
+
},
|
| 83 |
+
{
|
| 84 |
+
"Expt": 1,
|
| 85 |
+
"Run": 10,
|
| 86 |
+
"Speed": 880
|
| 87 |
+
},
|
| 88 |
+
{
|
| 89 |
+
"Expt": 1,
|
| 90 |
+
"Run": 11,
|
| 91 |
+
"Speed": 1000
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"Expt": 1,
|
| 95 |
+
"Run": 12,
|
| 96 |
+
"Speed": 980
|
| 97 |
+
},
|
| 98 |
+
{
|
| 99 |
+
"Expt": 1,
|
| 100 |
+
"Run": 13,
|
| 101 |
+
"Speed": 930
|
| 102 |
+
},
|
| 103 |
+
{
|
| 104 |
+
"Expt": 1,
|
| 105 |
+
"Run": 14,
|
| 106 |
+
"Speed": 650
|
| 107 |
+
},
|
| 108 |
+
{
|
| 109 |
+
"Expt": 1,
|
| 110 |
+
"Run": 15,
|
| 111 |
+
"Speed": 760
|
| 112 |
+
},
|
| 113 |
+
{
|
| 114 |
+
"Expt": 1,
|
| 115 |
+
"Run": 16,
|
| 116 |
+
"Speed": 810
|
| 117 |
+
},
|
| 118 |
+
{
|
| 119 |
+
"Expt": 1,
|
| 120 |
+
"Run": 17,
|
| 121 |
+
"Speed": 1000
|
| 122 |
+
},
|
| 123 |
+
{
|
| 124 |
+
"Expt": 1,
|
| 125 |
+
"Run": 18,
|
| 126 |
+
"Speed": 1000
|
| 127 |
+
},
|
| 128 |
+
{
|
| 129 |
+
"Expt": 1,
|
| 130 |
+
"Run": 19,
|
| 131 |
+
"Speed": 960
|
| 132 |
+
},
|
| 133 |
+
{
|
| 134 |
+
"Expt": 1,
|
| 135 |
+
"Run": 20,
|
| 136 |
+
"Speed": 960
|
| 137 |
+
},
|
| 138 |
+
{
|
| 139 |
+
"Expt": 2,
|
| 140 |
+
"Run": 1,
|
| 141 |
+
"Speed": 960
|
| 142 |
+
},
|
| 143 |
+
{
|
| 144 |
+
"Expt": 2,
|
| 145 |
+
"Run": 2,
|
| 146 |
+
"Speed": 940
|
| 147 |
+
},
|
| 148 |
+
{
|
| 149 |
+
"Expt": 2,
|
| 150 |
+
"Run": 3,
|
| 151 |
+
"Speed": 960
|
| 152 |
+
},
|
| 153 |
+
{
|
| 154 |
+
"Expt": 2,
|
| 155 |
+
"Run": 4,
|
| 156 |
+
"Speed": 940
|
| 157 |
+
},
|
| 158 |
+
{
|
| 159 |
+
"Expt": 2,
|
| 160 |
+
"Run": 5,
|
| 161 |
+
"Speed": 880
|
| 162 |
+
},
|
| 163 |
+
{
|
| 164 |
+
"Expt": 2,
|
| 165 |
+
"Run": 6,
|
| 166 |
+
"Speed": 800
|
| 167 |
+
},
|
| 168 |
+
{
|
| 169 |
+
"Expt": 2,
|
| 170 |
+
"Run": 7,
|
| 171 |
+
"Speed": 850
|
| 172 |
+
},
|
| 173 |
+
{
|
| 174 |
+
"Expt": 2,
|
| 175 |
+
"Run": 8,
|
| 176 |
+
"Speed": 880
|
| 177 |
+
},
|
| 178 |
+
{
|
| 179 |
+
"Expt": 2,
|
| 180 |
+
"Run": 9,
|
| 181 |
+
"Speed": 900
|
| 182 |
+
},
|
| 183 |
+
{
|
| 184 |
+
"Expt": 2,
|
| 185 |
+
"Run": 10,
|
| 186 |
+
"Speed": 840
|
| 187 |
+
},
|
| 188 |
+
{
|
| 189 |
+
"Expt": 2,
|
| 190 |
+
"Run": 11,
|
| 191 |
+
"Speed": 830
|
| 192 |
+
},
|
| 193 |
+
{
|
| 194 |
+
"Expt": 2,
|
| 195 |
+
"Run": 12,
|
| 196 |
+
"Speed": 790
|
| 197 |
+
},
|
| 198 |
+
{
|
| 199 |
+
"Expt": 2,
|
| 200 |
+
"Run": 13,
|
| 201 |
+
"Speed": 810
|
| 202 |
+
},
|
| 203 |
+
{
|
| 204 |
+
"Expt": 2,
|
| 205 |
+
"Run": 14,
|
| 206 |
+
"Speed": 880
|
| 207 |
+
},
|
| 208 |
+
{
|
| 209 |
+
"Expt": 2,
|
| 210 |
+
"Run": 15,
|
| 211 |
+
"Speed": 880
|
| 212 |
+
},
|
| 213 |
+
{
|
| 214 |
+
"Expt": 2,
|
| 215 |
+
"Run": 16,
|
| 216 |
+
"Speed": 830
|
| 217 |
+
},
|
| 218 |
+
{
|
| 219 |
+
"Expt": 2,
|
| 220 |
+
"Run": 17,
|
| 221 |
+
"Speed": 800
|
| 222 |
+
},
|
| 223 |
+
{
|
| 224 |
+
"Expt": 2,
|
| 225 |
+
"Run": 18,
|
| 226 |
+
"Speed": 790
|
| 227 |
+
},
|
| 228 |
+
{
|
| 229 |
+
"Expt": 2,
|
| 230 |
+
"Run": 19,
|
| 231 |
+
"Speed": 760
|
| 232 |
+
},
|
| 233 |
+
{
|
| 234 |
+
"Expt": 2,
|
| 235 |
+
"Run": 20,
|
| 236 |
+
"Speed": 800
|
| 237 |
+
},
|
| 238 |
+
{
|
| 239 |
+
"Expt": 3,
|
| 240 |
+
"Run": 1,
|
| 241 |
+
"Speed": 880
|
| 242 |
+
},
|
| 243 |
+
{
|
| 244 |
+
"Expt": 3,
|
| 245 |
+
"Run": 2,
|
| 246 |
+
"Speed": 880
|
| 247 |
+
},
|
| 248 |
+
{
|
| 249 |
+
"Expt": 3,
|
| 250 |
+
"Run": 3,
|
| 251 |
+
"Speed": 880
|
| 252 |
+
},
|
| 253 |
+
{
|
| 254 |
+
"Expt": 3,
|
| 255 |
+
"Run": 4,
|
| 256 |
+
"Speed": 860
|
| 257 |
+
},
|
| 258 |
+
{
|
| 259 |
+
"Expt": 3,
|
| 260 |
+
"Run": 5,
|
| 261 |
+
"Speed": 720
|
| 262 |
+
},
|
| 263 |
+
{
|
| 264 |
+
"Expt": 3,
|
| 265 |
+
"Run": 6,
|
| 266 |
+
"Speed": 720
|
| 267 |
+
},
|
| 268 |
+
{
|
| 269 |
+
"Expt": 3,
|
| 270 |
+
"Run": 7,
|
| 271 |
+
"Speed": 620
|
| 272 |
+
},
|
| 273 |
+
{
|
| 274 |
+
"Expt": 3,
|
| 275 |
+
"Run": 8,
|
| 276 |
+
"Speed": 860
|
| 277 |
+
},
|
| 278 |
+
{
|
| 279 |
+
"Expt": 3,
|
| 280 |
+
"Run": 9,
|
| 281 |
+
"Speed": 970
|
| 282 |
+
},
|
| 283 |
+
{
|
| 284 |
+
"Expt": 3,
|
| 285 |
+
"Run": 10,
|
| 286 |
+
"Speed": 950
|
| 287 |
+
},
|
| 288 |
+
{
|
| 289 |
+
"Expt": 3,
|
| 290 |
+
"Run": 11,
|
| 291 |
+
"Speed": 880
|
| 292 |
+
},
|
| 293 |
+
{
|
| 294 |
+
"Expt": 3,
|
| 295 |
+
"Run": 12,
|
| 296 |
+
"Speed": 910
|
| 297 |
+
},
|
| 298 |
+
{
|
| 299 |
+
"Expt": 3,
|
| 300 |
+
"Run": 13,
|
| 301 |
+
"Speed": 850
|
| 302 |
+
},
|
| 303 |
+
{
|
| 304 |
+
"Expt": 3,
|
| 305 |
+
"Run": 14,
|
| 306 |
+
"Speed": 870
|
| 307 |
+
},
|
| 308 |
+
{
|
| 309 |
+
"Expt": 3,
|
| 310 |
+
"Run": 15,
|
| 311 |
+
"Speed": 840
|
| 312 |
+
},
|
| 313 |
+
{
|
| 314 |
+
"Expt": 3,
|
| 315 |
+
"Run": 16,
|
| 316 |
+
"Speed": 840
|
| 317 |
+
},
|
| 318 |
+
{
|
| 319 |
+
"Expt": 3,
|
| 320 |
+
"Run": 17,
|
| 321 |
+
"Speed": 850
|
| 322 |
+
},
|
| 323 |
+
{
|
| 324 |
+
"Expt": 3,
|
| 325 |
+
"Run": 18,
|
| 326 |
+
"Speed": 840
|
| 327 |
+
},
|
| 328 |
+
{
|
| 329 |
+
"Expt": 3,
|
| 330 |
+
"Run": 19,
|
| 331 |
+
"Speed": 840
|
| 332 |
+
},
|
| 333 |
+
{
|
| 334 |
+
"Expt": 3,
|
| 335 |
+
"Run": 20,
|
| 336 |
+
"Speed": 840
|
| 337 |
+
},
|
| 338 |
+
{
|
| 339 |
+
"Expt": 4,
|
| 340 |
+
"Run": 1,
|
| 341 |
+
"Speed": 890
|
| 342 |
+
},
|
| 343 |
+
{
|
| 344 |
+
"Expt": 4,
|
| 345 |
+
"Run": 2,
|
| 346 |
+
"Speed": 810
|
| 347 |
+
},
|
| 348 |
+
{
|
| 349 |
+
"Expt": 4,
|
| 350 |
+
"Run": 3,
|
| 351 |
+
"Speed": 810
|
| 352 |
+
},
|
| 353 |
+
{
|
| 354 |
+
"Expt": 4,
|
| 355 |
+
"Run": 4,
|
| 356 |
+
"Speed": 820
|
| 357 |
+
},
|
| 358 |
+
{
|
| 359 |
+
"Expt": 4,
|
| 360 |
+
"Run": 5,
|
| 361 |
+
"Speed": 800
|
| 362 |
+
},
|
| 363 |
+
{
|
| 364 |
+
"Expt": 4,
|
| 365 |
+
"Run": 6,
|
| 366 |
+
"Speed": 770
|
| 367 |
+
},
|
| 368 |
+
{
|
| 369 |
+
"Expt": 4,
|
| 370 |
+
"Run": 7,
|
| 371 |
+
"Speed": 760
|
| 372 |
+
},
|
| 373 |
+
{
|
| 374 |
+
"Expt": 4,
|
| 375 |
+
"Run": 8,
|
| 376 |
+
"Speed": 740
|
| 377 |
+
},
|
| 378 |
+
{
|
| 379 |
+
"Expt": 4,
|
| 380 |
+
"Run": 9,
|
| 381 |
+
"Speed": 750
|
| 382 |
+
},
|
| 383 |
+
{
|
| 384 |
+
"Expt": 4,
|
| 385 |
+
"Run": 10,
|
| 386 |
+
"Speed": 760
|
| 387 |
+
},
|
| 388 |
+
{
|
| 389 |
+
"Expt": 4,
|
| 390 |
+
"Run": 11,
|
| 391 |
+
"Speed": 910
|
| 392 |
+
},
|
| 393 |
+
{
|
| 394 |
+
"Expt": 4,
|
| 395 |
+
"Run": 12,
|
| 396 |
+
"Speed": 920
|
| 397 |
+
},
|
| 398 |
+
{
|
| 399 |
+
"Expt": 4,
|
| 400 |
+
"Run": 13,
|
| 401 |
+
"Speed": 890
|
| 402 |
+
},
|
| 403 |
+
{
|
| 404 |
+
"Expt": 4,
|
| 405 |
+
"Run": 14,
|
| 406 |
+
"Speed": 860
|
| 407 |
+
},
|
| 408 |
+
{
|
| 409 |
+
"Expt": 4,
|
| 410 |
+
"Run": 15,
|
| 411 |
+
"Speed": 880
|
| 412 |
+
},
|
| 413 |
+
{
|
| 414 |
+
"Expt": 4,
|
| 415 |
+
"Run": 16,
|
| 416 |
+
"Speed": 720
|
| 417 |
+
},
|
| 418 |
+
{
|
| 419 |
+
"Expt": 4,
|
| 420 |
+
"Run": 17,
|
| 421 |
+
"Speed": 840
|
| 422 |
+
},
|
| 423 |
+
{
|
| 424 |
+
"Expt": 4,
|
| 425 |
+
"Run": 18,
|
| 426 |
+
"Speed": 850
|
| 427 |
+
},
|
| 428 |
+
{
|
| 429 |
+
"Expt": 4,
|
| 430 |
+
"Run": 19,
|
| 431 |
+
"Speed": 850
|
| 432 |
+
},
|
| 433 |
+
{
|
| 434 |
+
"Expt": 4,
|
| 435 |
+
"Run": 20,
|
| 436 |
+
"Speed": 780
|
| 437 |
+
},
|
| 438 |
+
{
|
| 439 |
+
"Expt": 5,
|
| 440 |
+
"Run": 1,
|
| 441 |
+
"Speed": 890
|
| 442 |
+
},
|
| 443 |
+
{
|
| 444 |
+
"Expt": 5,
|
| 445 |
+
"Run": 2,
|
| 446 |
+
"Speed": 840
|
| 447 |
+
},
|
| 448 |
+
{
|
| 449 |
+
"Expt": 5,
|
| 450 |
+
"Run": 3,
|
| 451 |
+
"Speed": 780
|
| 452 |
+
},
|
| 453 |
+
{
|
| 454 |
+
"Expt": 5,
|
| 455 |
+
"Run": 4,
|
| 456 |
+
"Speed": 810
|
| 457 |
+
},
|
| 458 |
+
{
|
| 459 |
+
"Expt": 5,
|
| 460 |
+
"Run": 5,
|
| 461 |
+
"Speed": 760
|
| 462 |
+
},
|
| 463 |
+
{
|
| 464 |
+
"Expt": 5,
|
| 465 |
+
"Run": 6,
|
| 466 |
+
"Speed": 810
|
| 467 |
+
},
|
| 468 |
+
{
|
| 469 |
+
"Expt": 5,
|
| 470 |
+
"Run": 7,
|
| 471 |
+
"Speed": 790
|
| 472 |
+
},
|
| 473 |
+
{
|
| 474 |
+
"Expt": 5,
|
| 475 |
+
"Run": 8,
|
| 476 |
+
"Speed": 810
|
| 477 |
+
},
|
| 478 |
+
{
|
| 479 |
+
"Expt": 5,
|
| 480 |
+
"Run": 9,
|
| 481 |
+
"Speed": 820
|
| 482 |
+
},
|
| 483 |
+
{
|
| 484 |
+
"Expt": 5,
|
| 485 |
+
"Run": 10,
|
| 486 |
+
"Speed": 850
|
| 487 |
+
},
|
| 488 |
+
{
|
| 489 |
+
"Expt": 5,
|
| 490 |
+
"Run": 11,
|
| 491 |
+
"Speed": 870
|
| 492 |
+
},
|
| 493 |
+
{
|
| 494 |
+
"Expt": 5,
|
| 495 |
+
"Run": 12,
|
| 496 |
+
"Speed": 870
|
| 497 |
+
},
|
| 498 |
+
{
|
| 499 |
+
"Expt": 5,
|
| 500 |
+
"Run": 13,
|
| 501 |
+
"Speed": 810
|
| 502 |
+
},
|
| 503 |
+
{
|
| 504 |
+
"Expt": 5,
|
| 505 |
+
"Run": 14,
|
| 506 |
+
"Speed": 740
|
| 507 |
+
},
|
| 508 |
+
{
|
| 509 |
+
"Expt": 5,
|
| 510 |
+
"Run": 15,
|
| 511 |
+
"Speed": 810
|
| 512 |
+
},
|
| 513 |
+
{
|
| 514 |
+
"Expt": 5,
|
| 515 |
+
"Run": 16,
|
| 516 |
+
"Speed": 940
|
| 517 |
+
},
|
| 518 |
+
{
|
| 519 |
+
"Expt": 5,
|
| 520 |
+
"Run": 17,
|
| 521 |
+
"Speed": 950
|
| 522 |
+
},
|
| 523 |
+
{
|
| 524 |
+
"Expt": 5,
|
| 525 |
+
"Run": 18,
|
| 526 |
+
"Speed": 800
|
| 527 |
+
},
|
| 528 |
+
{
|
| 529 |
+
"Expt": 5,
|
| 530 |
+
"Run": 19,
|
| 531 |
+
"Speed": 810
|
| 532 |
+
},
|
| 533 |
+
{
|
| 534 |
+
"Expt": 5,
|
| 535 |
+
"Run": 20,
|
| 536 |
+
"Speed": 870
|
| 537 |
+
}
|
| 538 |
+
];
|
| 539 |
+
|
| 540 |
+
const chart = new Chart({
|
| 541 |
+
container: 'container',
|
| 542 |
+
autoFit: true,
|
| 543 |
+
});
|
| 544 |
+
const boxTooltipItems = [
|
| 545 |
+
{ name: 'min', channel: 'y' },
|
| 546 |
+
{ name: 'q1', channel: 'y1' },
|
| 547 |
+
{ name: 'q2', channel: 'y2' },
|
| 548 |
+
{ name: 'q3', channel: 'y3' },
|
| 549 |
+
{ name: 'max', channel: 'y4' },
|
| 550 |
+
];
|
| 551 |
+
|
| 552 |
+
|
| 553 |
+
function toFiniteNumber(value) {
|
| 554 |
+
const n = Number(value);
|
| 555 |
+
return Number.isFinite(n) ? n : null;
|
| 556 |
+
}
|
| 557 |
+
|
| 558 |
+
function quantile(sorted, p) {
|
| 559 |
+
if (!sorted.length) return null;
|
| 560 |
+
if (sorted.length === 1) return sorted[0];
|
| 561 |
+
const pos = (sorted.length - 1) * p;
|
| 562 |
+
const base = Math.floor(pos);
|
| 563 |
+
const rest = pos - base;
|
| 564 |
+
const next = sorted[Math.min(base + 1, sorted.length - 1)];
|
| 565 |
+
return sorted[base] + rest * (next - sorted[base]);
|
| 566 |
+
}
|
| 567 |
+
|
| 568 |
+
function fiveNumber(values) {
|
| 569 |
+
const sorted = values
|
| 570 |
+
.map(toFiniteNumber)
|
| 571 |
+
.filter((v) => v !== null)
|
| 572 |
+
.sort((a, b) => a - b);
|
| 573 |
+
if (!sorted.length) return null;
|
| 574 |
+
return [
|
| 575 |
+
sorted[0],
|
| 576 |
+
quantile(sorted, 0.25),
|
| 577 |
+
quantile(sorted, 0.5),
|
| 578 |
+
quantile(sorted, 0.75),
|
| 579 |
+
sorted[sorted.length - 1],
|
| 580 |
+
];
|
| 581 |
+
}
|
| 582 |
+
const groups = new Map();
|
| 583 |
+
|
| 584 |
+
for (const row of raw) {
|
| 585 |
+
const expt = row.Expt;
|
| 586 |
+
const speed = toFiniteNumber(row.Speed);
|
| 587 |
+
if (expt === undefined || expt === null || speed === null) continue;
|
| 588 |
+
const key = String(expt);
|
| 589 |
+
if (!groups.has(key)) groups.set(key, []);
|
| 590 |
+
groups.get(key).push(speed);
|
| 591 |
+
}
|
| 592 |
+
|
| 593 |
+
const order = Array.from(groups.keys()).sort((a, b) => Number(a) - Number(b));
|
| 594 |
+
const data = order
|
| 595 |
+
.map((expt) => ({ Expt: expt, Speed: fiveNumber(groups.get(expt)) }))
|
| 596 |
+
.filter((d) => Array.isArray(d.Speed));
|
| 597 |
+
|
| 598 |
+
chart
|
| 599 |
+
.box()
|
| 600 |
+
.data(data)
|
| 601 |
+
.encode('x', 'Expt')
|
| 602 |
+
.encode('y', 'Speed')
|
| 603 |
+
.style('stroke', '#222')
|
| 604 |
+
.tooltip({ items: boxTooltipItems });
|
| 605 |
+
|
| 606 |
+
await chart.render();
|
| 607 |
+
|
| 608 |
+
} catch (error) {
|
| 609 |
+
console.error(error);
|
| 610 |
+
const pre = document.createElement('pre');
|
| 611 |
+
pre.style.whiteSpace = 'pre-wrap';
|
| 612 |
+
pre.style.padding = '12px';
|
| 613 |
+
pre.style.margin = '12px';
|
| 614 |
+
pre.style.border = '1px solid #ddd';
|
| 615 |
+
pre.textContent = String(error && error.stack ? error.stack : error);
|
| 616 |
+
document.body.appendChild(pre);
|
| 617 |
+
} finally {
|
| 618 |
+
Math.random = __originalMathRandom;
|
| 619 |
+
}
|
| 620 |
+
})();
|
| 621 |
+
</script>
|
| 622 |
+
<!-- source: https://g2.antv.antgroup.com/examples/general/box/#boxplot -->
|
| 623 |
+
</body>
|
| 624 |
+
</html>
|
web/AntV G2/box/chart_0061_box.html
ADDED
|
@@ -0,0 +1,656 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!doctype html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="utf-8" />
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
| 6 |
+
<title>带异常点箱线图</title>
|
| 7 |
+
<style>
|
| 8 |
+
html, body {
|
| 9 |
+
margin: 0;
|
| 10 |
+
padding: 0;
|
| 11 |
+
width: 100%;
|
| 12 |
+
min-height: 100%;
|
| 13 |
+
font-family: Arial, sans-serif;
|
| 14 |
+
background: #ffffff;
|
| 15 |
+
}
|
| 16 |
+
.chart-container {
|
| 17 |
+
width: 100%;
|
| 18 |
+
height: 100vh;
|
| 19 |
+
}
|
| 20 |
+
</style>
|
| 21 |
+
<script src="./g2.min.js"></script>
|
| 22 |
+
</head>
|
| 23 |
+
<body>
|
| 24 |
+
<div id="container" class="chart-container"></div>
|
| 25 |
+
<script>
|
| 26 |
+
(async () => {
|
| 27 |
+
const __seedStart = 3142039804;
|
| 28 |
+
let __seed = __seedStart;
|
| 29 |
+
const __originalMathRandom = Math.random;
|
| 30 |
+
function __seededRandom() {
|
| 31 |
+
__seed = (__seed * 1664525 + 1013904223) >>> 0;
|
| 32 |
+
return __seed / 4294967296;
|
| 33 |
+
}
|
| 34 |
+
Math.random = __seededRandom;
|
| 35 |
+
try {
|
| 36 |
+
const { Chart } = G2;
|
| 37 |
+
const raw = [
|
| 38 |
+
{
|
| 39 |
+
"Expt": 1,
|
| 40 |
+
"Run": 1,
|
| 41 |
+
"Speed": 850
|
| 42 |
+
},
|
| 43 |
+
{
|
| 44 |
+
"Expt": 1,
|
| 45 |
+
"Run": 2,
|
| 46 |
+
"Speed": 740
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"Expt": 1,
|
| 50 |
+
"Run": 3,
|
| 51 |
+
"Speed": 900
|
| 52 |
+
},
|
| 53 |
+
{
|
| 54 |
+
"Expt": 1,
|
| 55 |
+
"Run": 4,
|
| 56 |
+
"Speed": 1070
|
| 57 |
+
},
|
| 58 |
+
{
|
| 59 |
+
"Expt": 1,
|
| 60 |
+
"Run": 5,
|
| 61 |
+
"Speed": 930
|
| 62 |
+
},
|
| 63 |
+
{
|
| 64 |
+
"Expt": 1,
|
| 65 |
+
"Run": 6,
|
| 66 |
+
"Speed": 850
|
| 67 |
+
},
|
| 68 |
+
{
|
| 69 |
+
"Expt": 1,
|
| 70 |
+
"Run": 7,
|
| 71 |
+
"Speed": 950
|
| 72 |
+
},
|
| 73 |
+
{
|
| 74 |
+
"Expt": 1,
|
| 75 |
+
"Run": 8,
|
| 76 |
+
"Speed": 980
|
| 77 |
+
},
|
| 78 |
+
{
|
| 79 |
+
"Expt": 1,
|
| 80 |
+
"Run": 9,
|
| 81 |
+
"Speed": 980
|
| 82 |
+
},
|
| 83 |
+
{
|
| 84 |
+
"Expt": 1,
|
| 85 |
+
"Run": 10,
|
| 86 |
+
"Speed": 880
|
| 87 |
+
},
|
| 88 |
+
{
|
| 89 |
+
"Expt": 1,
|
| 90 |
+
"Run": 11,
|
| 91 |
+
"Speed": 1000
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"Expt": 1,
|
| 95 |
+
"Run": 12,
|
| 96 |
+
"Speed": 980
|
| 97 |
+
},
|
| 98 |
+
{
|
| 99 |
+
"Expt": 1,
|
| 100 |
+
"Run": 13,
|
| 101 |
+
"Speed": 930
|
| 102 |
+
},
|
| 103 |
+
{
|
| 104 |
+
"Expt": 1,
|
| 105 |
+
"Run": 14,
|
| 106 |
+
"Speed": 650
|
| 107 |
+
},
|
| 108 |
+
{
|
| 109 |
+
"Expt": 1,
|
| 110 |
+
"Run": 15,
|
| 111 |
+
"Speed": 760
|
| 112 |
+
},
|
| 113 |
+
{
|
| 114 |
+
"Expt": 1,
|
| 115 |
+
"Run": 16,
|
| 116 |
+
"Speed": 810
|
| 117 |
+
},
|
| 118 |
+
{
|
| 119 |
+
"Expt": 1,
|
| 120 |
+
"Run": 17,
|
| 121 |
+
"Speed": 1000
|
| 122 |
+
},
|
| 123 |
+
{
|
| 124 |
+
"Expt": 1,
|
| 125 |
+
"Run": 18,
|
| 126 |
+
"Speed": 1000
|
| 127 |
+
},
|
| 128 |
+
{
|
| 129 |
+
"Expt": 1,
|
| 130 |
+
"Run": 19,
|
| 131 |
+
"Speed": 960
|
| 132 |
+
},
|
| 133 |
+
{
|
| 134 |
+
"Expt": 1,
|
| 135 |
+
"Run": 20,
|
| 136 |
+
"Speed": 960
|
| 137 |
+
},
|
| 138 |
+
{
|
| 139 |
+
"Expt": 2,
|
| 140 |
+
"Run": 1,
|
| 141 |
+
"Speed": 960
|
| 142 |
+
},
|
| 143 |
+
{
|
| 144 |
+
"Expt": 2,
|
| 145 |
+
"Run": 2,
|
| 146 |
+
"Speed": 940
|
| 147 |
+
},
|
| 148 |
+
{
|
| 149 |
+
"Expt": 2,
|
| 150 |
+
"Run": 3,
|
| 151 |
+
"Speed": 960
|
| 152 |
+
},
|
| 153 |
+
{
|
| 154 |
+
"Expt": 2,
|
| 155 |
+
"Run": 4,
|
| 156 |
+
"Speed": 940
|
| 157 |
+
},
|
| 158 |
+
{
|
| 159 |
+
"Expt": 2,
|
| 160 |
+
"Run": 5,
|
| 161 |
+
"Speed": 880
|
| 162 |
+
},
|
| 163 |
+
{
|
| 164 |
+
"Expt": 2,
|
| 165 |
+
"Run": 6,
|
| 166 |
+
"Speed": 800
|
| 167 |
+
},
|
| 168 |
+
{
|
| 169 |
+
"Expt": 2,
|
| 170 |
+
"Run": 7,
|
| 171 |
+
"Speed": 850
|
| 172 |
+
},
|
| 173 |
+
{
|
| 174 |
+
"Expt": 2,
|
| 175 |
+
"Run": 8,
|
| 176 |
+
"Speed": 880
|
| 177 |
+
},
|
| 178 |
+
{
|
| 179 |
+
"Expt": 2,
|
| 180 |
+
"Run": 9,
|
| 181 |
+
"Speed": 900
|
| 182 |
+
},
|
| 183 |
+
{
|
| 184 |
+
"Expt": 2,
|
| 185 |
+
"Run": 10,
|
| 186 |
+
"Speed": 840
|
| 187 |
+
},
|
| 188 |
+
{
|
| 189 |
+
"Expt": 2,
|
| 190 |
+
"Run": 11,
|
| 191 |
+
"Speed": 830
|
| 192 |
+
},
|
| 193 |
+
{
|
| 194 |
+
"Expt": 2,
|
| 195 |
+
"Run": 12,
|
| 196 |
+
"Speed": 790
|
| 197 |
+
},
|
| 198 |
+
{
|
| 199 |
+
"Expt": 2,
|
| 200 |
+
"Run": 13,
|
| 201 |
+
"Speed": 810
|
| 202 |
+
},
|
| 203 |
+
{
|
| 204 |
+
"Expt": 2,
|
| 205 |
+
"Run": 14,
|
| 206 |
+
"Speed": 880
|
| 207 |
+
},
|
| 208 |
+
{
|
| 209 |
+
"Expt": 2,
|
| 210 |
+
"Run": 15,
|
| 211 |
+
"Speed": 880
|
| 212 |
+
},
|
| 213 |
+
{
|
| 214 |
+
"Expt": 2,
|
| 215 |
+
"Run": 16,
|
| 216 |
+
"Speed": 830
|
| 217 |
+
},
|
| 218 |
+
{
|
| 219 |
+
"Expt": 2,
|
| 220 |
+
"Run": 17,
|
| 221 |
+
"Speed": 800
|
| 222 |
+
},
|
| 223 |
+
{
|
| 224 |
+
"Expt": 2,
|
| 225 |
+
"Run": 18,
|
| 226 |
+
"Speed": 790
|
| 227 |
+
},
|
| 228 |
+
{
|
| 229 |
+
"Expt": 2,
|
| 230 |
+
"Run": 19,
|
| 231 |
+
"Speed": 760
|
| 232 |
+
},
|
| 233 |
+
{
|
| 234 |
+
"Expt": 2,
|
| 235 |
+
"Run": 20,
|
| 236 |
+
"Speed": 800
|
| 237 |
+
},
|
| 238 |
+
{
|
| 239 |
+
"Expt": 3,
|
| 240 |
+
"Run": 1,
|
| 241 |
+
"Speed": 880
|
| 242 |
+
},
|
| 243 |
+
{
|
| 244 |
+
"Expt": 3,
|
| 245 |
+
"Run": 2,
|
| 246 |
+
"Speed": 880
|
| 247 |
+
},
|
| 248 |
+
{
|
| 249 |
+
"Expt": 3,
|
| 250 |
+
"Run": 3,
|
| 251 |
+
"Speed": 880
|
| 252 |
+
},
|
| 253 |
+
{
|
| 254 |
+
"Expt": 3,
|
| 255 |
+
"Run": 4,
|
| 256 |
+
"Speed": 860
|
| 257 |
+
},
|
| 258 |
+
{
|
| 259 |
+
"Expt": 3,
|
| 260 |
+
"Run": 5,
|
| 261 |
+
"Speed": 720
|
| 262 |
+
},
|
| 263 |
+
{
|
| 264 |
+
"Expt": 3,
|
| 265 |
+
"Run": 6,
|
| 266 |
+
"Speed": 720
|
| 267 |
+
},
|
| 268 |
+
{
|
| 269 |
+
"Expt": 3,
|
| 270 |
+
"Run": 7,
|
| 271 |
+
"Speed": 620
|
| 272 |
+
},
|
| 273 |
+
{
|
| 274 |
+
"Expt": 3,
|
| 275 |
+
"Run": 8,
|
| 276 |
+
"Speed": 860
|
| 277 |
+
},
|
| 278 |
+
{
|
| 279 |
+
"Expt": 3,
|
| 280 |
+
"Run": 9,
|
| 281 |
+
"Speed": 970
|
| 282 |
+
},
|
| 283 |
+
{
|
| 284 |
+
"Expt": 3,
|
| 285 |
+
"Run": 10,
|
| 286 |
+
"Speed": 950
|
| 287 |
+
},
|
| 288 |
+
{
|
| 289 |
+
"Expt": 3,
|
| 290 |
+
"Run": 11,
|
| 291 |
+
"Speed": 880
|
| 292 |
+
},
|
| 293 |
+
{
|
| 294 |
+
"Expt": 3,
|
| 295 |
+
"Run": 12,
|
| 296 |
+
"Speed": 910
|
| 297 |
+
},
|
| 298 |
+
{
|
| 299 |
+
"Expt": 3,
|
| 300 |
+
"Run": 13,
|
| 301 |
+
"Speed": 850
|
| 302 |
+
},
|
| 303 |
+
{
|
| 304 |
+
"Expt": 3,
|
| 305 |
+
"Run": 14,
|
| 306 |
+
"Speed": 870
|
| 307 |
+
},
|
| 308 |
+
{
|
| 309 |
+
"Expt": 3,
|
| 310 |
+
"Run": 15,
|
| 311 |
+
"Speed": 840
|
| 312 |
+
},
|
| 313 |
+
{
|
| 314 |
+
"Expt": 3,
|
| 315 |
+
"Run": 16,
|
| 316 |
+
"Speed": 840
|
| 317 |
+
},
|
| 318 |
+
{
|
| 319 |
+
"Expt": 3,
|
| 320 |
+
"Run": 17,
|
| 321 |
+
"Speed": 850
|
| 322 |
+
},
|
| 323 |
+
{
|
| 324 |
+
"Expt": 3,
|
| 325 |
+
"Run": 18,
|
| 326 |
+
"Speed": 840
|
| 327 |
+
},
|
| 328 |
+
{
|
| 329 |
+
"Expt": 3,
|
| 330 |
+
"Run": 19,
|
| 331 |
+
"Speed": 840
|
| 332 |
+
},
|
| 333 |
+
{
|
| 334 |
+
"Expt": 3,
|
| 335 |
+
"Run": 20,
|
| 336 |
+
"Speed": 840
|
| 337 |
+
},
|
| 338 |
+
{
|
| 339 |
+
"Expt": 4,
|
| 340 |
+
"Run": 1,
|
| 341 |
+
"Speed": 890
|
| 342 |
+
},
|
| 343 |
+
{
|
| 344 |
+
"Expt": 4,
|
| 345 |
+
"Run": 2,
|
| 346 |
+
"Speed": 810
|
| 347 |
+
},
|
| 348 |
+
{
|
| 349 |
+
"Expt": 4,
|
| 350 |
+
"Run": 3,
|
| 351 |
+
"Speed": 810
|
| 352 |
+
},
|
| 353 |
+
{
|
| 354 |
+
"Expt": 4,
|
| 355 |
+
"Run": 4,
|
| 356 |
+
"Speed": 820
|
| 357 |
+
},
|
| 358 |
+
{
|
| 359 |
+
"Expt": 4,
|
| 360 |
+
"Run": 5,
|
| 361 |
+
"Speed": 800
|
| 362 |
+
},
|
| 363 |
+
{
|
| 364 |
+
"Expt": 4,
|
| 365 |
+
"Run": 6,
|
| 366 |
+
"Speed": 770
|
| 367 |
+
},
|
| 368 |
+
{
|
| 369 |
+
"Expt": 4,
|
| 370 |
+
"Run": 7,
|
| 371 |
+
"Speed": 760
|
| 372 |
+
},
|
| 373 |
+
{
|
| 374 |
+
"Expt": 4,
|
| 375 |
+
"Run": 8,
|
| 376 |
+
"Speed": 740
|
| 377 |
+
},
|
| 378 |
+
{
|
| 379 |
+
"Expt": 4,
|
| 380 |
+
"Run": 9,
|
| 381 |
+
"Speed": 750
|
| 382 |
+
},
|
| 383 |
+
{
|
| 384 |
+
"Expt": 4,
|
| 385 |
+
"Run": 10,
|
| 386 |
+
"Speed": 760
|
| 387 |
+
},
|
| 388 |
+
{
|
| 389 |
+
"Expt": 4,
|
| 390 |
+
"Run": 11,
|
| 391 |
+
"Speed": 910
|
| 392 |
+
},
|
| 393 |
+
{
|
| 394 |
+
"Expt": 4,
|
| 395 |
+
"Run": 12,
|
| 396 |
+
"Speed": 920
|
| 397 |
+
},
|
| 398 |
+
{
|
| 399 |
+
"Expt": 4,
|
| 400 |
+
"Run": 13,
|
| 401 |
+
"Speed": 890
|
| 402 |
+
},
|
| 403 |
+
{
|
| 404 |
+
"Expt": 4,
|
| 405 |
+
"Run": 14,
|
| 406 |
+
"Speed": 860
|
| 407 |
+
},
|
| 408 |
+
{
|
| 409 |
+
"Expt": 4,
|
| 410 |
+
"Run": 15,
|
| 411 |
+
"Speed": 880
|
| 412 |
+
},
|
| 413 |
+
{
|
| 414 |
+
"Expt": 4,
|
| 415 |
+
"Run": 16,
|
| 416 |
+
"Speed": 720
|
| 417 |
+
},
|
| 418 |
+
{
|
| 419 |
+
"Expt": 4,
|
| 420 |
+
"Run": 17,
|
| 421 |
+
"Speed": 840
|
| 422 |
+
},
|
| 423 |
+
{
|
| 424 |
+
"Expt": 4,
|
| 425 |
+
"Run": 18,
|
| 426 |
+
"Speed": 850
|
| 427 |
+
},
|
| 428 |
+
{
|
| 429 |
+
"Expt": 4,
|
| 430 |
+
"Run": 19,
|
| 431 |
+
"Speed": 850
|
| 432 |
+
},
|
| 433 |
+
{
|
| 434 |
+
"Expt": 4,
|
| 435 |
+
"Run": 20,
|
| 436 |
+
"Speed": 780
|
| 437 |
+
},
|
| 438 |
+
{
|
| 439 |
+
"Expt": 5,
|
| 440 |
+
"Run": 1,
|
| 441 |
+
"Speed": 890
|
| 442 |
+
},
|
| 443 |
+
{
|
| 444 |
+
"Expt": 5,
|
| 445 |
+
"Run": 2,
|
| 446 |
+
"Speed": 840
|
| 447 |
+
},
|
| 448 |
+
{
|
| 449 |
+
"Expt": 5,
|
| 450 |
+
"Run": 3,
|
| 451 |
+
"Speed": 780
|
| 452 |
+
},
|
| 453 |
+
{
|
| 454 |
+
"Expt": 5,
|
| 455 |
+
"Run": 4,
|
| 456 |
+
"Speed": 810
|
| 457 |
+
},
|
| 458 |
+
{
|
| 459 |
+
"Expt": 5,
|
| 460 |
+
"Run": 5,
|
| 461 |
+
"Speed": 760
|
| 462 |
+
},
|
| 463 |
+
{
|
| 464 |
+
"Expt": 5,
|
| 465 |
+
"Run": 6,
|
| 466 |
+
"Speed": 810
|
| 467 |
+
},
|
| 468 |
+
{
|
| 469 |
+
"Expt": 5,
|
| 470 |
+
"Run": 7,
|
| 471 |
+
"Speed": 790
|
| 472 |
+
},
|
| 473 |
+
{
|
| 474 |
+
"Expt": 5,
|
| 475 |
+
"Run": 8,
|
| 476 |
+
"Speed": 810
|
| 477 |
+
},
|
| 478 |
+
{
|
| 479 |
+
"Expt": 5,
|
| 480 |
+
"Run": 9,
|
| 481 |
+
"Speed": 820
|
| 482 |
+
},
|
| 483 |
+
{
|
| 484 |
+
"Expt": 5,
|
| 485 |
+
"Run": 10,
|
| 486 |
+
"Speed": 850
|
| 487 |
+
},
|
| 488 |
+
{
|
| 489 |
+
"Expt": 5,
|
| 490 |
+
"Run": 11,
|
| 491 |
+
"Speed": 870
|
| 492 |
+
},
|
| 493 |
+
{
|
| 494 |
+
"Expt": 5,
|
| 495 |
+
"Run": 12,
|
| 496 |
+
"Speed": 870
|
| 497 |
+
},
|
| 498 |
+
{
|
| 499 |
+
"Expt": 5,
|
| 500 |
+
"Run": 13,
|
| 501 |
+
"Speed": 810
|
| 502 |
+
},
|
| 503 |
+
{
|
| 504 |
+
"Expt": 5,
|
| 505 |
+
"Run": 14,
|
| 506 |
+
"Speed": 740
|
| 507 |
+
},
|
| 508 |
+
{
|
| 509 |
+
"Expt": 5,
|
| 510 |
+
"Run": 15,
|
| 511 |
+
"Speed": 810
|
| 512 |
+
},
|
| 513 |
+
{
|
| 514 |
+
"Expt": 5,
|
| 515 |
+
"Run": 16,
|
| 516 |
+
"Speed": 940
|
| 517 |
+
},
|
| 518 |
+
{
|
| 519 |
+
"Expt": 5,
|
| 520 |
+
"Run": 17,
|
| 521 |
+
"Speed": 950
|
| 522 |
+
},
|
| 523 |
+
{
|
| 524 |
+
"Expt": 5,
|
| 525 |
+
"Run": 18,
|
| 526 |
+
"Speed": 800
|
| 527 |
+
},
|
| 528 |
+
{
|
| 529 |
+
"Expt": 5,
|
| 530 |
+
"Run": 19,
|
| 531 |
+
"Speed": 810
|
| 532 |
+
},
|
| 533 |
+
{
|
| 534 |
+
"Expt": 5,
|
| 535 |
+
"Run": 20,
|
| 536 |
+
"Speed": 870
|
| 537 |
+
}
|
| 538 |
+
];
|
| 539 |
+
|
| 540 |
+
const chart = new Chart({
|
| 541 |
+
container: 'container',
|
| 542 |
+
autoFit: true,
|
| 543 |
+
});
|
| 544 |
+
const boxTooltipItems = [
|
| 545 |
+
{ name: 'min', channel: 'y' },
|
| 546 |
+
{ name: 'q1', channel: 'y1' },
|
| 547 |
+
{ name: 'q2', channel: 'y2' },
|
| 548 |
+
{ name: 'q3', channel: 'y3' },
|
| 549 |
+
{ name: 'max', channel: 'y4' },
|
| 550 |
+
];
|
| 551 |
+
|
| 552 |
+
|
| 553 |
+
function toFiniteNumber(value) {
|
| 554 |
+
const n = Number(value);
|
| 555 |
+
return Number.isFinite(n) ? n : null;
|
| 556 |
+
}
|
| 557 |
+
|
| 558 |
+
function quantile(sorted, p) {
|
| 559 |
+
if (!sorted.length) return null;
|
| 560 |
+
if (sorted.length === 1) return sorted[0];
|
| 561 |
+
const pos = (sorted.length - 1) * p;
|
| 562 |
+
const base = Math.floor(pos);
|
| 563 |
+
const rest = pos - base;
|
| 564 |
+
const next = sorted[Math.min(base + 1, sorted.length - 1)];
|
| 565 |
+
return sorted[base] + rest * (next - sorted[base]);
|
| 566 |
+
}
|
| 567 |
+
|
| 568 |
+
function fiveNumber(values) {
|
| 569 |
+
const sorted = values
|
| 570 |
+
.map(toFiniteNumber)
|
| 571 |
+
.filter((v) => v !== null)
|
| 572 |
+
.sort((a, b) => a - b);
|
| 573 |
+
if (!sorted.length) return null;
|
| 574 |
+
return [
|
| 575 |
+
sorted[0],
|
| 576 |
+
quantile(sorted, 0.25),
|
| 577 |
+
quantile(sorted, 0.5),
|
| 578 |
+
quantile(sorted, 0.75),
|
| 579 |
+
sorted[sorted.length - 1],
|
| 580 |
+
];
|
| 581 |
+
}
|
| 582 |
+
const groups = new Map();
|
| 583 |
+
|
| 584 |
+
for (const row of raw) {
|
| 585 |
+
const expt = row.Expt;
|
| 586 |
+
const speed = toFiniteNumber(row.Speed);
|
| 587 |
+
if (expt === undefined || expt === null || speed === null) continue;
|
| 588 |
+
const key = String(expt);
|
| 589 |
+
if (!groups.has(key)) groups.set(key, []);
|
| 590 |
+
groups.get(key).push(speed);
|
| 591 |
+
}
|
| 592 |
+
|
| 593 |
+
const order = Array.from(groups.keys()).sort((a, b) => Number(a) - Number(b));
|
| 594 |
+
const boxData = [];
|
| 595 |
+
const outlierData = [];
|
| 596 |
+
|
| 597 |
+
for (const expt of order) {
|
| 598 |
+
const speeds = groups.get(expt) || [];
|
| 599 |
+
const summary = fiveNumber(speeds);
|
| 600 |
+
if (!summary) continue;
|
| 601 |
+
boxData.push({ Expt: expt, Speed: summary });
|
| 602 |
+
|
| 603 |
+
const q1 = summary[1];
|
| 604 |
+
const q3 = summary[3];
|
| 605 |
+
const iqr = q3 - q1;
|
| 606 |
+
const lower = q1 - 1.5 * iqr;
|
| 607 |
+
const upper = q3 + 1.5 * iqr;
|
| 608 |
+
for (const speed of speeds) {
|
| 609 |
+
if (speed < lower || speed > upper) {
|
| 610 |
+
outlierData.push({ Expt: expt, Speed: speed });
|
| 611 |
+
}
|
| 612 |
+
}
|
| 613 |
+
}
|
| 614 |
+
|
| 615 |
+
chart
|
| 616 |
+
.box()
|
| 617 |
+
.data(boxData)
|
| 618 |
+
.encode('x', 'Expt')
|
| 619 |
+
.encode('y', 'Speed')
|
| 620 |
+
.style('stroke', '#222')
|
| 621 |
+
.tooltip({ items: boxTooltipItems });
|
| 622 |
+
|
| 623 |
+
if (outlierData.length) {
|
| 624 |
+
chart
|
| 625 |
+
.point()
|
| 626 |
+
.data(outlierData)
|
| 627 |
+
.encode('x', 'Expt')
|
| 628 |
+
.encode('y', 'Speed')
|
| 629 |
+
.style('fill', '#c0392b')
|
| 630 |
+
.style('stroke', '#111')
|
| 631 |
+
.style('r', 3)
|
| 632 |
+
.tooltip({
|
| 633 |
+
title: { channel: 'x' },
|
| 634 |
+
items: [{ name: 'outlier', channel: 'y' }],
|
| 635 |
+
});
|
| 636 |
+
}
|
| 637 |
+
|
| 638 |
+
await chart.render();
|
| 639 |
+
|
| 640 |
+
} catch (error) {
|
| 641 |
+
console.error(error);
|
| 642 |
+
const pre = document.createElement('pre');
|
| 643 |
+
pre.style.whiteSpace = 'pre-wrap';
|
| 644 |
+
pre.style.padding = '12px';
|
| 645 |
+
pre.style.margin = '12px';
|
| 646 |
+
pre.style.border = '1px solid #ddd';
|
| 647 |
+
pre.textContent = String(error && error.stack ? error.stack : error);
|
| 648 |
+
document.body.appendChild(pre);
|
| 649 |
+
} finally {
|
| 650 |
+
Math.random = __originalMathRandom;
|
| 651 |
+
}
|
| 652 |
+
})();
|
| 653 |
+
</script>
|
| 654 |
+
<!-- source: https://g2.antv.antgroup.com/examples/general/box/#boxplot-outlier -->
|
| 655 |
+
</body>
|
| 656 |
+
</html>
|
web/AntV G2/box/chart_0062_box.html
ADDED
|
@@ -0,0 +1,154 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!doctype html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="utf-8" />
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
| 6 |
+
<title>带异常点分组箱线图</title>
|
| 7 |
+
<style>
|
| 8 |
+
html, body {
|
| 9 |
+
margin: 0;
|
| 10 |
+
padding: 0;
|
| 11 |
+
width: 100%;
|
| 12 |
+
min-height: 100%;
|
| 13 |
+
font-family: Arial, sans-serif;
|
| 14 |
+
background: #ffffff;
|
| 15 |
+
}
|
| 16 |
+
.chart-container {
|
| 17 |
+
width: 100%;
|
| 18 |
+
height: 100vh;
|
| 19 |
+
}
|
| 20 |
+
</style>
|
| 21 |
+
<script src="./g2.min.js"></script>
|
| 22 |
+
</head>
|
| 23 |
+
<body>
|
| 24 |
+
<div id="container" class="chart-container"></div>
|
| 25 |
+
<script>
|
| 26 |
+
(async () => {
|
| 27 |
+
const __seedStart = 3142039804;
|
| 28 |
+
let __seed = __seedStart;
|
| 29 |
+
const __originalMathRandom = Math.random;
|
| 30 |
+
function __seededRandom() {
|
| 31 |
+
__seed = (__seed * 1664525 + 1013904223) >>> 0;
|
| 32 |
+
return __seed / 4294967296;
|
| 33 |
+
}
|
| 34 |
+
Math.random = __seededRandom;
|
| 35 |
+
try {
|
| 36 |
+
const { Chart } = G2;
|
| 37 |
+
const DATA_URI = "data:application/json;base64,W3sic3BlY2llcyI6IkFkZWxpZSIsImlzbGFuZCI6IlRvcmdlcnNlbiIsImN1bG1lbl9sZW5ndGhfbW0iOjM5LjEsImN1bG1lbl9kZXB0aF9tbSI6MTguNywiZmxpcHBlcl9sZW5ndGhfbW0iOjE4MSwiYm9keV9tYXNzX2ciOjM3NTAsInNleCI6Ik1BTEUifSx7InNwZWNpZXMiOiJBZGVsaWUiLCJpc2xhbmQiOiJUb3JnZXJzZW4iLCJjdWxtZW5fbGVuZ3RoX21tIjozOS41LCJjdWxtZW5fZGVwdGhfbW0iOjE3LjQsImZsaXBwZXJfbGVuZ3RoX21tIjoxODYsImJvZHlfbWFzc19nIjozODAwLCJzZXgiOiJGRU1BTEUifSx7InNwZWNpZXMiOiJBZGVsaWUiLCJpc2xhbmQiOiJUb3JnZXJzZW4iLCJjdWxtZW5fbGVuZ3RoX21tIjo0MC4zLCJjdWxtZW5fZGVwdGhfbW0iOjE4LCJmbGlwcGVyX2xlb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mlzY29lIiwiY3VsbWVuX2xlbmd0aF9tbSI6NDUuMiwiY3VsbWVuX2RlcHRoX21tIjoxNC44LCJmbGlwcGVyX2xlbmd0aF9tbSI6MjEyLCJib2R5X21hc3NfZyI6NTIwMCwic2V4IjoiRkVNQUxFIn0seyJzcGVjaWVzIjoiR2VudG9vIiwiaXNsYW5kIjoiQmlzY29lIiwiY3VsbWVuX2xlbmd0aF9tbSI6NDkuOSwiY3VsbWVuX2RlcHRoX21tIjoxNi4xLCJmbGlwcGVyX2xlbmd0aF9tbSI6MjEzLCJib2R5X21hc3NfZyI6NTQwMCwic2V4IjoiTUFMRSJ9XQ==";
|
| 38 |
+
|
| 39 |
+
const chart = new Chart({
|
| 40 |
+
container: 'container',
|
| 41 |
+
autoFit: true,
|
| 42 |
+
});
|
| 43 |
+
const boxTooltipItems = [
|
| 44 |
+
{ name: 'min', channel: 'y' },
|
| 45 |
+
{ name: 'q1', channel: 'y1' },
|
| 46 |
+
{ name: 'q2', channel: 'y2' },
|
| 47 |
+
{ name: 'q3', channel: 'y3' },
|
| 48 |
+
{ name: 'max', channel: 'y4' },
|
| 49 |
+
];
|
| 50 |
+
|
| 51 |
+
|
| 52 |
+
function toFiniteNumber(value) {
|
| 53 |
+
const n = Number(value);
|
| 54 |
+
return Number.isFinite(n) ? n : null;
|
| 55 |
+
}
|
| 56 |
+
|
| 57 |
+
function quantile(sorted, p) {
|
| 58 |
+
if (!sorted.length) return null;
|
| 59 |
+
if (sorted.length === 1) return sorted[0];
|
| 60 |
+
const pos = (sorted.length - 1) * p;
|
| 61 |
+
const base = Math.floor(pos);
|
| 62 |
+
const rest = pos - base;
|
| 63 |
+
const next = sorted[Math.min(base + 1, sorted.length - 1)];
|
| 64 |
+
return sorted[base] + rest * (next - sorted[base]);
|
| 65 |
+
}
|
| 66 |
+
|
| 67 |
+
function fiveNumber(values) {
|
| 68 |
+
const sorted = values
|
| 69 |
+
.map(toFiniteNumber)
|
| 70 |
+
.filter((v) => v !== null)
|
| 71 |
+
.sort((a, b) => a - b);
|
| 72 |
+
if (!sorted.length) return null;
|
| 73 |
+
return [
|
| 74 |
+
sorted[0],
|
| 75 |
+
quantile(sorted, 0.25),
|
| 76 |
+
quantile(sorted, 0.5),
|
| 77 |
+
quantile(sorted, 0.75),
|
| 78 |
+
sorted[sorted.length - 1],
|
| 79 |
+
];
|
| 80 |
+
}
|
| 81 |
+
|
| 82 |
+
|
| 83 |
+
const raw = await (await fetch(DATA_URI)).json();
|
| 84 |
+
const groups = new Map();
|
| 85 |
+
const speciesOrder = [];
|
| 86 |
+
const sexOrder = [];
|
| 87 |
+
const speciesSeen = new Set();
|
| 88 |
+
const sexSeen = new Set();
|
| 89 |
+
|
| 90 |
+
for (const row of raw) {
|
| 91 |
+
const species = row.species;
|
| 92 |
+
const sex = row.sex;
|
| 93 |
+
const value = toFiniteNumber(row.flipper_length_mm);
|
| 94 |
+
if (!species || !sex || value === null) continue;
|
| 95 |
+
|
| 96 |
+
if (!speciesSeen.has(species)) {
|
| 97 |
+
speciesSeen.add(species);
|
| 98 |
+
speciesOrder.push(species);
|
| 99 |
+
}
|
| 100 |
+
if (!sexSeen.has(sex)) {
|
| 101 |
+
sexSeen.add(sex);
|
| 102 |
+
sexOrder.push(sex);
|
| 103 |
+
}
|
| 104 |
+
|
| 105 |
+
const key = species + ' |