Files
lubelog/Views/Vehicle/_CostMakeUpReport.cshtml
ivancheahhh 21fc8f2c95 chartjs
2024-01-03 19:36:13 -07:00

36 lines
1.0 KiB
Plaintext

<div class="row">
<canvas id="pie-chart"></canvas>
</div>
<script>
function renderChart() {
new Chart($("#pie-chart"), {
type: 'bar',
data: {
labels: ["North America", "Latin America", "Europe", "Asia", "Africa"],
datasets: [
{
label: "Number of developers (millions)",
backgroundColor: ["red", "blue", "yellow", "green", "pink"],
data: [7, 4, 6, 9, 3]
}
]
},
options: {
legend: { display: false },
title: {
display: true,
text: 'Number of Developers in Every Continent'
},
scales: {
yAxes: [{
ticks: {
beginAtZero: true
}
}]
}
}
});
}
</script>