概述:交互式数据可视化在很大程度上取决于JavaScript库的任务能力。在这篇文章中,咱们将看看四个JavaScript库:D3,InfoVis,Processing.js,和Recline.js。全部这些JavaScript库能够用来装饰您的网页与动态数据可视化,但每一个采用不一样的方法来提供这种能力。全部四个均可以避免费使用和分发。css
HTML5中新的图形元素和JavaScript引起了交互式数据显示技术的复兴。现在的浏览器用户界面不只功能丰富、使人赏心悦目,并且还做为数据可视化的载体,用于显示柱状体、气泡图和丰富多彩的地图等。html
交互式数据可视化在很大程度上取决于JavaScript库的任务能力。在这篇文章中,咱们将看看四个JavaScript库:D3,InfoVis,Processing.js,和Recline.js。全部这些库能够用来装饰您的网页与动态数据可视化,但每一个采用不一样的方法来提供这种能力。全部四个均可以免费使用和分发。 程序员
D3 web
D3是一种奇妙的基于Javascript的数据可视化库,容许您将数据绑定到DOM,而后将数据驱动转换应用到Document中。你可使用它用一个数组建立基本的HMTL表格,或是利用它的流体过分和交互,用类似的数据建立惊人的SVG条形图。 数组
优势 浏览器
- 丰富的实例
- 使用标准的DOM对象,容易调试
- 可经过扩展来建立任意数据可视化
- 能够处理多种数据格式,包括 XML、CSV 和 JSON 等
缺点 架构
- D3 很是强大,所以与其余库相比,学习成本要多一些
- D3 与早期的 IE 版本不兼容
- 须要深刻了解JavaScript
InfoVis app
InfoVis是一个在Web上建立可交互式的数据图表的JavaScript 库。InfoVis有点相似Moo工具,它是一个模块化的对象指向型JavaScript架构,一般这些架构都是高级JavaScript程序员要借助的中介。因为它具备模块化的格式,所以用户可使用JavaScript InfoVis保持页面的简洁。它还包括一个动画效果功能,多种绘图类型和一个用于操做JSON数据的类。 ide
优势 模块化
缺点
Processing
Processing.js是一个基于Java图形系统的JavaScript 库。它不单单提供数据可视化,还能够实现程序图像、动画和互动的应用。
优势
- 可用于建立动画
- 很大程度上兼容Processing Java
- 轻量,易于了解掌握
缺点
Recline.js
Recline.js能够帮助你使用Javascript和html快速地建立基于数据的应用。Recline.js已经内置支持从、CSV files, Google Docs, ElasticSearch, CouchDB等来加载数据。并可以以表格,地图,时间线等方式来漂亮地展现数据。展现的方式能够很方便地按本身的须要进行扩展。
优势
缺点
font-family |
|
font-size |
|
font-style |
|
font-variant |
|
font-weight |
|
letter-spacing |
|
line-height |
|
text-decoration |
|
text-align |
|
text-indent |
|
text-transform |
|
white-space |
|
word-spacing |
|
color |
|
bg-attachment |
|
bg-color |
|
bg-image |
|
bg-position |
|
bg-repeat |
|
width |
|
height |
|
border-top |
|
border-right |
|
border-bottom |
|
border-left |
|
margin |
|
padding |
|
max-height |
|
min-height |
|
max-width |
|
min-width |
|
outline-color |
|
outline-style |
|
outline-width |
|
position |
|
top |
|
bottom |
|
right |
|
left |
|
float |
|
display |
|
clear |
|
z-index |
|
list-style-image |
|
list-style-type |
|
list-style-position |
|
vertical-align |
|
border-collapse |
|
border-spacing |
|
caption-side |
|
empty-cells |
|
table-layout |
|
text-shadow |
|
-webkit-box-shadow |
|
border-radius |
|
overflow |
|
cursor |
|
visibility |
|
font-family |
|
font-size |
|
font-style |
|
font-variant |
|
font-weight |
|
letter-spacing |
|
line-height |
|
text-decoration |
|
text-align |
|
text-indent |
|
text-transform |
|
white-space |
|
word-spacing |
|
color |
|
bg-attachment |
|
bg-color |
|
bg-image |
|
bg-position |
|
bg-repeat |
|
width |
|
height |
|
border-top |
|
border-right |
|
border-bottom |
|
border-left |
|
margin |
|
padding |
|
max-height |
|
min-height |
|
max-width |
|
min-width |
|
outline-color |
|
outline-style |
|
outline-width |
|
position |
|
top |
|
bottom |
|
right |
|
left |
|
float |
|
display |
|
clear |
|
z-index |
|
list-style-image |
|
list-style-type |
|
list-style-position |
|
vertical-align |
|
border-collapse |
|
border-spacing |
|
caption-side |
|
empty-cells |
|
table-layout |
|
text-shadow |
|
-webkit-box-shadow |
|
border-radius |
|
overflow |
|
cursor |
|
visibility |
|
font-family |
|
font-size |
|
font-style |
|
font-variant |
|
font-weight |
|
letter-spacing |
|
line-height |
|
text-decoration |
|
text-align |
|
text-indent |
|
text-transform |
|
white-space |
|
word-spacing |
|
color |
|
bg-attachment |
|
bg-color |
|
bg-image |
|
bg-position |
|
bg-repeat |
|
width |
|
height |
|
border-top |
|
border-right |
|
border-bottom |
|
border-left |
|
margin |
|
padding |
|
max-height |
|
min-height |
|
max-width |
|
min-width |
|
outline-color |
|
outline-style |
|
outline-width |
|
position |
|
top |
|
bottom |
|
right |
|
left |
|
float |
|
display |
|
clear |
|
z-index |
|
list-style-image |
|
list-style-type |
|
list-style-position |
|
vertical-align |
|
border-collapse |
|
border-spacing |
|
caption-side |
|
empty-cells |
|
table-layout |
|
text-shadow |
|
-webkit-box-shadow |
|
border-radius |
|
overflow |
|
cursor |
|
visibility |