Home > Web Front-end > JS Tutorial > xml document conversion tool, with chart examples (hta)_javascript skills

xml document conversion tool, with chart examples (hta)_javascript skills

WBOY
Release: 2016-05-16 18:16:10
Original
1093 people have browsed it

Source document, pie chart data

Copy code The code is as follows:



The proportion of each indicator
People

Indicator 1
50
1
< /item>

Indicator two hundred and fifty-two
50
2< /description>


Indicator Three
50



Indicator Four
50
4


Indicator five
50
5

/value>
6


Indicator 7

7


Indicator eight
50
8




Template Document


Copy code The code is as follows:




Convert code
Copy code The code is as follows:

var ctrl1 = new $System.UI. Control("div005");
var srcdoc = $System.XML.XMLUtil.loadXMLFile("ria09\style\xmls\graph_src.xml");
var tpldoc = $System.XML.XMLUtil.loadXMLFile( "ria09\style\xmls\graph_3dpie_tpl.xml");
ctrl1.renderE(srcdoc, tpldoc);

Conversion result
xml document conversion tool, with chart examples (hta)_javascript skills
Code download
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template