blueways / bw-covid-numbers
TYPO3 extension for showing COVID-19 numbers
Requires
- ext-json: *
- typo3/cms-core: ^7.0 || ^8.0 || ^9.0 || ^10.0 || ^11.0
Requires (Dev)
- bk2k/bootstrap-package: ^12.0
- helhum/typo3-console: ^7.0
- typo3/cms-adminpanel: ^11.5
- typo3/cms-backend: ^11.5
- typo3/cms-belog: ^11.5
- typo3/cms-beuser: ^11.5
- typo3/cms-core: ^11.5
- typo3/cms-dashboard: ^11.5
- typo3/cms-extbase: ^11.5
- typo3/cms-extensionmanager: ^11.5
- typo3/cms-felogin: ^11.5
- typo3/cms-filelist: ^11.5
- typo3/cms-fluid: ^11.5
- typo3/cms-fluid-styled-content: ^11.5
- typo3/cms-form: ^11.5
- typo3/cms-frontend: ^11.5
- typo3/cms-impexp: ^11.5
- typo3/cms-indexed-search: ^11.5
- typo3/cms-info: ^11.5
- typo3/cms-install: ^11.5
- typo3/cms-lowlevel: ^11.5
- typo3/cms-opendocs: ^11.5
- typo3/cms-recordlist: ^11.5
- typo3/cms-recycler: ^11.5
- typo3/cms-redirects: ^11.5
- typo3/cms-reports: ^11.5
- typo3/cms-rte-ckeditor: ^11.5
- typo3/cms-scheduler: ^11.5
- typo3/cms-seo: ^11.5
- typo3/cms-setup: ^11.5
- typo3/cms-tstemplate: ^11.5
- typo3/cms-viewpage: ^11.5
This package is auto-updated.
Last update: 2024-12-26 11:05:21 UTC
README
This TYPO3 extensions displays data about COVID-19 (Coronavirus SARS-CoV-2) from the German RKI.
Example
Features
Create your own graph with the data you like:
- Compare cities or states in one graph
- Display different corona virus numbers
- Number of infections
- Daily new infections
- Daily new infections (7-Days Ø)
- Incidence value: Number of infections (7-Days Σ/100.000)
- Display as line or bar graph
- Select color
- Refresh data with scheduler
Installation
- Get the extension
composer require blueways/bw-covid-numbers
- Include the TypoScript template
Usage
Add the new plugin "COVID-19 numbers" to any page and set up your desired output data in plugin settings.
Add a new scheduler task to clear the cache and get daily new numbers.
Style
You can customize the style of the bar and line chart by setting the dataset properties of chart.js via TypoScript:
plugin.tx_bwcovidnumbers_pi1.settings {
datasetOptions {
line {
pointRadius = 0
pointHoverRadius = 10
steppedLine = true
# For more options see: https://www.chartjs.org/docs/latest/charts/line.html#dataset-properties
}
bar {
borderWidth = 0
hoverBackgroundColor = rgba(0,0,0,0.5)
# For more options see: https://www.chartjs.org/docs/latest/charts/bar.html#dataset-properties
}
}
chartOptions {
aspectRatio = 2
# For more options see:
# https://www.chartjs.org/docs/latest/general/options.html
# https://www.chartjs.org/docs/latest/general/responsive.html
}
}
To change the onload of the charts, have look at the `
initChartJs.js`
. This file gets included via `
plugin.tx_bwcovidnumbers_pi1.settings.initChartJs`
.
Known issues
- The color picker in TYPO3 v7 does not properly save the selected color. You need to enter the value by hand.
ToDos
Possible improvements:
- Canvas output via fluid template
- better label generation
Contribute
Feel free to contribute! Bitbucket-Repository