Skip to content

Dot Plot 1

Info - How to setup Chart
import pandas as pd
from ipyvizzu import Chart, Data, Config, Style

df = pd.read_csv(
    "https://ipyvizzu.vizzuhq.com/0.17/assets/data/IMDB_data_data_1974_1990.csv",
    dtype={"Year": str, "Timeseries": str},
)
data = Data()
data.add_df(df)

chart = Chart()
chart.animate(data)
  • move the Dimension from Y-axis to the no-operation (Noop) channel
  • add a Measure to the Y-axis
  • set the Split parameter to True
chart.animate(
    Config(
        {
            "channels": {
                "x": "Year",
                "y": {"set": "Index", "range": {"max": "105%"}},
            },
            "geometry": "circle",
        }
    )
)

chart.animate(
    Config(
        {
            "channels": {
                "y": {"set": "IMDb Rating", "range": {"max": "105%"}},
                "noop": "Index",
            },
            "orientation": "vertical",
            "split": True,
        }
    )
)

chart.feature("tooltip", True)