-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp_graph.php
More file actions
102 lines (97 loc) · 2.26 KB
/
Copy pathapp_graph.php
File metadata and controls
102 lines (97 loc) · 2.26 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<?php
$ranking_array = implode(',',$array);
?>
<script>
var chart = AmCharts.makeChart("graph", {
"type": "serial",
"pathToImages": "http://cdn.amcharts.com/lib/3/images/",
"categoryField": "year",
"rotate": true,
"startDuration": 3,
"categoryAxis": {
"gridPosition": "start",
"position": "left"
},
"trendLines": [],
"graphs": [
{
"balloonText": "Agency APP = [[value]]",
"fillAlphas": 0.8,
"id": "AmGraph-1",
"lineAlpha": 0.2,
"title": "Income",
"type": "column",
"valueField": "income"
},
{
"balloonText": "Contract Amount = [[value]]",
"fillAlphas": 0.8,
"id": "AmGraph-2",
"lineAlpha": 0.2,
"title": "Expenses",
"type": "column",
"valueField": "expenses"
}
],
"guides": [],
"valueAxes": [
{
"id": "ValueAxis-1",
"position": "top",
"axisAlpha": 0
}
],
"allLabels": [],
"amExport": {
"right": 20,
"top": 20
},
"balloon": {},
"titles": [],
"dataProvider": [<?php echo $ranking_array; ?>]
});
/* var chart = AmCharts.makeChart("graph", {
"type": "serial",
"theme": "none",
"handDrawn":true,
"handDrawScatter":1,
"legend": {
"useGraphSettings": true,
"markerSize":12,
"valueWidth":0,
"verticalGap":0
},
"dataProvider": [<?php echo $ranking_array; ?>],
"valueAxes": [{
"minorGridAlpha": 0.08,
"minorGridEnabled": true,
"position": "top",
"axisAlpha":0
}],
"startDuration": 1,
"graphs": [{
"balloonText": "<span style='font-size:13px;'> <b>[[category]]</b>: [[title]] Agency APP = P <b>[[value]]</b></span>",
"title": "Income",
"type": "column",
"fillAlphas": 0.8,
"valueField": "income"
}, {
"balloonText": "<span style='font-size:13px;'> <b>[[category]]</b>: [[title]] Contract Amount = P <b>[[value]]</b></span>",
"bullet": "round",
"bulletBorderAlpha": 1,
"bulletColor": "#FFFFFF",
"useLineColorForBulletBorder": true,
"fillAlphas": 0,
"lineThickness": 2,
"lineAlpha": 1,
"bulletSize": 7,
"title": "Expenses",
"valueField": "expenses"
}],
"rotate": true,
"categoryField": "year",
"categoryAxis": {
"gridPosition": "start"
}
}); */
</script>