承接 blueways/bw-covid-numbers 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

blueways/bw-covid-numbers

Composer 安装命令:

composer require blueways/bw-covid-numbers

包简介

TYPO3 extension for showing COVID-19 numbers

README 文档

README

This TYPO3 extensions displays data about COVID-19 (Coronavirus SARS-CoV-2) from the German RKI.

Example

Example chart

Example chart 2

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 content element

Configure 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

统计信息

  • 总下载量: 46
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2020-10-27

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固