def municipalities():
    return [
        html.H2(gettext(
            get_translation(en="Number of cases per municipality", fr="Nombre de cas par commune"))),
        html.P(gettext(
            get_translation(
                fr="""C'est le nombre de cas testés positifs rapportés par Sciensano. 
                  Le nombre de cas positifs réel peut être (beaucoup) plus important.
                  Notez que le nombre de tests quotidien augmente également. Voir notre page testing.
            """,
                en="""
            This is the number of positive test cases reported by Sciensano. 
            The number of actual positive cases can be (much) higher.
            Note that the number of daily tests is also increasing. See our testing page.
            """))),
        html.H3(get_translation(
            en="""Weekly number of positive case""",
            fr="""Nombre de cas positifs par semaine""",
        )),
        dcc.Graph(id='cases-overview-map-communes-p', figure=map_communes_cases_per_week(), config=dict(locale=str(get_locale()))),
        html.H3(get_translation(
            en="""Weekly number of positive case per 1000 inhabitants""",
            fr="""Nombre de cas positifs par semaine par 1000 habitants""",
        )),
        dcc.Graph(id='cases-overview-map-communes-p', figure=map_communes_per_1000inhabitant_per_week(),
                  config=dict(locale=str(get_locale()))),
        html.H3(get_translation(
            en="""Number of positive case per 1000 inhabitants""",
            fr="""Nombre de cas positifs par 1000 habitants""",
        )),
        dcc.Graph(id='cases-overview-map-communes-p', figure=map_communes_per_inhabitant(), config=dict(locale=str(get_locale()))),
        html.H3(get_translation(
            en="""Number of positive case""",
            fr="""Nombre de cas positifs""",
        )),
        html.H4(get_translation(
            en="Click on a municipality to see a plot of its cases over time",
            fr="Cliquez sur une commune pour voir l'histogramme des cas dans le temps",
        )),
        dbc.Row([
            dbc.Col(dcc.Graph(id='cases-overview-map-communes', figure=map_communes(),
                              config=dict(locale=str(get_locale()))))
        ]),
        dbc.Row([
            dbc.Col(dcc.Graph(id='cases-overview-histogram', figure=barplot_communes(),
                              style={"display": "none"}, config=dict(locale=str(get_locale()))))
        ]),
        display_source_providers(source_sciensano, source_map_communes, source_pop)
    ]
예제 #2
0
def municipalities():
    return [
        html.H2(gettext("Municipalities")),
        html.P(
            get_translation(
                en=
                """Number of positive cases per 1000 inhabitants since beginning of March 2020""",
                fr=
                """Nombre de cas positifs par 1000 habitants depuis le début du mois de Mars 2020""",
            )),
        html.Div([
            Gif.GifPlayer(
                gif='/assets/media/map_cases1000.gif',
                still='/assets/media/2020-03-01_per1000.png',
            )
        ]),
        html.H3(gettext("Where are the epidemic focuses?")),
        dcc.Graph(id='cases-overview-map-communes-p',
                  figure=map_communes_per_inhabitant(),
                  config=dict(locale=str(get_locale()))),
        html.H3(gettext("Cases per municipality")),
        html.H4(
            gettext(
                "Click on a municipality to see a plot of its cases over time")
        ),
        dbc.Row([
            dbc.Col(
                dcc.Graph(id='cases-overview-map-communes',
                          figure=map_communes(),
                          config=dict(locale=str(get_locale()))))
        ]),
        dbc.Row([
            dbc.Col(
                dcc.Graph(id='cases-overview-histogram',
                          figure=barplot_communes(),
                          style={"display": "none"},
                          config=dict(locale=str(get_locale()))))
        ]),
        display_source_providers(source_sciensano, source_map_communes,
                                 source_pop)
    ]
 def callback_barplot(clickData):
     if clickData is None:
         return barplot_communes()
     nis = clickData['points'][0]['customdata'][2]
     return barplot_communes(commune_nis=nis)
예제 #4
0
def municipalities():
    return [
        html.H2(
            gettext(
                get_translation(en="Number of cases per municipality",
                                fr="Nombre de cas par commune"))),
        html.P(
            gettext(
                get_translation(
                    fr=
                    """C'est le nombre de cas testés positifs rapportés par Sciensano. 
                  Le nombre de cas positifs réel peut être (beaucoup) plus important.
                  Notez que le nombre de tests quotidien varie également. Voir notre page testing.
            """,
                    en="""
            This is the number of positive test cases reported by Sciensano. 
            The number of actual positive cases can be (much) higher.
            Note that the number of daily tests varies also. See our testing page.
            """))),
        html.H3(
            gettext(
                get_translation(
                    en=
                    "Incidence: Number of cases/100K inhabitants over the past 14 days",
                    fr=
                    "Incidence: Nombre de cas/100K habitants sur les 14 derniers jours"
                ))),
        html.H4(
            get_translation(
                en="""click on a municipality to see the cases barplot""",
                fr=
                """cliquez sur une commune pour observer l'historique des cas""",
            )),
        dbc.Row([
            dbc.Col(display_graphic(id='map_cases_incidence_nis5',
                                    figure=map_cases_incidence_nis5(),
                                    config=dict(locale=str(get_locale()))),
                    className="col-12"),
        ]),
        dbc.Row([
            dbc.Col(
                display_graphic(id='cases-overview-histogram',
                                style={"display": "none"},
                                figure=barplot_communes(),
                                config=dict(locale=str(get_locale()))))
        ]),
        dbc.Row([
            dbc.Col(display_graphic(id='cases-province-map',
                                    figure=bubble_map_cases_incidence_nis5(),
                                    config=dict(locale=str(get_locale()))),
                    className="col-12"),
        ]),
        html.H3(
            get_translation(
                en="""Percentage of cases in the population since beginning""",
                fr="""Percentage de cas dans la population depuis le début""",
            )),
        dbc.Row([
            dbc.Col(
                display_graphic(id='map_bubble_communes_since_beginning',
                                figure=map_bubble_communes_since_beginning(),
                                config=dict(locale=str(get_locale()))))
        ]),
        dbc.Row([
            dbc.Col(
                display_graphic(id='map_communes_per_inhabitant',
                                figure=map_communes_per_inhabitant(),
                                config=dict(locale=str(get_locale())))),
        ]),
        display_source_providers(source_sciensano, source_map_communes,
                                 source_pop)
    ]