Open must4fab opened 3 years ago
Hi,
This repo mainly publish data on the current progress of the vaccination programs in Malaysia.
For datasets regarding Covid-19 cases and deaths, I suggest you to explore the dataset provided by MoH-Malaysia here.
However, you would need to do your own exploration on the datasets to get those specific informations. But instead, you can just get the information on the COVIDNOW website.
Hope it helps.
Hello,
Thank you for helping us know the progress of covid-19 in our country.
May I suggest to include Percentage of fully vaccinated among deaths, cumulative and daily counts? I could not find where I can get this figure.
Hi,
This repo mainly publish data on the current progress of the vaccination programs in Malaysia.
For datasets regarding Covid-19 cases and deaths, I suggest you to explore the dataset provided by MoH-Malaysia here.
However, you would need to do your own exploration on the datasets to get those specific informations. But instead, you can just get the information on the COVIDNOW website.
Hope it helps.
Code
Header Section
Values mapping
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
Extension decoration
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/lib/Chart.js/2.7.2/Chart.min.js"></script>
Supportive Extension
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/chartjs-plugin-datalabels@0.4.0/dist/chartjs-plugin-datalabels.min.js"></script>
Input Information
<script type="text/javascript"> window.onload=function(){ var data = [{ data: [50, 55, 60, 33], labels: ["Group A", "Group B", "Group C", "Group D"], backgroundColor: [ "#4b77a9", "#5f255f", "#d21243", "#B27200" ], borderColor: "#fff" }]; var options = { tooltips: { enabled: false }, plugins: { datalabels: { formatter: (value, ctx) => { let datasets = ctx.chart.data.datasets; if (datasets.indexOf(ctx.dataset) === datasets.length - 1) { let sum = datasets[0].data.reduce((a, b) => a + b, 0); let percentage = Math.round((value / sum) * 100) + '%'; return percentage; } else { return percentage; } }, color: '#fff', } } }; var ctx = document.getElementById("pie-chart").getContext('2d'); var myChart = new Chart(ctx, { type: 'pie', data: { datasets: data }, options: options }); } </script>
End for header section.
Body Section
<canvas id="pie-chart"></canvas>
End for body section.
Edit
data: [50, 55, 60, 33]
. May edit the architectured command's values above at input section at the header section, base to your calculation. May change the values as debugger before publish or republish the documents for public view. The categories were set as:
data: [50, 55, 60, 33], labels: ["Group A", "Group B", "Group C", "Group D"]
Understand the arrangement of data and labels are easy. Base the case above, it is understood as:
Group A = 50
Group B = 55
Group C = 60
Group D = 33
Menambah informasi berikut pada infografik paparan web https://covidnow.moh.gov.my
Bolehkah pihak tuan;puan menambah informasi tersebut pada paparan web anda? Sama nilai dengan rujukkan daripada rekod RSVP.
Maaf, satu lagi pertanyaan, adakah info paparan tersebut adalah daripada RSVP atau bahagian Rabbit?
Hello,
Thank you for helping us know the progress of covid-19 in our country.
May I suggest to include Percentage of fully vaccinated among deaths, cumulative and daily counts? I could not find where I can get this figure.