Questions marquées «plotly»

1
Afficher un graphique intrigant interactif (fichier .html) sur les pages GitHub
J'ai créé l'intrigue compliquée suivante comme ceci: import plotly labels = ['Oxygen', 'Hydrogen', 'Carbon_Dioxide', 'Nitrogen'] values = [4500, 2500, 1053, 500] trace = plotly.graph_objs.Pie(labels=labels, values=values) plotly.offline.plot([trace], filename='basic-pie-chart') Ensuite, j'ai créé le html en tant que tel: print(plotly.offline.plot([trace], include_plotlyjs=False, output_type='div')) L'exécution du code ci-dessus génère un fichier .html que je peux …
En utilisant notre site, vous reconnaissez avoir lu et compris notre politique liée aux cookies et notre politique de confidentialité.
Licensed under cc by-sa 3.0 with attribution required.