import plotly.graph_objects as go


def load_data():
    return [("A", 53), ("B", 46), ("C", 57)]


def value_table(data):
    return {"columns": ["Group", "Share (%)"], "rows": [list(row) for row in data]}


def make_before(data) -> go.Figure:
    fig = go.Figure(
        go.Scatter(x=[0], y=[0], mode="text", text=["A has 53%, B has 46% and C has 57%."])
    )
    fig.update_layout(template="simple_white", height=220, xaxis_visible=False, yaxis_visible=False)
    return fig


if __name__ == "__main__":
    print(make_before(load_data()).to_json())
