Welcome aboard! We are happy you are here and wish you good net-raft!
<?php
include("Includes/fusioncharts.php"); // download wrapper from https://www.fusioncharts.com/php-charts/
?>
<!DOCTYPE HTML>
<html>
<head>
<script type="text/javascript" src="https://static.fusioncharts.com/code/latest/fusioncharts.js"></script>
<script type="text/javascript" src="https://static.fusioncharts.com/code/latest/themes/fusioncharts.theme.ocean.js"></script>
</head>
<body>
<?php
//mychart is id of div
$pie3dChart = new FusionCharts("pie3d", "ex2", "100%", 400, "mychart", "json", '{ "chart": {
"caption": "PHP Frameworks",
"subcaption": "Last Year",
"startingangle": "120",
"showlabels": "0",
"showlegend": "1",
"enablemultislicing": "0",
"slicingdistance": "15",
"showpercentvalues": "1",
"showpercentintooltip": "0",
"plottooltext": "Frameworks group : $label Total downloads : $datavalue",
"theme": "ocean"
},
"data": [
{
"label": "Zend",
"value": "1250400"
},
{
"label": "Laravel",
"value": "1463300"
},
{
"label": "Symfony",
"value": "1050700"
},
{
"label": "Phalcon",
"value": "1061000"
}
]
}');
$pie3dChart->render();
?>
<div id="mychart"></div>
</body>
</html>
The most helpful PHP solutions
detect browser phpPHP
Click to see more ...
4.9K
408
create QR code phpPHP
Click to see more ...
3.3K
289
create relative date phpPHP
Click to see more ...
2.4K
264
drag and drop upload file using phpPHP
Click to see more ...
2.9K
253
delete array item phpPHP
Click to see more ...
2.7K
245
detect ie phpPHP
Click to see more ...
1.8K
213
detect speed internet phpPHP
Click to see more ...
1.9K
198
get current url phpPHP
Click to see more ...
2.1K
197
get meta tag phpPHP
Click to see more ...
1.6K
193
Get real client country using php ?PHP
Click to see more ...
1.6K
181