Source Document
Template documentation (here shrinks the JS code, and the code is in a CDATA section)
Source Document |
|
Template documentation (here shrinks the JS code, and the code is in a CDATA section) |
|
This example uses the syntax converted to VML, and replaces it with other SVG-like syntax, which can be converted into SVG graphics and the number of units can be arbitrarily added.
There are actually more examples that have been completed, including building the Unit tree (which supports dynamic Data acquisition and generating a list of nodes), creating an editing interface (updatable database), and so on.
Source code in a large class library, you need to extract the changes and then hair, in order to use independently.
For this way of conversion, please give advice to friends, not hesitate to enlighten.
PS. Efficiency is also OK, generate (convert) and display (InnerHTML) out of this pie chart, there is instantaneous 5% CPU occupancy rate. My machine T2080 1.73ghz,2g 667 memory. The conversion code was tested early in FF1.07 and opera8.5, and later made some changes (Non-core) and should not lose compatibility. Color, there should be a better way to generate a more differentiated color, and now the method produces a bit too close to the color.