D3.js是一个JavaScript库,它可以通过数据来操作文档。D3可以通过使用HTML、SVG和CSS把数据鲜活形象地展现出来。D3严格遵循Web标准,因而可以让你的程序轻松兼容现代主流浏览器并避免对特定框架的依赖。同时,它提供了强大的可视化组件,可以让使用者以数据驱动的方式去操作DOM。 看下
转载 2018-02-11 10:11:00
359阅读
2评论
<script src="http://d3js.org/d3.v3.min.js"></script> <script> var width = 500, height = 500; var cluster = d3.layout.cluster() .size([width, height - 200]); var diagonal
转载 2018-05-15 14:06:00
137阅读
1. HelloWorld Hello World 1 Hello World 2
原创 2022-08-05 16:08:41
88阅读
Learn how to leverage d3's layout module to create a Force Layout inside of React. We'll take a look at React's lifecycle methods, using them to boots
转载 2017-08-28 21:00:00
191阅读
2评论
D3 makes it easy to add meaningful animations to your data visualizations. Whether it’s fading in new items or tweening existing shapes to display new
转载 2017-08-21 15:43:00
165阅读
2评论
最近再做一个应用,然后需要做一些表格,其中有柱状图和饼状图,柱状图感觉还可以用div模拟y
原创 2022-07-11 16:11:01
90阅读
You can’t add axes to a chart if you don’t make room for them. To that end, the D3 community has adopted a simple convention for defining margin sizes
转载 2017-08-07 18:23:00
188阅读
2评论
D3 transitions start executing as soon as they’re created, and they’re destroyed once they end. This can present some challenges when attempting to cr
转载 2017-08-22 21:38:00
234阅读
2评论
操作 DOMd3 提供了 d3.select 和 d3.selectAll 两个 API,根据 CSS 选择器来选取 DOM 节点。
原创 10月前
83阅读
D3D3 or D3.js 代表 "Data Driven Documents"选中、添加元素​​select()​​ 方法从文档中选择一个元素,它接收目标元素的名称作为参数并返回第一个匹配该名称 HTML 节点。举例:const anchor = d3.select('a');​​append()​​方法接收添加到文档中的元素,它会把该元素添加到一个选中的 HTML 节点,然后返回对该节点的引用
原创 2022-09-28 08:11:09
211阅读
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="wi ...
转载 2021-07-26 17:08:00
214阅读
2评论
Since D3 outputs standard markup, you can use familiar dev tools and inspectors to debug your visualizations. In this lesson we’ll look at how to use
转载 2017-08-21 15:19:00
195阅读
2评论
Similar to line charts, area charts are great for displaying temporal data. Whether you’re displaying a single set of data or multiple sets using an o
转载 2017-08-18 19:37:00
217阅读
2评论
Column and bar charts are staples of every visualization library. They also make a great project for combining the essential pieces of D3 like selecti
转载 2017-08-10 16:46:00
140阅读
2评论
Line charts are often used to plot temporal data, like a stock price over time. In this lesson we’ll see how to use D3 APIs to create our own simplifi
转载 2017-08-14 19:38:00
174阅读
2评论
Scatter plots, sometimes also known as bubble charts, are another common type of visualization. They’re extremely versatile thanks to their ability to
转载 2017-08-11 18:57:00
161阅读
2评论
Most charts aren’t complete without axes to provide context and labeling for the graphical elements being displayed. This lesson introduces D3’s APIs
转载 2017-08-07 18:47:00
177阅读
2评论
When the data being rendered by a chart changes, sometimes it necessitates a change to the scales and axes of the chart as well. This lesson demonstra
转载 2017-08-28 17:46:00
168阅读
2评论
Integrating D3 with Angular can be very simple. In this lesson, you will learn basic integration as well as how to create D3 charts that can be packag...
转载 2015-06-07 22:48:00
146阅读
2评论
  • 1
  • 2
  • 3
  • 4
  • 5