Exemplo n.º 1
0
TOOLTIP = """
<div class="plot-tooltip">
tooltip
</div>
"""

COL_TPL = """
<%= get_icon(type.toLowerCase()) %> <%= type %>
"""

cur_ratio = 0  #global

data_provider = DataProvider()

countries = data_provider.get_countries_info()
countries_options = data_provider.get_countries_options()

p = stats_plot = figure(
    x_axis_type='datetime',
    plot_height=400,
    plot_width=400,
    tools=["save", "crosshair"],  #todo: add hover
    name="stats_plot",
    title="USA vs Italy (shifted)")
stats_plot.line(x="datetime",
                y="confirmed_1",
                width=0.9,
                source=data_provider.type_stats_ds,
                legend_label="USA")
stats_plot.line(x="datetime",
                y="confirmed_2",