D3.js implement Simple network topology diagram instance code _javascript skill

Source: Internet
Author: User

Objective

Having learned about the basic development and components of d3.js, we began to apply its exciting point: gorgeous predefined graphics, the application of d3.js, we in its sample files based on a little change can be applied to our data visualization, d3.js the background of the operation has been predefined, we need only a small number of code and specification of data, we can make Very loud (please excuse my improper use of the word) effect.

The mechanics diagram (also called the Guide diagram, also has called the network extension complement diagram, anyway, through the exclusion of the structure of the relationship between the near and far, it is widely used in the research of social network and information transmission, which can intuitively reflect the channels, the intersection of the group and the group, and the contact strength of the members within the group.

This article implements the following effects (see effects in non-IE browsers):

The code is a bit long, but it's not complicated, and you can refer to the following code:

<! DOCTYPE html>  

Summarize

The above is the entire content of this article, I hope the content of this article for everyone's study or work can bring certain help, if there is doubt you can have a message exchange.

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.