Skip to content
Extraits de code Groupes Projets
Valider b811eb93 rédigé par ericwang's avatar ericwang
Parcourir les fichiers

test graph

parent a01f09d9
Branches
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -5,8 +5,62 @@ require_once('../API_Twitter/tweetInfosFunctions.php'); ...@@ -5,8 +5,62 @@ require_once('../API_Twitter/tweetInfosFunctions.php');
?> ?>
<html>
<head>
<title>My first chart using FusionCharts Suite XT</title>
<script type="text/javascript" src="https://cdn.fusioncharts.com/fusioncharts/latest/fusioncharts.js"></script>
<script type="text/javascript" src="https://cdn.fusioncharts.com/fusioncharts/latest/themes/fusioncharts.theme.fusion.js"></script>
<script type="text/javascript">
FusionCharts.ready(function(){
var fusioncharts = new FusionCharts({
type: 'bar2d',
renderAt: 'chart-container',
width: '500',
height: '400',
dataFormat: 'json',
dataSource: {
"chart": {
"theme": "fusion",
"caption": "Top 5 Stores by Sales",
"subCaption": "Last month",
"yAxisName": "Sales (In USD)",
"numberPrefix": "$",
"alignCaptionWithCanvas": "0"
},
"data": [{
"label": "Bakersfield Central",
"value": "880000"
},
{
"label": "Garden Groove harbour",
"value": "730000"
},
{
"label": "Los Angeles Topanga",
"value": "590000"
},
{
"label": "Compton-Rancho Dom",
"value": "520000"
},
{
"label": "Daly City Serramonte",
"value": "330000"
}
]
}
});
fusioncharts.render();
});
</script>
</head>
<body>
<div id="chart-container">FusionCharts XT will load here!</div>
</body>
</html>
<!--
<html> <html>
<head> <head>
...@@ -82,3 +136,5 @@ require_once('../API_Twitter/tweetInfosFunctions.php'); ...@@ -82,3 +136,5 @@ require_once('../API_Twitter/tweetInfosFunctions.php');
</center> </center>
</body> </body>
</html> </html>
-->
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter