Home > Net >  Plotting 1:8 attributes on altair
Plotting 1:8 attributes on altair

Time:11-09

How to plot graph for 1:8 attributes using altair? Here is the link to the dataset. I want to plot a mark_point() graph for various attributes like, fresh, frozen etc considering the region and channel as filters( interactive graph). x axis should have attributes and y axis will have the count.

The interaction is based on region and channel to show values of user buying from distributor.

Link to dataset: http://archive.ics.uci.edu/ml/machine-learning-databases/00292/Wholesale customers data.csv

I am not able to plot the 8 attributes on a single graph. I tried transforming the df into a dictionary and then using the same to plot the graph. but unsuccessful.

CodePudding user response:

I guess this is the limitation of altair. you cannot club all the attributes together. You will need matplotlib for doing so. Hope this helps. !!

  • Related