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">