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.
import pandas as pd
from ipyvizzu import Chart, Data, Config, Style
data_frame = pd.read_csv(
"../../data/infinite_data.csv", dtype={"Year": str, "Timeseries": str}
)
data = Data()
data.add_data_frame(data_frame)
chart = Chart()
chart.animate(data)
chart.animate(
Config(
{
"channels": {
"x": {"set": ["Value 1", "Joy factors"]},
"color": {"set": ["Joy factors"]},
"label": {"set": ["Value 1"]},
},
"title": "Pie Chart",
"coordSystem": "polar",
}
),
Style(
{
"plot": {
"marker": {
"label": {"fontSize": 13, "orientation": "tangential", "angle": 4.7}
},
"xAxis": {
"title": {"color": "#ffffff00"},
"label": {"color": "#ffffff00"},
"ticks": {"color": "#ffffff00"},
"interlacing": {"color": "#ffffff00"},
},
"yAxis": {
"color": "#ffffff00",
"title": {"color": "#ffffff00"},
"label": {"color": "#ffffff00"},
"ticks": {"color": "#ffffff00"},
},
}
}
),
)
chart.animate(
Config(
{
"channels": {
"x": {"set": ["Value 1", "Joy factors", "Region", "Country code"]},
"label": {"set": None},
}
}
),
duration="500ms",
)
chart.animate(
Config(
{
"channels": {
"x": {"set": ["Value 1", "Joy factors", "Region", "Country code"]},
"y": {"set": ["Value 3"], "range": {"min": "-60%"}},
},
"title": "Coxcomb Chart",
}
),
Style({"plot": {"marker": {"borderWidth": 0, "borderOpacity": 1}}}),
)
Back to the Examples ----- Back to the Table of contents