Geometry
In ipyvizzu you can set the geometric elements used to represent your data by
the geometry property within the config object. This is where the library shines
- beautifully animating between the geometries!
Switching the geometry to area.
Info - How to setup Chart
import pandas as pd
from ipyvizzu import Chart, Data, Config
data_frame = pd.read_csv(
    "https://ipyvizzu.vizzuhq.com/0.15/assets/data/music_data.csv"
)
data = Data()
data.add_data_frame(data_frame)
chart = Chart()
chart.animate(data)
chart.animate(
    Config(
        {
            "channels": {
                "y": {"set": ["Popularity"]},
                "x": {"set": ["Genres"]},
            },
        }
    )
)
chart.animate(Config({"geometry": "area"}))
Drawing a line chart.
chart.animate(Config({"geometry": "line"}))
Switching the geometry to circle. This setting is the most useful when used together with the size channel, as shown in the next chapter of the tutorial.
chart.animate(Config({"geometry": "circle"}))
Rectangle geometry is the default setting in ipyvizzu, used for most common
charts like bar and column charts.
chart.animate(
    Config(
        {
            "geometry": "rectangle ",
        }
    )
)