Bar Statistical Chart implemented by JavaScript

Source: Internet
Author: User

To work, use JavaScript to make a statistical chart:
After that, take a note to share and learn from each other. There are still some problems, which are not perfect yet.
Refer to the JS statistical charts of Baidu space, central management center, access statistics, and. However, there are still differences in the application, because in this project I am working on, we need to create a new statistical table, and when there is data change, we will call the method of drawing the table. Therefore, we need to consider the page performance issues.

The following is the preview chart. It can be seen that it takes 0.005 milliseconds to draw a table, that is, one second of 200. I am still satisfied with the efficiency!
At present, there is no problem in Firefox, chrome, IE8, normal, and IE6. I don't care about IE6 now. The front-end brothers should try their best to guide users to give up IE6.


The Code is as follows: Copy and run directly.
Now there is a problem to solve, that is, in the firebug debugging status, once the mouse moves to the horizontal ruler line, an error is reported!
If anyone knows how to solve this problem, please do not hesitate to inform me! Thank you!Xmlns = "http://www.w3.org/1999/xhtml">

Related Article

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.