Jump to content

PHP: gráficos


Recommended Posts

boas pepz! Tenho este Cod.

<script type="text/javascript" src="https://www.google.com/jsapi"></script>
<script type="text/javascript">
  google.load("visualization", "1", {packages:["corechart"]});
  function drawChart() {
	var data = google.visualization.arrayToDataTable([
	  ['Year', 'Sales', 'Expenses'],
	  ['2004',  1000,	  400],
	  ['2005',  1170,	  460],
	  ['2006',  660,	   1120],
	  ['2007',  1030,	  540]

	var options = {
	  title: 'Company Performance'

	var chart = new google.visualization.LineChart(document.getElementById('chart_div'));
	chart.draw(data, options);
<div id="chart_div" style="width: 900px; height: 500px;"></div>

o que eu gostava de fazer era 1 função (em mysql) para mostrar todos os registo de anomalias feitos num Ano.

Se alguem podesse ajudar agradecia!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.