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.6K 408