Note: The data used in this example is available here. You can read more about the available types of data in the Adding data chapter.

In [1]:
import pandas as pd
from ipyvizzu import Chart, Data, Config, Style

data_frame = pd.read_csv(
    "../../data/chart_types_eu.csv", dtype={"Year": str, "Timeseries": str}
)
data = Data()
data.add_data_frame(data_frame)

chart = Chart()
chart.animate(data)

chart.animate(
    data.filter(
        """
  record.Country == 'Belgium'
  """
    ),
    Config.waterfall({"x": "Year", "y": "Value 5 (+/-)", "title": "Waterfall Chart"}),
    Style(
        {
            "plot": {
                "paddingLeft": "8em",
                "marker": {
                    "colorGradient": "#ff001b 0,#ff001b 0.5,#7e79e8 0.5,#7e79e8 1",
                    "label": {"position": "top"},
                },
                "yAxis": {"label": {"paddingRight": "0.8em"}},
                "xAxis": {"label": {"paddingTop": "0.8em"}},
            }
        }
    ),
)

Back to the Examples ----- Back to the Table of contents