In Vizzu you can set the geometric elements used to represent your data by the geometry property within the config object.
The first step is switching the geometry to area.
The second step is drawing a line chart.
The third step is 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.
The last step is switching the geometry to rectangle. Rectangle geometry is the default setting in Vizzu, used for most common charts like bar and column charts.
from ipyvizzu import Chart, Data, Config
data = Data()
data.add_dimension('Genres', [ 'Pop', 'Rock', 'Jazz', 'Metal'])
data.add_dimension('Types', [ 'Hard', 'Smooth', 'Experimental' ])
data.add_measure(
'Popularity',
[
[114, 96, 78, 52],
[56, 36, 174, 121],
[127, 83, 94, 58],
]
)
chart = Chart()
chart.animate(data)
chart.animate(Config({"channels": {"y": {"set": "Popularity"}, "x": {"set": "Genres"}}}))
chart.animate(Config({"geometry": "area"}))
chart.animate(Config({"geometry": "line"}))
chart.animate(Config({"geometry": "circle"}))
chart.animate(Config({"geometry": "rectangle"}))
chart.show()