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
WBOYOriginal
2016-05-16 18:16:101098browse

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
Statement:
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