[0] Introduction and installation of D3.js

Source: Internet
Author: User

If you want to know more about D3.js, welcome to http://www.ourd3js.com/discussion


D3 is a javascript class library for Data-Driven Documents. If you do not know what javascript is, learn about javascript first.


To put it simply, D3.js is mainly used to operate data. It injects life into your data by using HTML, SVG, and CSS, which is converted into various easy-to-understand and beautiful images.

Let's take a look at a simple example.

Now there is a set of data, [4, 32, 15, 16, 42, 25]. Now I want people to see their relationship at a Glance. What should I do? Of course, there is not much data here. A guy with that eye is coming up and saying that I can see it at a glance! However, it is more intuitive to display images, such:


You can clearly understand the relationship between their sizes through graphic display. Of course, D3 is far more powerful than that. This is just a small application. Through the use of D3, you can display boring and complex data in a simple and clear form, which is also called data visualization.

The best thing to learn about D3.js is: http://d3js.org/, of course, which is in English.
The following describes how to install and use D3.js in two ways:
1. Download The D3.js File

  • D3.zip
After decompression, You can include related js files in html, jsp, and other files.

2. You can also directly include network connections. This method is relatively simple.
<script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script>
However, you must keep the network connection valid when using the service.
Now, you can start your D3 journey.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.