用Python在Jupyter创建美丽的凤凰图

domophoenix的Python项目详细描述


多莫凤凰城

使用python构建domo phoenix图表。

安装

本模块使用Python3。

$ python3 -m pip install domophoenix

用法

从Jupyter笔记本中,在单元格中输入以下内容:

data=[['Low','Corporate',8582.8875],['High','Home Office',14415.941],['Low','Consumer',1264.8215],['Medium','Small Business',21478.799],['Critical','Consumer',2621.97],['Not Specified','Consumer',2211.31],['Critical','Corporate',10087.1315],['Not Specified','Corporate',4407.138],['High','Consumer',11667.366],['High','Corporate',19503.323],['Low','Small Business',1735.3715],['Low','Home Office',10057.42],['Medium','Home Office',7691.02],['Critical','Small Business',4036.064],['Not Specified','Small Business',84.99],['High','Small Business',689.74],['Critical','Home Office',7416.828],['Not Specified','Home Office',1839.26],['Medium','Consumer',4280.034],['Medium','Corporate',7965.238]]columns=[{"type":'STRING',"name":'Order Priority',"mapping":'SERIES'},{"type":'STRING',"name":'Customer Segment',"mapping":'ITEM'},{"type":'DOUBLE',"name":'Sales',"mapping":'VALUE'}]fromdomophoeniximportDomoPhoenixPlotterplotter=DomoPhoenixPlotter()plotter.plot(data,columns,'badge_vert_bar')

当你运行图表时,你会看到你的图表被渲染了!

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java jgrapht SimpleDirectedWeightedGraph规范化权重   java安卓使用CFB   java如何从javaclass警告浏览器?可能吗?   javagson结构难点   java使用jbossclient的最佳方式是什么。Wildfly 10应用程序中的jar?   JAVA:socket重写以使用CipherInputStream和CipherOutputStream   java Android UI测试长时间点击并拖动   java如何在Android中重置AtomicInteger唯一Id?   多线程客户端/服务器应用程序上的java客户端断开连接   GAE Memcache中的java损坏值   java如何使用变量作为资源的路径?   爪哇?(三向)操作员