Kapalı

Read xml file to create Google wordtree

[url removed, login to view]

This example makes a wordtree using Google charts. I want it to read an xml file for the [ ['Phrases'] instead of cats. I need someone to change the code to read from the attached xml file.

<html>

<head>

<script type="text/javascript" src="[url removed, login to view]"></script>

<script type="text/javascript">

[url removed, login to view]("visualization", "1.1", {packages:["wordtree"]});

[url removed, login to view](drawChart);

function drawChart() {

var data = [url removed, login to view](

[ ['Phrases'],

['cats are better than dogs'],

['cats eat kibble'],

['cats are better than hamsters'],

['cats are awesome'],

['cats are people too'],

['cats eat mice'],

['cats meowing'],

['cats in the cradle'],

['cats eat mice'],

['cats in the cradle lyrics'],

['cats eat kibble'],

['cats for adoption'],

['cats are family'],

['cats eat mice'],

['cats are better than kittens'],

['cats are evil'],

['cats are weird'],

['cats eat mice'],

]

);

var options = {

wordtree: {

format: 'implicit',

word: 'cats'

}

};

var chart = new [url removed, login to view]([url removed, login to view]('wordtree_basic'));

[url removed, login to view](data, options);

}

</script>

</head>

<body>

<div id="wordtree_basic" style="width: 900px; height: 500px;"></div>

</body>

</html>

Also, add code to get 'Age' and 'Weight' from an xml file. ['Age', 'Weight'],

<html>
<head>
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load("visualization", "1", {packages:["corechart"]});
google.setOnLoadCallback(drawChart);
function drawChart() {
var data = google.visualization.arrayToDataTable([
['Age', 'Weight'],
[ 8, 12],
[ 4, 5.5],
[ 11, 14],
[ 4, 5],
[ 3, 3.5],
[ 6.5, 7]
]);

var options = {
title: 'Age vs. Weight comparison',
hAxis: {title: 'Age', minValue: 0, maxValue: 15},
vAxis: {title: 'Weight', minValue: 0, maxValue: 15},
legend: 'none'
};

var chart = new google.visualization.ScatterChart(document.getElementById('chart_div'));

chart.draw(data, options);
}
</script>
</head>
<body>
<div id="chart_div" style="width: 900px; height: 500px;"></div>
</body>
</html>

Beceriler: Google Web Yöneticisi Araçları, HTML5, XML

Daha fazlasını görün: www docs google com, want to create a chart, src format file, google-docs.com, google docs.com, draw dogs, docs google com, docs. google, c read example, better than javascript, www.docs.google.com, google developers, developers google com, kittens, create draw, google draw, javascript load file, https xml, google charts options, implicit, text format xml, google visualization javascript, format text xml, javascript visualization, html chart script

İşveren Hakkında:
( 76 değerlendirme ) Algonquin, United States

Proje NO: #6554596

2 freelancer bu iş için ortalamada 23$ teklif veriyor

chinoto

Are my examples correct? 1) A css selector that should be able to reach every entry. 2) expected input. 3) expected output. ### wordtree_basic ### document>row>field_0 <document> <row><field_0>value ,menu Daha fazlası

1 gün içinde 20$ USD
(0 Değerlendirme)
0.0
MilanKostolani

A proposal has not yet been provided

1 gün içinde 25$ USD
(0 Değerlendirme)
0.0