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(
    Config(
        {
            "channels": {
                "color": {"set": ["Joy factors"]},
                "label": {"set": ["Country_code"]},
                "size": {"set": ["Country_code", "Value 2 (+)"]},
            },
            "title": "Stacked Bubble Chart",
            "geometry": "circle",
        }
    )
)
In [2]:
chart.animate(
    Config(
        {
            "channels": {
                "x": {"set": ["Joy factors"]},
                "y": {"set": ["Country_code", "Value 2 (+)"]},
                "label": {"set": None},
                "size": {"set": None},
            },
            "title": "Column Chart",
            "geometry": "rectangle",
            "orientation": "vertical",
        }
    )
)
In [3]:
chart.animate(
    Config(
        {
            "channels": {
                "y": {"detach": ["Country_code"]},
                "label": {"set": ["Value 2 (+)"]},
            }
        }
    )
)

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