Bubble Plot to Radial
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 consist of 2 steps (animates):
1st:
- remove two Measures from the axes
- move the Dimension from the no-operation (Noop) channel and the third Measure from the Size channel to the X-axis
- switch the Geometry from Circle to Rectangle
2nd:
- remove the Dimension from the X-axis
- add the remaining Measure to the Label channel
chart.animate(
Config(
{
"channels": {
"x": ["Joy factors", "Value 6 (+/-)"],
"y": "Value 5 (+/-)",
"color": "Joy factors",
"size": "Value 2 (+)",
"noop": "Country_code",
},
"geometry": "circle",
}
),
Style({"plot": {"marker": {"guides": {"color": "#ffffff00"}}}}),
)
chart.animate(
Config(
{
"channels": {
"x": ["Country_code", "Value 2 (+)"],
"y": {"set": "Joy factors", "range": {"min": "-30%"}},
"noop": None,
},
"geometry": "rectangle",
"orientation": "vertical",
"coordSystem": "polar",
}
)
)
chart.animate(
Config({"channels": {"x": "Value 2 (+)", "label": "Value 2 (+)"}})
)