def additional_projections_chart(alt, model, parameters) -> Chart:
    raw_df = model.raw_df
    dat = pd.DataFrame({'infected': raw_df.infected, 'recovered': raw_df.recovered})
    dat['day'] = dat.index
    as_date = parameters.as_date
    max_y_axis = parameters.max_y_axis
    if as_date:
        dat = add_date_column(dat)
        x_kwargs = {'shorthand': 'date:T', 'title': 'Date', 'axis': alt.Axis(format=DATE_FORMAT)}
    else:
        x_kwargs = {'shorthand': 'day', 'title': 'Days from today'}
    y_scale = alt.Scale()
    if (max_y_axis is not None):
        y_scale.domain = (0, max_y_axis)
    return alt.Chart(dat).transform_fold(fold=['infected', 'recovered']).mark_line().encode(x=alt.X(**x_kwargs), y=alt.Y('value:Q', title='Case Volume', scale=y_scale), tooltip=['key:N', 'value:Q'], color='key:N').interactive()
def additional_projections_chart(alt, model, parameters) -> Chart:
    raw_df = model.raw_df
    dat = pd.DataFrame({'infected': raw_df.infected, 'recovered': raw_df.recovered})
    dat['day'] = dat.index
    as_date = parameters.as_date
    max_y_axis = parameters.max_y_axis
    if as_date:
        dat = add_date_column(dat)
        x_kwargs = {'shorthand': 'date:T', 'title': 'Date', 'axis': alt.Axis(format=DATE_FORMAT)}
    else:
        x_kwargs = {'shorthand': 'day', 'title': 'Days from today'}
    y_scale = alt.Scale()
    if (max_y_axis is not None):
        y_scale.domain = (0, max_y_axis)
    return alt.Chart(dat).transform_fold(fold=['infected', 'recovered']).mark_line().encode(x=alt.X(**x_kwargs), y=alt.Y('value:Q', title='Case Volume', scale=y_scale), tooltip=['key:N', 'value:Q'], color='key:N').interactive()