个人投资理财规划报告
```html
body {
fontfamily: Arial, sansserif;
margin: 20px;
}

h1 {
textalign: center;
}
.chartcontainer {
width: 80%;
margin: auto;
}
canvas {
maxwidth: 100%;
height: auto;
}
个人投资理财调查结果
document.addEventListener("DOMContentLoaded", function() {
var ctx = document.getElementById('investmentChart').getContext('2d');
var myChart = new Chart(ctx, {
type: 'bar',
{
labels: ['股票', '房地产', '基金', '债券', '储蓄', '其他'],
datasets: [{
label: '投资偏好',
[25, 20, 15, 10, 20, 10],
backgroundColor: [
'rgba(255, 99, 132, 0.5)',
'rgba(54, 162, 235, 0.5)',
'rgba(255, 206, 86, 0.5)',
'rgba(75, 192, 192, 0.5)',
'rgba(153, 102, 255, 0.5)',
'rgba(255, 159, 64, 0.5)'
],
borderColor: [
'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)'
],
borderWidth: 1
}]
},
options: {
scales: {
yAxes: [{
ticks: {
beginAtZero: true
}
}]
}
}
});
});