Guest User

Untitled

a guest
Sep 22nd, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.19 KB | None | 0 0
  1. var chart = AmCharts.makeChart('zoomAxisChart', {
  2. "type": "serial",
  3. "theme": "none",
  4. "hideCredits": true,
  5. "color": layoutColors.defaultText,
  6. "dataDateFormat": "YYYY/MM/DD JJ:NN",
  7. "precision": 2,
  8. "valueAxes": [{
  9. color: layoutColors.defaultText,
  10. axisColor: layoutColors.defaultText,
  11. gridColor: layoutColors.defaultText,
  12. "id": "v1",
  13. "title": "percentage",
  14. "position": "left",
  15. "autoGridCount": false,
  16. "labelFunction": function (value) {
  17. return "" + Math.round(value) + "";
  18. }
  19. }
  20. ],
  21. "graphs": [{
  22. "id": "g1",
  23. "valueAxis": "v1",
  24. "bullet": "round",
  25. "bulletBorderAlpha": 1,
  26. "bulletColor": layoutColors.defaultText,
  27. color: layoutColors.defaultText,
  28. "bulletSize": 5,
  29. "hideBulletsCount": 50,
  30. "lineAlpha": 0.8,
  31. "type": "smoothedLine",
  32. "title": " Quality",
  33. "valueField": "Quality",
  34. "labelsEnabled":false,
  35. "clustered": false,
  36. "lineThickness": 2,
  37. "lineColor": layoutColors.info,
  38. "legendValueText": "[[value]]",
  39. "balloonText": "[[title]]<br/><b style='font-size: 130%'>[[value]]</b>"
  40. },
  41. {
  42. "id": "g2",
  43. "valueAxis": "v1",
  44. "bullet": "round",
  45. "bulletBorderAlpha": 1,
  46. "bulletColor": layoutColors.defaultText,
  47. color: layoutColors.defaultText,
  48. "bulletSize": 5,
  49. "hideBulletsCount": 50,
  50. "lineAlpha": 0.8,
  51. "type": "smoothedLine",
  52. "title": "Availability",
  53. "valueField": "Availability",
  54. "clustered": false,
  55. "lineThickness": 2,
  56. "lineColor": layoutColors.success,
  57. "legendValueText": "[[value]]",
  58. "balloonText": "[[title]]<br/><b style='font-size: 130%'>[[value]]</b>"
  59. },
  60. {
  61. "id": "g3",
  62. "valueAxis": "v1",
  63. "bullet": "round",
  64. "bulletBorderAlpha": 1,
  65. "bulletColor": layoutColors.defaultText,
  66. color: layoutColors.defaultText,
  67. "bulletSize": 5,
  68. "hideBulletsCount": 50,
  69. "lineAlpha": 0.8,
  70. "type": "smoothedLine",
  71. "title": "Performance",
  72. "valueField": "Performance",
  73. "clustered": false,
  74. "lineThickness": 2,
  75. "lineColor": layoutColors.warning,
  76. "legendValueText": "[[value]]",
  77. "balloonText": "[[title]]<br/><b style='font-size: 130%'>[[value]]</b>"
  78. },
  79. {
  80. "id": "g4",
  81. "valueAxis": "v1",
  82. "bullet": "round",
  83. "bulletBorderAlpha": 1,
  84. "bulletColor": layoutColors.defaultText,
  85. color: layoutColors.defaultText,
  86. "bulletSize": 5,
  87. "hideBulletsCount": 50,
  88. "lineAlpha": 0.8,
  89. "type": "smoothedLine",
  90. "title": "OEE",
  91. "valueField": "OEE",
  92. "clustered": false,
  93. "lineThickness": 2,
  94. "lineColor": layoutColors.primary,
  95. "legendValueText": "[[value]]",
  96. "balloonText": "[[title]]<br/><b style='font-size: 130%'>[[value]]</b>"
  97. }
  98. ],
  99. "chartScrollbar": {
  100. "graph": "g2",
  101. "oppositeAxis": false,
  102. "offset": 30,
  103. gridAlpha: 0,
  104. color: layoutColors.defaultText,
  105. scrollbarHeight: 50,
  106. backgroundAlpha: 0,
  107. selectedBackgroundAlpha: 0.05,
  108. selectedBackgroundColor: layoutColors.defaultText,
  109. graphFillAlpha: 0,
  110. autoGridCount: true,
  111. selectedGraphFillAlpha: 0,
  112. graphLineAlpha: 0.2,
  113. selectedGraphLineColor: layoutColors.defaultText,
  114. selectedGraphLineAlpha: 1
  115. },
  116. "chartCursor": {
  117. "pan": true,
  118. "cursorColor": layoutColors.danger,
  119. "valueLineEnabled": true,
  120. "valueLineBalloonEnabled": true,
  121. "cursorAlpha": 0,
  122. "valueLineAlpha": 0.2
  123. },
  124. "categoryField": "DateTimeValue",
  125. "categoryAxis": {
  126. "axisColor": layoutColors.defaultText,
  127. "color": layoutColors.defaultText,
  128. "gridColor": layoutColors.defaultText,
  129. "parseDates": true,
  130. "dashLength": 1,
  131. "dateFormats": [{
  132. "period": 'fff',
  133. "format": 'JJ:NN:SS'
  134. }, {
  135. "period": 'ss',
  136. "format": 'JJ:NN:SS'
  137. }, {
  138. "period": 'mm',
  139. "format": 'JJ:NN'
  140. }, {
  141. "period": 'hh',
  142. "format": 'JJ:NN'
  143. }, {
  144. "period": 'DD',
  145. "format": 'DD'
  146. }, {
  147. "period": 'WW',
  148. "format": 'DD'
  149. }, {
  150. "period": 'MM',
  151. "format": 'MMM'
  152. }, {
  153. "period": 'YYYY',
  154. "format": 'YYYY'
  155. }],
  156. "minPeriod": "hh",
  157. "minorGridEnabled": true
  158. },
  159. "legend": {
  160. "useGraphSettings": true,
  161. "position": "top",
  162. "color": layoutColors.defaultText,
  163. "autoMargins": false,
  164. "valueWidth": 90
  165. },
  166. "balloon": {
  167. "borderThickness": 1,
  168. "shadowAlpha": 0
  169. },
  170. "export": {
  171. "enabled": true,
  172. "fileName": "OEEReport" + "," + new Date().toLocaleString()
  173. },
  174. "dataProvider": $scope.OeeData,
  175. pathToImages: layoutPaths.images.amChart
  176. }
Add Comment
Please, Sign In to add comment