kiranreddyrebel / project

# Final Year MCA Project on Data Science
https://www.linkedin.com/in/kiranreddyrebel
1 stars 0 forks source link

Enhancement : Why not make all of them interactive..? #1

Open thatgem opened 5 years ago

thatgem commented 5 years ago

For pie chart, wedges can be made clickable and return the label values. def make_picker(fig, wedges):

    def onclick(event):
        wedge = event.artist
        label = wedge.get_label()
        print ("\n\n",label)

# Make wedges selectable
    for wedge in wedges:
        wedge.set_picker(True)

    fig.canvas.mpl_connect('pick_event', onclick)
kiranreddyrebel commented 4 years ago

Sorry, for very lately replying to you. Ya, I could add interactive like hover over bars/pie chart which will show more info about it using D3. It is available in python package repo. It helps in graphs plots by generating a js which in turn can be used in our App.