Ola,
Apos instalaçao do HighCharts (http://geekvigarista.com/app/navegadores/graficos-em-aplicacoes-web-usando-highcharts-js-1) Fiz um HTML para me mostrar um grafico com relaçao aos valores que eu informar:
[code]
GRAPHS <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
<script type="text/javascript">
$(function () {
$(’#container’).highcharts({
chart: {
type: ‘spline’
},
title: {
text: ‘NUMERO DE USERS DO PORTAL por ano’
},
subtitle: {
text: ‘Source: WorldClimate.com’
},
xAxis: {
categories: [‘Jan’, ‘Feb’, ‘Mar’, ‘Apr’, ‘May’, ‘Jun’,
‘Jul’, ‘Aug’, ‘Sep’, ‘Oct’, ‘Nov’, ‘Dec’]
},
yAxis: {
title: {
text: ‘Users’
},
labels: {
formatter: function() {
return this.value
}
}
},
tooltip: {
crosshairs: true,
shared: true
},
plotOptions: {
spline: {
marker: {
radius: 4,
lineColor: ‘#666666’,
lineWidth: 1
}
}
},
series: [{
name: ‘2012’,
marker: {
symbol: ‘square’
},
data: [0, 0, 0, 0, 0, 0, 1, {
y: 2,
marker: {
//symbol: ‘url(http://www.highcharts.com/demo/gfx/sun.png)’
}
}, 2, 1, 4, 5]
}, {
name: '2013',
marker: {
//symbol: 'diamond'
},
data: [{
y: 1,
marker: {
//symbol: 'url(http://www.highcharts.com/demo/gfx/snow.png)'
}
}, 1, 1, 1, 0, 0, 0, 0, 2, 1, 0, 0]
}]
});
});
</script>
</head>
<body>
</body>
[/code]
AGORA gostaria de mostrar os valores de um banco de dados nao LOCALHOST mysql.
Alguém me ajuda?
Obrigada,