-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathannual_graph1.php
59 lines (58 loc) · 1.48 KB
/
annual_graph1.php
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
<?php
$ranking_array1 = implode(',',$array1);
?>
<script>
var chart = AmCharts.makeChart("annual_graph1", {
"type": "serial",
"theme": "none",
"legend": {
"useGraphSettings": true
},
"dataProvider": [<?php echo $ranking_array1; ?>],
"valueAxes": [{
"integersOnly": true,
"reversed": false,
"axisAlpha": 0,
"dashLength": 5,
"gridCount": 10,
"position": "left",
"title": "Annual Record"
}],
"startDuration": 0.5,
"graphs": [{
"balloonText": "Request numbers in [[category]]: [[value]]",
"bullet": "round",
"title": "Request ( <?php echo $request_total; ?> )",
"valueField": "italy",
"fillAlphas": 0
}, {
"balloonText": "Award numbers in [[category]]: [[value]]",
"bullet": "round",
"title": "Award ( <?php echo $award_total; ?> )",
"valueField": "germany",
"fillAlphas": 0
}],
"chartCursor": {
"cursorAlpha": 0,
"cursorPosition": "mouse",
"zoomable": false
},
"categoryField": "data",
"categoryAxis": {
"gridPosition": "start",
"axisAlpha": 0,
"fillAlpha": 0.05,
"fillColor": "#000000",
"gridAlpha": 0,
"position": "bottom"
},
"exportConfig": {
"menuBottom": "15px",
"menuRight": "15px",
"menuItems": [{
"icon": '/lib/3/images/export.png',
"format": 'png'
}]
}
});
</script>