bccovideda.plot_line_by_date

Module Contents

Functions

plot_line_by_date(startDate, endDate, region='all')

Plots the line chart of regional Covid19 cases over the period specified by

bccovideda.plot_line_by_date.plot_line_by_date(startDate, endDate, region='all')[source]

Plots the line chart of regional Covid19 cases over the period specified by startDate and endDate (format: YYYY-MM-DD). The default argument value for region is “all”, showing the total number of Covid19 cases in BC.

Parameters
  • startDate (string) – the start date of the period (no earlier than ‘2020-01-29’)

  • endDate (string) – the end date of the period (no later than today)

  • region (list or str = 'all') – Default value is string ‘all’ - displaying all regions. Other available values: combination of list of strings from available regions - Fraser, Vancouver Coastal, Vancouver Island, Interior, Northern, Out of Canada

Returns

plot – An altair plot object displaying line chart

Return type

altair.Chart object

Examples

>>> plot_line_by_date("2021-01-01", "2021-12-31")
>>> plot_line_by_date("2021-01-01", "2021-12-31", region = ['Fraser'])