CITF-Malaysia / citf-public

Official data on Malaysia's National Covid-​19 Immunisation Programme (PICK). Powered by MySejahtera.
Other
497 stars 185 forks source link

Feature suggest: Percentage of fully vaccinated among deaths, cumulative and daily counts #124

Open must4fab opened 3 years ago

must4fab commented 3 years ago

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.

Stardaus commented 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.

alexandereric995 commented 3 years ago

Command on script's requirement : Pie Chart


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

  1. Values mapping

    • <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
  2. Extension decoration

    • <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/lib/Chart.js/2.7.2/Chart.min.js"></script>
  3. 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>
  4. 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

  1. Body section contain
    • <canvas id="pie-chart"></canvas>

End for body section.


Edit

  1. Editing Math's Values at refered Section

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

alexandereric995 commented 3 years ago

Tambahan pada Infografik

Menambah informasi berikut pada infografik paparan web https://covidnow.moh.gov.my

  1. Daerah
  2. Jawatan
  3. Organisasi
  4. Penerbangan
  5. Tujuan Lawatan
  6. Hotel pilihan

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?