Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <canvas id="pie-chart" width="800" height="450"></canvas>
- <script src="https://cdn.jsdelivr.net/npm/chart.js@2.8.0"></script>
- <script type="text/javascript">
- new Chart(document.getElementById("pie-chart"), {
- type: 'pie',
- data: {
- labels: ["", "Курс Python", "Несданные работы"],
- datasets: [{
- label: "Population (millions)",
- backgroundColor: ["#fff", "#2E8B57", "#ff6347"],
- data: [25,65, 10]
- }]
- },
- options: {
- title: {
- display: true,
- text: 'Прогресс прохрждения вашего курса'
- }
- }
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement