Jump to content

Pie Chart For Aircraft Types Not Working?


david thompson

Recommended Posts

Hello, I copyed this code into the profile_mail.tpl but only thing that works is the PIERP chart and the pie chart for the aircraft one doesnt show. Here is the code reagrds.

<h3>Your Stats</h3>

<?php

/*

Added in 2.0!

*/

$chart_width = '800';

$chart_height = '250';

/* Don't need to change anything below this here */

?>

<div align="center" style="width: 100%;">

<div align="center" id="months_data"></div>

</div>

<br />

<div align="center" style="width: 100%;">

<div align="center" id="aircraft_data"></div>

</div>

<script type="text/javascript" src="<?php echo fileurl('/lib/js/ofc/js/swfobject.js')?>"></script>

<script type="text/javascript">

swfobject.embedSWF("<?php echo fileurl('/lib/js/ofc/open-flash-chart.swf');?>",

"months_data", "<?php echo $chart_width;?>", "<?php echo $chart_height;?>",

"9.0.0", "expressInstall.swf",

{"data-file":"<?php echo actionurl('/pilots/statsmonthsdata/'.Auth::$userinfo->pilotid);?>"});

<?php

$chart_width = '800';

$chart_height = '300';

/* Don't need to change anything below this here */

?>

swfobject.embedSWF("<?php echo fileurl('/lib/js/ofc/open-flash-chart.swf');?>",

"aircraft_data", "<?php echo $chart_width;?>", "<?php echo $chart_height;?>",

"9.0.0", "expressInstall.swf",

{"data-file":"<?php echo actionurl('/pilots/statsaircraftdata/'.Auth::$userinfo->pilotid);?>"});

</script>

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...