python nvd3-用于d3.js的图表库
python-nvd3的Python项目详细描述
NVD3的巨蟒包装器NVD3的巨蟒-是时候看漂亮的图表了
==============================================================
:描述:Python-NVD3是NVD3图形库的包装器NVD3图形库
:NVD3:NVD3:NVD3 http://nvd3.org/
:D3:数据驱动文档http://d3js.org.org/
:维护者:areski:areski。上午p;oz
:贡献者:`贡献者列表<;https://github.com/areski/python-nvd3/graphs/contributors>;`
…_阿瑞斯基:https://github.com/areski/
…_奥兹:https://github.com/oz123/
…图片:https://api.travis-ci.org/areski/python-nvd3.png?branch=development
:目标:https://travis ci.org/areski/python-nvd3
…图片::https://covertalls.io/repos/areski/python-nvd3/badge.png?branch=development
:目标:https://coveralls.io/r/areski/python-nvd3?分支=开发图片::https://img.shields.io/pypi/v/python-nvd3.svg
:目标:https://pypi.python.org/pypi/python-nvd3/
:alt:最新版本
…图片::https://img.shields.io/pypi/dm/python-nvd3.svg
:目标:https://pypi.python.org/pypi/python-nvd3/
:alt:downloads
图片::https://img.shields.io/pypi/pyversions/python-nvd3.svg
:目标:https://pypi.python.org/pypi/python-nvd3/
:alt:支持的python版本
…图片::https://img.shields.io/pypi/l/python-nvd3.svg
:目标:https://pypi.python.org/pypi/python-nvd3/
:alt:license
图片::https://requires.io/github/areski/python-nvd3/requirements.svg?branch=development
:目标:https://requires.io/github/areski/python-nvd3/requirements/?branch=development
:alt:requirements status
为您呈现javascript!
这些图可以是Web应用程序的一部分:
…图片::https://raw.githubusercontent.com/areski/python-nvd3/develop/docs/showcase/multiple charts.png
安装python-nvd3,输入您的python shell并尝试此快速演示:
>>;>;从nvd3导入piechart
>;>;type='piechart'
>;>;chart=piechart(name=type,color\u category='category20c',height=450,width=450)
>;>;xdata=["orange","香蕉","梨","猕猴桃","苹果","草莓","菠萝"]
>;>>ydata=[3,4,0,1,5,7,3]
>;>>额外的{"工具提示":{"y_start":","y_end":"cal"}
>;>>图表。添加{系列(y=ydata,x=xdata,extra=extra_serie)
>;>图表.buildcontent()
>;>print chart.htmlcontent
这将输出以下HTML以呈现实时图表。html可以存储在html文件中,在web应用程序中使用,甚至可以通过ipython笔记本使用:
<;div id="piechart">;<;svg style="width:450px;height:450px;">;<;/svg>;<;/div>;
<;script>;
数据piechart=[{"值":[{"值":3,"标签":橙色"},
{"值":4,"标签":"香蕉"},
{"值":0,"标签":"梨"},
{"值":1,"标签":"猕猴桃"},
{"值":5,"标签":"苹果"},
{"值":7,"标签":"草莓"},
{"value":3,"label":"菠萝"},"key":"serie 1"};
nv.addgraph(function(){
var chart=nv.models.piechart();
chart.margin({top:30,right:60,bottom:20,left:60});
var datum=data_piechart[0].values;
chart。工具提示内容(函数(键,y,e,图形){
var x=string(键);
var y=string(y)+'cal';
tooltip str='<;center>;<;b>;'+x+'<;/b>;<;/center>;'+y;
返回工具提示_str;
};
chart.showLegend(true);
chart.showLabels(true);
chart.donut(false);
chart
.x(function(d){return d.label})
.y(function(d){return d.value});
chart.width(450);
chart.height(450);
d3.选择('piechart svg')
.基准(基准)
.转换().持续时间(500)
.attr('width',450)
.attr('height',450)
.调用(图表);
<;/脚本>;
文档
----
或者一些活生生的图表例子!
…_阅读文档:http://python-nvd3.read the docs.org
installation
----
$pip install python-nvd3
$pip install--upgrade python-nvd3
通过bower安装(它本身可以通过npm安装)。
有关详细信息,请参见http://bower.io/和https://npmjs.org。
要全局安装bower,请执行::
y在使用python-nvd3的地方,只需执行以下命令:
$bower install d3 3.3.8
$bower install nvd3 1.1.12-beta
还可以配置保存bower依赖项的目录,在项目根目录中添加一个`.bowerrc``文件。
----
nvd3也有django wrapper可用:
https://github.com/areski/django-nvd3
python-nvd3在ipython笔记本电脑上运行良好(多亏了@jdaviddheiser)
>请看python-nvd3的ipython笔记本电脑的示例目录。
<0.14.0.0.14.0-(2015-12-09)
----——————————————————————————————————————————————————————————————-
*添加对focusenable的支持
*删除lineplusbarwithfocuschart,因为这被lineplusbarchart替换为option focusenable():
-
*修复:piechart
<0.13.0(2014-08-08-04)0.13.0(2014-08-08-04)0.11.0(2013-10-09)0.11.0(2013-10-10-09)0.11.0(2013-10-10-09)0.11.0(2013-10-09)0(2013-10-09)0.11.0(2013-10-09)0.11
*color列表额外参数在piechart
卡尔xaxis.rotatelabels轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-25
*轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴
----
*删除$sign inline plusbarwithfocuschart
0.10.0(2013-10-02)
----
*支持new chart lineplusbarwithfocuschart
<0.9.0(2013-09-30)
----
*使用bower安装d3和nvd3
<0.8.0(2013-08-15)
----
*添加cmorgang(chris morgan)的nvd3chart.buildcontent()
*为piechar添加显示标签参数T by Rad(Ruslan Popov)
0.7.0(2013-07-09)
----
*概括Axis格式并添加NZJRS(John Stowers)隐藏图例的支持
*从Danmeakin修复7,X轴日期的错误str转换
0.6.0(2013-06-05)
--——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————x multichart,日期
>0.5.0(2013-05-28)
----
*在piechart上添加颜色列表选项
<0.4.1(2013-05-06)
----
*在x轴上删除强制排序的修复程序
<0.4.0(2013-04-28)
----
*add s支持python3
0.3.6(2013-04-24)
----
*为工具提示添加自定义日期格式变量
<0.3.4(2013-04-23)
----
*支持像素和高度百分比和width
*添加tag_script_js属性以禁用tag<;script>;
<0.3.3(2013-04-23)
----
*数据系列现在是javascript格式9)
----
*更改颜色方案的选项
*按系列设置特定颜色
>0.3(2013-04-19)
----
*添加工具提示支持
*API的混合增强
<0.2(2013-04-16)
----
*正确的项目发布包括对以下图表的支持:
linechart
multibarchart
piechart
stackedareachart
multibarhorizontalchart
lineplusbarchart
cumulativelinechart
discretebarchart
scatterchart
0.1(2013-04-08)
————————————————————————————————————————————————————————————————————
==============================================================
:描述:Python-NVD3是NVD3图形库的包装器NVD3图形库
:NVD3:NVD3:NVD3 http://nvd3.org/
:D3:数据驱动文档http://d3js.org.org/
:维护者:areski:areski。上午p;oz
:贡献者:`贡献者列表<;https://github.com/areski/python-nvd3/graphs/contributors>;`
…_阿瑞斯基:https://github.com/areski/
…_奥兹:https://github.com/oz123/
…图片:https://api.travis-ci.org/areski/python-nvd3.png?branch=development
:目标:https://travis ci.org/areski/python-nvd3
…图片::https://covertalls.io/repos/areski/python-nvd3/badge.png?branch=development
:目标:https://coveralls.io/r/areski/python-nvd3?分支=开发图片::https://img.shields.io/pypi/v/python-nvd3.svg
:目标:https://pypi.python.org/pypi/python-nvd3/
:alt:最新版本
…图片::https://img.shields.io/pypi/dm/python-nvd3.svg
:目标:https://pypi.python.org/pypi/python-nvd3/
:alt:downloads
图片::https://img.shields.io/pypi/pyversions/python-nvd3.svg
:目标:https://pypi.python.org/pypi/python-nvd3/
:alt:支持的python版本
…图片::https://img.shields.io/pypi/l/python-nvd3.svg
:目标:https://pypi.python.org/pypi/python-nvd3/
:alt:license
图片::https://requires.io/github/areski/python-nvd3/requirements.svg?branch=development
:目标:https://requires.io/github/areski/python-nvd3/requirements/?branch=development
:alt:requirements status
这些图可以是Web应用程序的一部分:
…图片::https://raw.githubusercontent.com/areski/python-nvd3/develop/docs/showcase/multiple charts.png
安装python-nvd3,输入您的python shell并尝试此快速演示:
>>;>;从nvd3导入piechart
>;>;type='piechart'
>;>;chart=piechart(name=type,color\u category='category20c',height=450,width=450)
>;>;xdata=["orange","香蕉","梨","猕猴桃","苹果","草莓","菠萝"]
>;>>ydata=[3,4,0,1,5,7,3]
>;>>额外的{"工具提示":{"y_start":","y_end":"cal"}
>;>>图表。添加{系列(y=ydata,x=xdata,extra=extra_serie)
>;>图表.buildcontent()
>;>print chart.htmlcontent
这将输出以下HTML以呈现实时图表。html可以存储在html文件中,在web应用程序中使用,甚至可以通过ipython笔记本使用:
<;div id="piechart">;<;svg style="width:450px;height:450px;">;<;/svg>;<;/div>;
<;script>;
数据piechart=[{"值":[{"值":3,"标签":橙色"},
{"值":4,"标签":"香蕉"},
{"值":0,"标签":"梨"},
{"值":1,"标签":"猕猴桃"},
{"值":5,"标签":"苹果"},
{"值":7,"标签":"草莓"},
{"value":3,"label":"菠萝"},"key":"serie 1"};
nv.addgraph(function(){
var chart=nv.models.piechart();
chart.margin({top:30,right:60,bottom:20,left:60});
var datum=data_piechart[0].values;
chart。工具提示内容(函数(键,y,e,图形){
var x=string(键);
var y=string(y)+'cal';
tooltip str='<;center>;<;b>;'+x+'<;/b>;<;/center>;'+y;
返回工具提示_str;
};
chart.showLegend(true);
chart.showLabels(true);
chart.donut(false);
chart
.x(function(d){return d.label})
.y(function(d){return d.value});
chart.width(450);
chart.height(450);
d3.选择('piechart svg')
.基准(基准)
.转换().持续时间(500)
.attr('width',450)
.attr('height',450)
.调用(图表);
<;/脚本>;
文档
----
或者一些活生生的图表例子!
…_阅读文档:http://python-nvd3.read the docs.org
installation
----
$pip install python-nvd3
$pip install--upgrade python-nvd3
通过bower安装(它本身可以通过npm安装)。
有关详细信息,请参见http://bower.io/和https://npmjs.org。
要全局安装bower,请执行::
y在使用python-nvd3的地方,只需执行以下命令:
$bower install d3 3.3.8
$bower install nvd3 1.1.12-beta
还可以配置保存bower依赖项的目录,在项目根目录中添加一个`.bowerrc``文件。
nvd3也有django wrapper可用:
https://github.com/areski/django-nvd3
>请看python-nvd3的ipython笔记本电脑的示例目录。
<0.14.0.0.14.0-(2015-12-09)
----——————————————————————————————————————————————————————————————-
*添加对focusenable的支持
*删除lineplusbarwithfocuschart,因为这被lineplusbarchart替换为option focusenable():
-
*修复:piechart
<0.13.0(2014-08-08-04)0.13.0(2014-08-08-04)0.11.0(2013-10-09)0.11.0(2013-10-10-09)0.11.0(2013-10-10-09)0.11.0(2013-10-09)0(2013-10-09)0.11.0(2013-10-09)0.11
*color列表额外参数在piechart
卡尔xaxis.rotatelabels轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-25
*轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴-轴
----
*删除$sign inline plusbarwithfocuschart
0.10.0(2013-10-02)
----
*支持new chart lineplusbarwithfocuschart
<0.9.0(2013-09-30)
----
*使用bower安装d3和nvd3
<0.8.0(2013-08-15)
----
*添加cmorgang(chris morgan)的nvd3chart.buildcontent()
*为piechar添加显示标签参数T by Rad(Ruslan Popov)
0.7.0(2013-07-09)
----
*概括Axis格式并添加NZJRS(John Stowers)隐藏图例的支持
*从Danmeakin修复7,X轴日期的错误str转换
0.6.0(2013-06-05)
--——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————x multichart,日期
>0.5.0(2013-05-28)
----
*在piechart上添加颜色列表选项
<0.4.1(2013-05-06)
----
*在x轴上删除强制排序的修复程序
<0.4.0(2013-04-28)
----
*add s支持python3
0.3.6(2013-04-24)
----
*为工具提示添加自定义日期格式变量
<0.3.4(2013-04-23)
----
*支持像素和高度百分比和width
*添加tag_script_js属性以禁用tag<;script>;
<0.3.3(2013-04-23)
----
*数据系列现在是javascript格式9)
----
*更改颜色方案的选项
*按系列设置特定颜色
>0.3(2013-04-19)
----
*添加工具提示支持
*API的混合增强
<0.2(2013-04-16)
----
*正确的项目发布包括对以下图表的支持:
multibarchart
piechart
stackedareachart
multibarhorizontalchart
lineplusbarchart
cumulativelinechart
discretebarchart
scatterchart
0.1(2013-04-08)
————————————————————————————————————————————————————————————————————