-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.js
More file actions
28 lines (28 loc) · 673 Bytes
/
app.js
File metadata and controls
28 lines (28 loc) · 673 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
$(function(){
$.ajax({
url: 'http://localhost/chat_data.php',
type: 'GET',
success : function(data) {
chartData = data;
var chartProperties = {
"caption": "Temprature in cities of NewYork",
"xAxisName": "Pin Code",
"yAxisName": "Temprature",
"rotatevalues": "1",
"theme": "zune"
};
apiChart = new FusionCharts({
type: 'column2d',
renderAt: 'chart-container',
width: '550',
height: '350',
dataFormat: 'json',
dataSource: {
"chart": chartProperties,
"data": chartData
}
});
apiChart.render();
}
});
});