![]()
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> <title>中国出生人口</title> <style> </style> </head> <body> <canvas id="myChart" width="400" height="200"></canvas> <script src="https://cdn.jsdelivr.net/npm/chart.js"></script> <script> var label1 = new Array(); for (y=1950; y<2026; y++) label1.push(y); var data1 = [14190000, 13490000, 16220000, 16370000, 22320000, 19650000, 19610000, 21380000, 18890000, 16350000, 14020000, 9490000, 24510000, 29340000, 27210000, 26790000, 25540000, 25430000, 27310000, 26900000, 27100000, 25510000, 25500000, 24470000, 22260000, 21020000, 18490000, 17830000, 17330000, 17150000, 17760000, 20640000, 22300000, 20520000, 20500000, 21960000, 23740000, 25080000, 24450000, 23960000, 23740000, 22500000, 21130000, 21200000, 20980000, 20520000, 20570000, 20280000, 19340000, 18270000, 17650000, 16960000, 16410000, 15940000, 15880000, 16120000, 15810000, 15910000, 16040000, 15870000, 15880000, 16000000, 16350000, 16400000, 16870000, 16550000, 17860000, 17230000, 15230000, 14650000, 12020000, 10620000, 9560000, 9020000, 9540000, 7920000]; const ctx = document.getElementById('myChart').getContext('2d'); const myChart = new Chart(ctx, { type: 'bar', data: { labels: label1, datasets: [{ label: '中国出生人口', data: data1, backgroundColor: [ 'rgba(255, 99, 132, 1)', 'rgba(54, 162, 235, 1)', 'rgba(255, 206, 86, 1)', 'rgba(75, 192, 192, 1)', 'rgba(153, 102, 255, 1)', 'rgba(255, 159, 64, 1)' ] }] } }); </script> </body> </html>