Scatter Plot
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/chart_types_eu.csv",
dtype={"Year": str, "Timeseries": str},
)
data = Data()
data.add_df(df)
chart = Chart()
chart.animate(data)
This Vizzu animation has 4 simple steps (4 animates):
1st: replace the Measure on the X-axis to the Dimension whitch is on the Lightness channel
2nd: back
3rd: replace the Measure on the Y-axis to the Dimension whitch is on the Noop channel
4th: back
chart.animate(
Config(
{
"channels": {
"x": "Value 5 (+/-)",
"y": "Value 6 (+/-)",
"noop": "Joy factors",
"lightness": "Year",
},
"geometry": "circle",
}
)
)
chart.animate(
Config({"channels": {"x": "Year"}, "orientation": "horizontal"})
)
chart.animate(Config({"channels": {"x": "Value 5 (+/-)"}}))
chart.animate(
Config(
{
"channels": {"y": "Joy factors", "noop": None},
"orientation": "vertical",
}
)
)
chart.animate(
Config(
{"channels": {"y": "Value 6 (+/-)", "noop": "Joy factors"}}
)
)
chart.feature("tooltip", True)