{"id":1026,"date":"2014-08-23T23:53:55","date_gmt":"2014-08-23T15:53:55","guid":{"rendered":"http:\/\/www.storagelab.org.cn\/zhangdi\/?p=1026"},"modified":"2014-08-23T23:53:55","modified_gmt":"2014-08-23T15:53:55","slug":"d3%e5%8f%af%e8%a7%86%e5%8c%96%e5%ae%9e%e6%88%9800%ef%bc%9ad3%e7%9a%84%e4%bd%bf%e7%94%a8%e5%bf%83%e5%be%97%e5%92%8c%e5%ad%a6%e4%b9%a0%e8%b5%84%e6%96%99%e6%b1%87%e6%80%bb","status":"publish","type":"post","link":"https:\/\/www.divis.cn\/index.php\/2014\/08\/23\/d3%e5%8f%af%e8%a7%86%e5%8c%96%e5%ae%9e%e6%88%9800%ef%bc%9ad3%e7%9a%84%e4%bd%bf%e7%94%a8%e5%bf%83%e5%be%97%e5%92%8c%e5%ad%a6%e4%b9%a0%e8%b5%84%e6%96%99%e6%b1%87%e6%80%bb\/","title":{"rendered":"d3\u53ef\u89c6\u5316\u5b9e\u621800\uff1ad3\u7684\u4f7f\u7528\u5fc3\u5f97\u548c\u5b66\u4e60\u8d44\u6599\u6c47\u603b"},"content":{"rendered":"<p>\u6700\u8fd1\u4ee5\u6765\uff0c\u6211\u4f7f\u7528d3\u8fdb\u884c\u6211\u7684\u53ef\u89c6\u5316\u5de5\u5177\u7684\u5f00\u53d1\u5df2\u7ecf3\u4e2a\u6708\u4e86\uff0c\u540c\u65f6\u4e5f\u517c\u7528\u5176\u4ed6\u4e00\u4e9b\u56fe\u8868\u7c7b\u5e93\uff0c\u81ea\u6211\u611f\u89c9\u7a0d\u5fae\u6709\u70b9\u5fc3\u5f97\u3002\u4e4b\u524d\u6211\u4e5f\u5199\u8fc7\u76f8\u5173\u6587\u7ae0\uff0c<a href=\"http:\/\/www.storagelab.org.cn\/zhangdi\/2014\/02\/28\/%E6%88%91%E6%B6%89%E5%8F%8A%E7%9A%84%E6%95%B0%E6%8D%AE%E5%8F%AF%E8%A7%86%E5%8C%96%E7%9A%84%E5%AE%9E%E7%8E%B0%E6%8A%80%E6%9C%AF%E5%92%8C%E5%B7%A5%E5%85%B7\/\">\u6211\u6d89\u53ca\u7684\u6570\u636e\u53ef\u89c6\u5316\u7684\u5b9e\u73b0\u6280\u672f\u548c\u5de5\u5177<\/a>\uff0c\u4f46\u662f\u90a3\u7bc7\u6587\u7ae0\u5bf9\u4e8e\u9879\u76ee\u5f00\u53d1\u800c\u8a00\u592a\u6d45\u4e86\u3002\u4e8e\u662f\u60f3\u5199\u5173\u4e8ed3\u8fdb\u884c\u9879\u76ee\u5b9e\u6218\u7684\u7cfb\u5217\u6587\u7ae0\uff0c\u5c31\u50cf\u6211\u4e4b\u524d\u7684angularjs\u5b9e\u6218\u7cfb\u5217\u6587\u7ae0\u4e00\u6837\u628a\u6574\u4e2a\u5f00\u53d1\u8fc7\u7a0b\u4e2d\u9047\u5230\u7684\u5404\u79cd\u95ee\u9898\u53ca\u89e3\u51b3\u529e\u6cd5\u68b3\u7406\u6210\u7ae0\uff0c\u4ee5\u4e3a\u7559\u5b58\u3002\u4f5c\u4e3a\u5f00\u7bc7\uff0c\u6211\u8fd8\u662f\u60f3\u5148\u628a\u8fd9\u6bb5\u65f6\u95f4\u6765\u6211\u4e00\u76f4\u53c2\u8003\u7684\u8d44\u6599\u505a\u4e00\u4e2a\u6574\u7406\uff0c\u5e76\u8c08\u4e00\u4e9b\u5b8f\u89c2\u7684\u4f53\u4f1a\u3002<\/p>\n<h2>\u4e00.\u524d\u65b9\u6709\u5751\uff0c\u6ce8\u610f\uff01<\/h2>\n<p>\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014<\/p>\n<ol style=\"margin-bottom: 10px\">\n<li>\u9996\u5148\u8bf7\u6ce8\u610fd3\u7684\u5168\u79f0\u662f\u53eb\u505adata driven documents\uff0c\u76f4\u8bd1\u4e3a\u6570\u636e\u9a71\u52a8\u6587\u6863\uff0c\u662f\u6570\u636e\u9a71\u52a8\u7684SVG\u56fe\u5f62\u7f16\u8f91\u4e0e\u4ea4\u4e92\u5236\u4f5c\u7684\u57fa\u7840\u7c7b\u5e93\uff0c\u800c\u4e0d\u662f\u4ec0\u4e48XX\u56fe\u8868\u5e93\u3002\u6240\u4ee5\u53ea\u662f\u5bfb\u627e\u7b80\u6613\u56fe\u8868\u7c7b\u5e93\u76f4\u63a5\u62ff\u6765\u8fdb\u884c\u5feb\u901f\u9879\u76ee\u5f00\u53d1\u7684\u7ae5\u978b\uff0c\u53ef\u4ee5\u76f4\u63a5\u7ed5\u9053\u4e86\uff0cd3\u4e0d\u662f\u4f60\u7684\u83dc\uff0c\u4f60\u5e94\u8be5\u53bb\u4f7f\u7528<a href=\"http:\/\/tenxer.github.io\/xcharts\/examples\/\">xcharts<\/a>(\u57fa\u4e8ed3\u505a\u7684\u56fe\u8868\u7c7b\u5e93)\u3001echarts(\u767e\u5ea6\u7684\u5f00\u6e90\u7c7b\u5e93)\u3001<a href=\"http:\/\/www.rgraph.net\/\">RGraph<\/a>\u3001highcharts(\u6536\u8d39\u56fe\u8868\u5e93)\u7b49\u7b49\uff0c\u8fd9\u4e9b\u624d\u7b26\u5408\u4f60\u9ad8\u6548\u5236\u4f5c\u56fe\u8868\u7684\u9700\u8981\u3002\u800cd3\u5c31\u7559\u7ed9\u90a3\u4e9b\u9700\u8981\u9ad8\u5ea6\u5b9a\u5236\u5316\u7684\u4ea4\u4e92\u56fe\u5f62\u7684\u5236\u4f5c\u8005\u7528\u5427\u3002<\/li>\n<li>\u5176\u6b21\uff0cSVG\u5bf9IE\u4f4e\u7248\u672c\u4e0d\u517c\u5bb9\u3002\u8fd8\u60f3\u517c\u5bb9IE6\uff0c7\uff0c8\u7684\u7ae5\u978b\u4e5f\u53ef\u4ee5\u7ed5\u9053\u4e86\u3002\u6709\u7814\u7a76\u5982\u4f55\u517c\u5bb9\u7684\u529f\u592b\u4e0d\u5982\u591a\u82b1\u5728\u8ddf\u5ba2\u6237\u3001\u8001\u677f\u8c08\u5224\u4e0a\uff0c\u662f\u65f6\u5019\u53bb\u953b\u70bc\u4e00\u4e0b\u8c08\u5224\u80fd\u529b\u4e86\u3002<\/li>\n<li>\u7b2c\u4e09\uff0cd3\u7684\u5b66\u4e60\u66f2\u7ebf\u6bd4\u8f83\u9661\u5ced\uff0c\u8981\u4e86\u89e3\u7684\u4e1c\u897f\u6bd4\u8f83\u591a\u3002\u9996\u5148\u662fSVG\u7684\u57fa\u672c\u77e5\u8bc6\uff0c\u7136\u540e\u81f3\u5c11\u4f1a\u7528\u4e00\u79cdSVG\u7f16\u8f91\u5668\uff0c\u6bd4\u5982Adobe Illustrator\u7b49\u7b49\u3002\u4e4b\u540e\uff0c\u9700\u8981\u5bf9javascript\u6709\u6bd4\u8f83\u6df1\u523b\u7684\u4e86\u89e3\uff0c\u5bf9\u4e8e\u4ec0\u4e48\u662f\u6570\u636e\u9a71\u52a8\u6709\u81ea\u5df1\u7684\u4f53\u4f1a\u66f4\u597d\u3002\u6240\u4ee5\uff0c\u5bf9\u4e8e\u8fdePS\u4e0d\u613f\u610f\u5b66\u7684\u7eaf\u7a0b\u5e8f\u5458\u548c\u586b\u9e2d\u901f\u6210\u7684\u524d\u7aef\u5de5\u7a0b\u5e08\u800c\u8a00\uff0c\u5982\u679c\u6ca1\u6709\u5de8\u5927\u5229\u76ca\u9a71\u52a8\uff0c\u90a3\u4e48\u8fd8\u662f\u4e0d\u505a\u4e3a\u597d\u3002<\/li>\n<\/ol>\n<h2>\u4e8c.\u4e3a\u4ec0\u4e48\u4f7f\u7528d3?<\/h2>\n<p>\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014<\/p>\n<p>\u5728\u6570\u636e\u53ef\u89c6\u5316\u84ec\u52c3\u53d1\u5c55\u7684\u65b0\u65f6\u4ee3\uff0c\u4eba\u4eec\u5df2\u4e0d\u80fd\u6ee1\u8db3\u4e8e\u9759\u6001\u56fe\u7247\u62a5\u8868\u6216\u8005office excel\u751f\u6210\u7684\u9759\u6001\u62a5\u8868\uff0c\u800c\u662f\u9700\u8981\u5305\u542b\u5404\u79cd\u4ea4\u4e92\u529f\u80fd\u7684\u5b9e\u65f6\u6570\u636e\u5c55\u73b0\u5de5\u5177\u3002\u8fd9\u5c31\u51b3\u5b9a\u4e86\uff0c\u5728web\u5f00\u53d1\u9886\u57df\uff0c\u90a3\u79cdIE6\uff0c7\uff0c8\u65f6\u4ee3\u6b8b\u7559\u7684hacker\u65b9\u6cd5\uff0c\u8bf8\u5982\u56fe\u7247\u66ff\u4ee3\u548c\u4f4e\u6548\u7684VML\u65b9\u6848\uff0c\u90fd\u5df2\u7ecf\u8fc7\u65f6\u3002\u5fc5\u987b\u8981\u4f7f\u7528\u8bf8\u5982svg, html5 canvas, webGL\u8fd9\u6837\u7684\u6280\u672f\u624d\u80fd\u5b9e\u65f6\u6570\u636e\u5c55\u73b0\u7684\u8981\u6c42\u3002\u7531\u4e8e\u5b58\u5728\u7740\u5b9e\u65f6\u4ea4\u4e92\u7684\u6570\u636e\u53ef\u89c6\u5316\u529f\u80fd\u7684\u9700\u6c42\uff0c\u6545\u800c\u4f7f\u7528\u8fd9\u4e9b\u65b0\u6280\u672f\u4e5f\u662f\u63a8\u8fdb\u4f7f\u7528\u73b0\u4ee3\u6d4f\u89c8\u5668\uff0c\u6452\u5f03\u8fc7\u65f6\u7684IE\u6d4f\u89c8\u5668\u7684\u597d\u673a\u4f1a\u3002<\/p>\n<p>\u5728\u8fd9\u4e9b\u65b0\u6280\u672f\u4e2d\uff0cwebGL\u8fd8\u4e0d\u662f\u5f88\u6210\u719f\u3002html5 canvas\u548cSVG\u5219\u5404\u6709\u5343\u79cb\uff0c\u524d\u8005\u517c\u5bb9\u6027\u66f4\u5f3a\uff0c\u540e\u8005\u5f00\u53d1\u6210\u672c\u66f4\u4f4e\u3002SVG\u672c\u8eab\u662f\u901a\u7528\u56fe\u5f62\u6570\u636e\u683c\u5f0f\uff0c\u4ec0\u4e48\u653e\u5927\u7f29\u5c0f\u4f4d\u79fb\u586b\u5145\u52a8\u753b\u4e4b\u7c7b\uff0c\u5168SVG\u5c5e\u6027\u5c31\u80fd\u641e\u5b9a\uff0c\u5e76\u4e14SVG\u62e5\u6709\u5f88\u591a\u8bbe\u8ba1\u5de5\u5177\uff0c\u4ee4\u8fd9\u4e00\u901a\u7528\u683c\u5f0f\u5728\u8bbe\u8ba1\u4e0a\u4e5f\u66f4\u4e3a\u5bb9\u6613\u3002CSS3\u6807\u51c6\u7684\u5236\u5b9a\u53c2\u8003\u4e86\u5f88\u591aSVG\u7684\u5185\u5bb9\uff0c\u4ee5\u81f3\u4e8e\u5728\u73b0\u4ee3\u6d4f\u89c8\u5668\u4e2d\uff0cCSS3\u4e0eSVG\u5b8c\u7f8e\u4e92\u8865\u3002\u4ee5\u4e0a\u7279\u6027\u51b3\u5b9a\u4e86SVG\u5f88\u9002\u5408\u8fdb\u884c\u5b9a\u5236\u5316\u7684\u53ef\u89c6\u5316\u5de5\u5177\u5f00\u53d1\u3002<\/p>\n<p>\u5728SVG\u76f8\u5173\u7684javascript\u7c7b\u5e93\u4e2d\uff0cd3\u662f\u5176\u7fd8\u695a\u3002\u5148\u4e0d\u8bf4\u5b83\u7684demo\u5982\u4f55\u5982\u4f55\u7eda\u4e3d\uff0cgithub\u4e0afork\u7684\u4eba\u5982\u4f55\u5982\u4f55\u591a\uff0c\u4f5c\u4e3a\u7f8e\u56fd\u534e\u76db\u987f\u5927\u5b66\u5f00\u53d1\u7684\u53ef\u89c6\u5316\u5de5\u5177\u9879\u76ee\uff0c\u7edd\u5bf9\u6709\u80fd\u529b\u5f00\u53d1\u8bf8\u591a\u5e94\u7528\u3002d3\u4e3b\u63a8\u7684\u6570\u636e\u9a71\u52a8\u673a\u5236\uff0c\u5176\u5b9e\u4e0ejava\u793e\u533a\u4e2d\u7684\u5bf9\u8f6f\u4ef6\u5f00\u53d1\u5206\u5c42\u7406\u89e3\u4e00\u81f4\uff0c\u5bf9\u4e8e\u524d\u7aef\u7a0b\u5e8f\u5458\uff0c\u5982\u679c\u4f7f\u7528\u8fc7angularjs\u3001emberjs\u00a0\u4e4b\u7c7b\u7684\u6846\u67b6\uff0c\u4e86\u89e3\u6570\u636e-\u89c6\u56fe\u53cc\u5411\u7ed1\u5b9a\u7684\u673a\u5236\uff0c\u90a3\u4e48\u7406\u89e3\u8d77d3\u7684\u6570\u636e\u9a71\u52a8\u4e5f\u5f88\u5bb9\u6613\u3002\u9664\u6b64\u4e4b\u5916\uff0cD3\u5e2e\u52a9\u4f60\u5c4f\u853d\u4e86\u6d4f\u89c8\u5668\u5dee\u5f02\uff0c\u505a\u51fa\u6765\u56fe\u6848\u7684\u6548\u679c\u5341\u5206\u7eda\u4e3d\uff0c\u53ef\u662f\u4ee3\u7801\u5374\u5f88\u7b80\u6d01\uff0c\u5e76\u4e14\u5728\u4ee3\u7801\u98ce\u683c\u4e0a\u8fd1\u4f3c\u4e8ejquery\u7684\u94fe\u5f0f\u98ce\u683c\uff0c\u5f88\u5bb9\u6613\u7406\u89e3\u3002\u5982\u679c\u786e\u8ba4\u81ea\u5df1\u7684\u76ee\u6807\u662f\u8981\u5236\u4f5c\u9ad8\u5ea6\u5b9a\u5236\u5316\u7684\u53ef\u89c6\u5316\u5de5\u5177\uff0c\u90a3\u4e48d3\u7edd\u5bf9\u662f\u4e2a\u597d\u5de5\u5177\u3002<\/p>\n<p>d3\u7684\u6210\u529f\u6848\u4f8b\u592a\u591a\uff0c<a href=\"http:\/\/techslides.com\/over-2000-d3-js-examples-and-demos\/\">\u8fd9\u91cc<\/a>\u6709\u4e24\u5343\u591a\u4e2a\u5148\u62ff\u53bb\u770b\u5427\u3002<\/p>\n<h2>\u4e09.d3\u6eaf\u6e90<\/h2>\n<p>\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014<\/p>\n<p>\u53ef\u80fd\u662f\u559c\u6b22\u770b\u5386\u53f2\u4e66\u7684\u7f18\u6545\uff0c\u5bf9\u4e8e\u8ba1\u7b97\u673a\u5404\u79cd\u7a0b\u5e8f\u7684\u5386\u53f2\uff0c\u6211\u90fd\u5f88\u611f\u5174\u8da3\u5e76\u7740\u610f\u6316\u6398\uff0c\u56e0\u4e3a\u4e00\u5207\u6280\u672f\u90fd\u4e0d\u662f\u6a2a\u7a7a\u51fa\u4e16\u7684\uff0c\u90fd\u662f\u6709\u7740\u524d\u671f\u7684\u5404\u79cd\u79ef\u7d2f\uff0c\u5e94\u8fd0\u65f6\u4ee3\u5927\u6f6e\u800c\u751f\u3002\u6700\u65e9\u7684\u6d4f\u89c8\u5668netscape\u8bde\u751f\u4e8e1994\u5e74\uff0c\u90a3\u65f6\u5019\u7684\u7f51\u9875\u4e0a\u53ea\u6709\u4e00\u79cd\u4ea4\u4e92\u64cd\u4f5c\u2014\u2014\u70b9\u51fb\u8d85\u94fe\u63a5\u7136\u540e\u8df3\u8f6c\u8fc7\u53bb\u3002\u7136\u800c\u968f\u7740\u4eba\u4eec\u7684\u9700\u6c42\u8d8a\u6765\u8d8a\u9ad8\uff0c\u7f51\u9875\u4e0e\u8d8a\u6765\u8d8a\u591a\u7684\u6280\u672f\u76f8\u7ec4\u5408\uff0c\u5982javascript, css, flash, svg\u7b49\u7b49\uff0c\u5b83\u4eec\u5e26\u6765\u4e86\u8d8a\u6765\u8d8a\u4e30\u5bcc\u7684\u7528\u6237\u4ea4\u4e92\u3002\u65e9\u5728\u4e0a\u4e16\u7eaa\u672b\uff0c\u4eba\u4eec\u4fbf\u5e0c\u671b\u5728\u7f51\u9875\u4e0a\u56fe\u5f62\u5316\u5730\u8868\u73b0\u6570\u636e\u3002D3js\u4e4b\u524d\u5df2\u7ecf\u6709\u4e00\u7cfb\u5217\u7740\u773c\u4e8e\u56fe\u5f62\u6e32\u67d3\u7684web\u6280\u672f\uff0c\u4f8b\u5982\u4f9d\u6258java\u5f00\u53d1\u7684processing(2011)\uff0c\u00a0<a title=\"Prefuse\" href=\"http:\/\/en.wikipedia.org\/wiki\/Prefuse\">Prefuse<\/a>(2005)\uff0c\u4f9d\u6258flash\u5f00\u53d1\u7684flare\uff082007\uff09\uff0c\u4ee5\u53ca\u4f9d\u6258javascript\u5f00\u53d1\u7684<a title=\"Protovis\" href=\"http:\/\/en.wikipedia.org\/wiki\/Protovis\">Protovis<\/a>\uff082009\uff09\u30022011\u5e74\uff0c\u65af\u5766\u798f\u5927\u5b66\u7684Jeff Heer\u6559\u6388\uff0c\u535a\u58eb\u751fMike Bostock\uff0c\u7855\u58eb\u751fVadim Ogievetsky\u5728\u4ed6\u4eec\u5f00\u53d1\u7684SVG\u56fe\u5f62\u6e32\u67d3\u7c7b\u5e93Protovis\u7684\u57fa\u7840\u4e0a\uff0c\u5f00\u53d1\u4e86\u5f00\u6e90\u65b0\u9879\u76eeD3js,\u5230\u73b0\u5728\u5df2\u7ecf\u662f3.1.4\u7248\u672c\u4e86\u3002<\/p>\n<h2>\u56db.d3\u7684\u5b9a\u4f4d<\/h2>\n<p>\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014<\/p>\n<table style=\"width: 100%\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody style=\"background-color: #c8dcff\">\n<tr>\n<td style=\"padding: 10px 20px\">Processing.js<br \/>\nRapha\u00ebl<\/td>\n<td style=\"width: 300px;text-align: center;background: #A6BFFF\">d3.js<\/td>\n<td style=\"padding: 10px 20px;text-align: right\">Google Charts<br \/>\nHighcharts<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u8fd9\u91cc\u6709\u5fc5\u8981\u8865\u5145\u4e00\u4e0bd3\u8fd9\u4e2a\u7c7b\u5e93\u7684\u5b9a\u4f4d\u3002\u5728\u56fe\u5f62\u5904\u7406\u65b9\u9762\u7684javascript\u7c7b\u5e93\u4e2d\uff0cd3\u65e2\u4e0d\u4e0d\u50cfprocessing.js\u548craphael.js\u90a3\u6837\u7279\u522b\u5173\u6ce8\u5e95\u5c42\u56fe\u5f62\u6e32\u67d3\uff0c\u4e5f\u4e0d\u50cfgoogle charts\u548chighcharts\u90a3\u6837\u4e3b\u8981\u662f\u63d0\u4f9b\u5b9a\u5236\u5316\u7684\u56fe\u8868\u63a5\u53e3\uff0c\u800c\u662f\u5904\u4e8e\u4e2d\u95f4\u5c42\u7684\u4f4d\u7f6e\uff1a\u5c06dom\u64cd\u4f5c\u65b9\u6cd5\u5c01\u88c5\uff0c\u7ed3\u5408\u4e00\u5957\u6570\u636e\u96c6\u5408\u64cd\u4f5c\u96c6\uff0c\u5982\u6b64\u63d0\u4f9b\u57fa\u4e8e\u6570\u636e\u9a71\u52a8\u5b9e\u73b0\u56fe\u8868\u7684\u65b9\u6cd5\u3002\u67e5\u770b\u5230d3 API\uff0c\u6211\u4eec\u53ef\u4ee5\u770b\u5230\u5176\u4e2d\u63d0\u4f9b\u7684\u65b9\u6cd5\u5927\u90e8\u5206\u662f\u6570\u636e\u96c6\u5408\u64cd\u4f5c\u548chtml or svg dom\u64cd\u4f5c\uff0c\u8fd8\u6709\u4e00\u6279\u4e13\u95e8\u7528\u4e8e\u5404\u79cd\u56fe\u5f62\u663e\u793a\u7684\u5e03\u5c40\u65b9\u6cd5\u3002<\/p>\n<table style=\"width: 100%\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody style=\"background-color: #c8dcff\">\n<tr>\n<td style=\"padding: 10px 20px\">jquery<br \/>\nprototype<\/td>\n<td style=\"width: 300px;text-align: center;background: #A6BFFF\">backbone<\/td>\n<td style=\"padding: 10px 20px;text-align: right\">angular.js<br \/>\nember.js<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5982\u679c\u975e\u8981\u7c7b\u6bd4\u4e00\u4e0b\uff0c\u6211\u89c9\u5f97d3.js\u6709\u70b9\u7c7b\u4f3c\u4e8ebackbone.js\u5728\u5404\u79cd\u524d\u7aef\u7c7b\u5e93\u4e2d\u7684\u4f4d\u7f6e\u3002backbone\u65e2\u4e0d\u50cfjquery\u6216\u8005prototype\u90a3\u6837\u5173\u6ce8\u4e8e\u5e95\u5c42dom\u64cd\u4f5c\u65b9\u6cd5\u7684\u5b9e\u73b0\uff0c\u4e5f\u4e0d\u50cfangular\u548cember\u90a3\u6837\u662f\u4e00\u4e2aMVC\u91cd\u578b\u6846\u67b6\uff0c\u800c\u662f\u5904\u4e8e\u4e2d\u95f4\u7684\u4f4d\u7f6e\uff1a\u53ea\u662f\u5c06\u4e00\u5957\u57fa\u4e8eMVC\u6570\u636e\u5c01\u88c5\u7ed3\u6784\u7ed3\u5408\u7740\u57fa\u4e8eunderscore\u7684\u6570\u636e\u96c6\u64cd\u4f5c\u65b9\u6cd5\u63d0\u4f9b\u7ed9\u7528\u6237\uff0c\u4ee5\u5b9e\u73b0\u8f7b\u91cf\u7ea7\u7684\u3001\u7075\u6d3b\u6027\u6700\u5927\u7684\u524d\u7aefMVC\u7f16\u7a0b\u3002<\/p>\n<p>\u5982\u679c\u628a\u6700\u7ec8\u8ffd\u6c42\u66ff\u6362\u6210\u5b9e\u73b0\u4ea4\u4e92\u56fe\u8868\uff0c\u6700\u4f4e\u8ffd\u6c42\u66ff\u6362\u6210\u5e95\u5c42\u56fe\u5f62\u6e32\u67d3\uff0c\u90a3\u4e48\u7b2c\u4e8c\u4e2a\u8868\u5c31\u53ef\u4ee5\u5b8c\u5168\u88ab\u7b2c\u4e00\u4e2a\u8868\u66ff\u6362\u3002\u6240\u4ee5\u6211\u8ba4\u4e3a\u53ef\u4ee5\u79f0d3\u4e3a\u56fe\u5f62\u64cd\u4f5c\u9886\u57df\u7684\u8f7b\u91cf\u7ea7\u6846\u67b6\u3002d3\u548cbackbone\u90fd\u662f\u5404\u81ea\u9886\u57df\u7684\u8f7b\u91cf\u7ea7\u6846\u67b6\uff0c\u597d\u5904\u662f\u7075\u6d3b\u65b9\u4fbf\uff0c\u540c\u65f6\u8fd8\u6709\u5f88\u591a\u5df2\u6709\u7684\u6570\u636e\u64cd\u4f5c\u65b9\u6cd5\u53ef\u7528\uff0c\u4f46\u4e3a\u6b64\u5fc5\u7136\u4f1a\u4ed8\u51fa\u66f4\u591a\u7684\u5b9a\u5236\u6210\u672c\u3002\u597d\u5728d3\u7684\u6848\u4f8b\u548c\u5b66\u4e60\u8d44\u6599\u5f88\u591a\uff0c\u7167\u74e2\u753b\u846b\u82a6\u5e76\u4e0d\u662f\u5f88\u96be\u3002<\/p>\n<h2>\u4e94.\u5b66\u4e60\u8d44\u6599\u6c47\u603b\uff1a<\/h2>\n<p>\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014<\/p>\n<p>\u6700\u7cfb\u7edf\u5168\u9762\u7684\u57f9\u8bad\u6559\u7a0b\uff0c\u5305\u542b\u6536\u8d39\u57f9\u8bad\u9879\u76ee\uff1a<\/p>\n<p>https:\/\/www.dashingd3js.com\/d3-training<\/p>\n<p>d3 wiki\uff0c\u5305\u542b\u4ecb\u7ecd\u548cAPI\uff0c\u5fc5\u987b\u53c2\u8003\u7684\u5185\u5bb9\uff1a\uff08\u6709\u90e8\u5206\u6c49\u5316\uff09<\/p>\n<p>https:\/\/github.com\/mbostock\/d3\/wiki<\/p>\n<p>\u5982\u679c\u89c9\u5f97\u5185\u5bb9\u592a\u591a\uff0c\u90a3\u4e48\u5149\u770b\u4e0b\u9762\u8fd9\u672cd3 cockbook\uff0c\u7814\u7a76\u4e00\u4e0b\u91cc\u9762\u7684\u4f8b\u5b50\uff0c\u4e5f\u53ef\u4ee5\u901f\u6210\uff0c\u65b9\u4fbf\u975e\u6df1\u5ea6\u73a9\u5bb6\u4f7f\u7528\u3002<\/p>\n<p>http:\/\/nickqizhu.github.io\/d3-cookbook\/<\/p>\n<p>\u6700\u540e\u662f\u4e00\u4e9b\u4e66\u7c4d\uff0c\u90fd\u6709\u5728\u7ebf\u7248\u672c\u53ef\u4ee5\u76f4\u63a5\u67e5\u770b\u3002\u5176\u4e2d\u7b2c\u4e00\u672c\u6709\u4e2d\u6587\u7248\uff0c\u8bb2\u7684\u5f88\u6d45\u663e\uff0c\u6211\u6709\u4e00\u672c\u3002<\/p>\n<h2>Safari Books Online has the content you need<\/h2>\n<table>\n<tbody>\n<tr>\n<td><a href=\"http:\/\/my.safaribooksonline.com\/9781449340223?iid=2014-03-blog-d3-book-9781449340223-SBOBlog&amp;promocode=blog1999_1307\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" alt=\"\" src=\"http:\/\/techbus.safaribooksonline.com\/static\/201402-7555-techbus\/images\/9781449340223\/9781449340223_s.jpg\" hspace=\"70\" vspace=\"30\" \/><\/a><\/td>\n<td><a href=\"http:\/\/my.safaribooksonline.com\/9781449340223?iid=2014-03-blog-d3-book-9781449340223-SBOBlog&amp;promocode=blog1999_1307\" target=\"_blank\" rel=\"noopener\">Interactive Data Visualization for the Web<\/a>\u00a0shows you how to create and publish your own interactive data visualization projects on the Web \u2013 even if you have little or no experience with data visualization or web development. It\u2019s easy and fun with this practical, hands-on introduction. Author Scott Murray teaches you the fundamental concepts and methods of D3, a JavaScript library that lets you express data visually in a web browser.<\/td>\n<\/tr>\n<tr>\n<td><a href=\"http:\/\/my.safaribooksonline.com\/9781939902023?iid=2014-03-blog-d3-book-978193990202-SBOBlog&amp;promocode=blog1999_1307\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" alt=\"\" src=\"http:\/\/techbus.safaribooksonline.com\/static\/201402-7555-techbus\/images\/9781939902023\/9781939902023_s.jpg\" hspace=\"70\" vspace=\"30\" \/><\/a><\/td>\n<td><a href=\"http:\/\/my.safaribooksonline.com\/9781939902023?iid=2014-03-blog-d3-book-9781939902023-SBOBlog&amp;promocode=blog1999_1307\" target=\"_blank\" rel=\"noopener\">Developing a D3.js Edge<\/a>\u00a0D3 is a powerful framework for producing interactive data visualizations. Many examples created in the real world with D3, however, can best be described as \u201cspaghetti code.\u201d So, if you are interested in using D3 in a reusable and modular way, which is of course in line with modern development practices, then this book is for you!<\/td>\n<\/tr>\n<tr>\n<td><a href=\"http:\/\/my.safaribooksonline.com\/9781782160007?iid=2014-03-blog-d3-book-9781782160007-SBOBlog&amp;promocode=blog1999_1307\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" alt=\"\" src=\"http:\/\/techbus.safaribooksonline.com\/static\/201402-7555-techbus\/images\/9781782160007\/9781782160007_s.jpg\" hspace=\"70\" vspace=\"30\" \/><\/a><\/td>\n<td><a href=\"http:\/\/my.safaribooksonline.com\/9781782160007?iid=2014-03-blog-d3-book-9781782160007-SBOBlog&amp;promocode=blog1999_1307\" target=\"_blank\" rel=\"noopener\">Data Visualization with d3.js<\/a>\u00a0walks you through 20 examples. You can finally stop struggling to piece together examples you\u2019ve found online. With this book, you will learn enough of the core concepts to conceive of and build your own visualizations from scratch.<br \/>\nIt begins with the basics of putting lines on the screen, and builds on this foundation all the way to creating interactive animated visualizations using d3.js layouts.<\/td>\n<\/tr>\n<tr>\n<td><a href=\"http:\/\/my.safaribooksonline.com\/9780133439649?iid=2014-03-blog-d3-book-9780133439649-SBOBlog&amp;promocode=blog1999_1307\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" alt=\"\" src=\"http:\/\/techbus.safaribooksonline.com\/static\/201402-7555-techbus\/images\/9780133439649\/9780133439649_s.jpg\" hspace=\"70\" vspace=\"30\" \/><\/a><\/td>\n<td><a href=\"http:\/\/my.safaribooksonline.com\/9780133439649?iid=2014-03-blog-d3-book-9780133439649-SBOBlog&amp;promocode=blog1999_1307\" target=\"_blank\" rel=\"noopener\">Visual Storytelling with D3: An Introduction to Data Visualization in JavaScript<\/a>\u00a0provides readers with a strong framework of principles for making well-conceived and well-crafted infographics, as well as detailed and practical instructions for how to really wield D3, the best tool for making web infographics available. An extended example is used in the book to explain how to put theory to practical use.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>\u6700\u8fd1\u4ee5\u6765\uff0c\u6211\u4f7f\u7528d3\u8fdb\u884c\u6211\u7684\u53ef\u89c6\u5316\u5de5\u5177\u7684<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[27,28],"class_list":["post-1026","post","type-post","status-publish","format-standard","hentry","category-data-visualization","tag-d3js","tag-d3"],"_links":{"self":[{"href":"https:\/\/www.divis.cn\/index.php\/wp-json\/wp\/v2\/posts\/1026","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.divis.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.divis.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.divis.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.divis.cn\/index.php\/wp-json\/wp\/v2\/comments?post=1026"}],"version-history":[{"count":0,"href":"https:\/\/www.divis.cn\/index.php\/wp-json\/wp\/v2\/posts\/1026\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.divis.cn\/index.php\/wp-json\/wp\/v2\/media?parent=1026"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.divis.cn\/index.php\/wp-json\/wp\/v2\/categories?post=1026"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.divis.cn\/index.php\/wp-json\/wp\/v2\/tags?post=1026"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}