D3js-stack diagram, d3js-Stack

Source: Internet
Author: User

D3js-stack diagram, d3js-Stack

:


Source code:

<% @ Page language = "java" import = "java. util. * "pageEncoding =" UTF-8 "%> <% String path = request. getContextPath (); String basePath = request. getScheme () + ": //" + request. getServerName () + ":" + request. getServerPort () + path + "/"; %> <! Doctype html public "-// W3C // dtd html 4.01 Transitional // EN"> 

Y and y0: y indicates the height of the rectangle (column), and y0 indicates the start height of the column (that is, where the rectangle starts to be drawn)

Explanation: (take the first row of column as an example)

The following figure shows the effect.


The starting position of the first rectangle (the Blue rectangle at the bottom) y0 is 0, and its height y (that is, the profit value in the data) is 3000; the middle rectangle is above the first rectangle, so its initial height y0 is 3000, and its height y is 2000; the starting height of the top layer rectangle is the height of the two rectangles below and 5000, and its height y is 1100. This is what y and y0 mean.


Source site: http://www.ourd3js.com/wordpress? P = 1007

Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.

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.