Advertisement
Ikki_wrs

test

Feb 12th, 2015
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.69 KB | None | 0 0
  1. <html>
  2. <head>
  3. <title>chart created with amCharts | amCharts</title>
  4. <meta name="description" content="chart created using amCharts live editor" />
  5.  
  6. <!-- amCharts javascript sources -->
  7. <script src="http://cdn.amcharts.com/lib/3/amcharts.js" type="text/javascript"></script>
  8. <script src="http://cdn.amcharts.com/lib/3/serial.js" type="text/javascript"></script>
  9.  
  10. <!-- amCharts javascript code -->
  11. <script type="text/javascript">
  12. AmCharts.makeChart("chartdiv",
  13. {
  14. "type": "serial",
  15. "pathToImages": "http://cdn.amcharts.com/lib/3/images/",
  16. "categoryField": "category",
  17. "startDuration": 1,
  18. "categoryAxis": {
  19. "gridPosition": "start"
  20. },
  21. "trendLines": [],
  22. "graphs": [
  23. {
  24. "balloonText": "[[title]] of [[category]]:[[value]]",
  25. "fillAlphas": 1,
  26. "id": "AmGraph-1",
  27. "title": "graph 1",
  28. "type": "column",
  29. "valueField": "Sakit"
  30. },
  31. {
  32. "balloonText": "[[title]] of [[category]]:[[value]]",
  33. "fillAlphas": 1,
  34. "id": "AmGraph-2",
  35. "title": "graph 2",
  36. "type": "column",
  37. "valueAxis": "ValueAxis-2",
  38. "valueField": "Izin"
  39. },
  40. {
  41. "balloonText": "[[title]] of [[category]]:[[value]]",
  42. "fillAlphas": 1,
  43. "id": "AmGraph-3",
  44. "title": "graph 3",
  45. "type": "column",
  46. "valueField": "Alpha"
  47. },
  48. {
  49. "balloonText": "[[title]] of [[category]]:[[value]]",
  50. "fillAlphas": 1,
  51. "id": "AmGraph-4",
  52. "title": "graph 4",
  53. "type": "column",
  54. "valueField": "Terlambat"
  55. }
  56. ],
  57. "guides": [],
  58. "valueAxes": [
  59. {
  60. "id": "ValueAxis-1",
  61. "title": "Axis title"
  62. },
  63. {
  64. "id": "ValueAxis-2",
  65. "position": "right",
  66. "gridAlpha": 0,
  67. "title": "Axis title"
  68. }
  69. ],
  70. "allLabels": [],
  71. "balloon": {},
  72. "legend": {
  73. "useGraphSettings": true
  74. },
  75. "titles": [
  76. {
  77. "id": "Title-1",
  78. "size": 15,
  79. "text": "GRAFIK ABSENSI"
  80. }
  81. ],
  82. "dataProvider": [
  83. {
  84. "Sakit": "21",
  85. "Izin": "80",
  86. "Alpha": 70,
  87. "Terlambat": 67,
  88. "Kelas": "X - Agama"
  89. },
  90. {
  91. "Sakit": "11",
  92. "Izin": "756",
  93. "Alpha": 93,
  94. "Terlambat": 63,
  95. "Kelas": "X - Bahasa"
  96. },
  97. {
  98. "Sakit": "15",
  99. "Izin": "1008",
  100. "Alpha": 36,
  101. "Terlambat": 20,
  102. "Kelas": "X - Mia 1"
  103. }
  104. ]
  105. }
  106. );
  107. </script>
  108. </head>
  109. <body>
  110. <div id="chartdiv" style="width: 100%; height: 400px; background-color: #FFFFFF;" ></div>
  111. </body>
  112. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement