2012-10-26 16:31:16 +08:00
2012-10-18 15:02:31 +08:00
2012-10-10 14:39:23 +08:00
2012-10-26 16:30:01 +08:00
2012-10-26 16:31:16 +08:00
2012-10-26 16:30:01 +08:00
2012-10-17 02:24:45 +08:00
2012-09-28 17:19:42 +08:00
2012-08-23 16:45:35 +08:00
2012-10-15 02:02:20 +08:00
2012-10-23 01:27:56 +08:00

DataV.js

DataV.js是一个JavaScript的数据可视化库致力于推动数据可视化在普通业务的落地应用。我们的目标是

凡有数据在处,皆能可视化

Examples

Quick start

此处以Pie图为例。

引入依赖

// 依赖
path/to/deps/compatible.js
path/to/deps/d3.min.js
path/to/deps/raphael.min.js
path/to/deps/eventproxy.js
path/to/deps/underscore-1.4.2.js
path/to/deps/jquery-1.7.1.min.js
// DataV
path/to/datav.js
// Pie
path/to/charts/pie.js

问题?依赖库也太多了吧?

准备数据

var source = [
  '北京', 50265
  '上海', 60555
  '广州', 38544
  '深圳', 27276
  '西安', 20506
  '昆明', 26916
  '武汉', 17636
  '拉萨', 977
  '哈尔滨', 10406
  '乌鲁木齐', 6695
];

渲染图表

// 初始化组件
var pie = new Pie("container", {width: 1000, tag: true});
// 添加数据源
pie.setSource(source);
// 渲染
pie.render();

结果

Pie图

Plan

Requirements:

Learn more?

Contributors

Thanks goes to the people who have contributed code to this library, see the GitHub Contributors page.

Below is the output from git-summary

 project  : datavjs
 repo age : 8 weeks
 active   : 34 days
 commits  : 116
 files    : 155
 authors  : 
    87  Jackson Tian            75.0%
    14  jdk137                  12.1%
     5  Theseue                 4.3%
     4  wxtheseue               3.4%
     2  unknown                 1.7%
     2  xie cong                1.7%
     2  xiecong                 1.7%

License

DataV.js is available under the MIT License.

Description
DataV
Readme 7.4 MiB
Languages
JavaScript 96.8%
HTML 2.8%
CSS 0.4%