Advertisement
Guest User

Untitled

a guest
Oct 30th, 2014
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  <script type="text/javascript">
  2.     FusionCharts.ready(function(){
  3.         var myChart = new FusionCharts({
  4.             "type": "msline",
  5.             "dataFormat": "jsonurl",
  6.             "dataSource": "chartdata.json"
  7.         });
  8.     });
  9.        
  10.         FusionCharts.ready(function(){
  11.       var revenueChart = new FusionCharts({
  12.         "type": "line",
  13.         "renderAt": "chartContainer",
  14.         "width": "800",
  15.         "height": "400",
  16.         "dataFormat": "json",
  17.         "dataSource": {
  18.  
  19.         "chart": {
  20.        "caption": "Machine Details for:  <? echo strtoupper($_POST['alarms']) ?>",
  21.         "subcaption": "Date Range <? echo $_POST['startDate']." to ".$_POST['endDate']."<br><br>" ?>",
  22.         "xaxisname": "Month",
  23.         "yaxisname": "Recorded Values",
  24.         "palette": "3",
  25.         "bgcolor": "FFFFFF",
  26.         "canvasbgcolor": "66D6FF",
  27.         "canvasbgalpha": "5",
  28.         "canvasborderthickness": "1",
  29.         "canvasborderalpha": "20",
  30.         "legendshadow": "0",
  31.         "numbersuffix": "",
  32.         "showvalues": "0",
  33.         "alternatehgridcolor": "ffffff",
  34.         "alternatehgridalpha": "100",
  35.         "showborder": "0",
  36.         "legendborderalpha": "0",
  37.         "legendiconscale": "1.5",
  38.         "divlineisdashed": "1"
  39.    
  40.     },
  41.        "categories": [
  42.         {
  43.             "category": [
  44.                 {
  45.                     "label": "Jan"
  46.                 },
  47.                 {
  48.                     "label": "Feb"
  49.                 },
  50.                 {
  51.                     "label": "Mar"
  52.                 },
  53.                 {
  54.                     "label": "Apr"
  55.                 },
  56.                 {
  57.                     "label": "May"
  58.                 },
  59.                 {
  60.                     "label": "Jun"
  61.                 },
  62.                 {
  63.                     "label": "Jul"
  64.                 },
  65.                 {
  66.                     "label": "Aug"
  67.                 },
  68.                 {
  69.                     "label": "Sep"
  70.                 },
  71.                 {
  72.                     "label": "Oct"
  73.                 },
  74.                 {
  75.                     "label": "Nov"
  76.                 },
  77.                 {
  78.                     "label": "Dec"
  79.                 }
  80.             ]
  81.         }
  82.     ],
  83.   "dataset": [
  84. {
  85. "seriesname": "AC Line Voltage",
  86. "color": "F97D10",
  87. "data": [
  88. {
  89. "value": "979.42"
  90. },
  91. {
  92. "value": "865.777"
  93. },
  94. {
  95. "value": "966.11"
  96. }
  97. ]
  98. }
  99.  
  100. ,
  101. {
  102. "seriesname": "CT1 Primary Line Current",
  103. "color": "F97D10",
  104. "data": [
  105. {
  106. "value": "42.3394"
  107. },
  108. {
  109. "value": "26.4757"
  110. },
  111. {
  112. "value": "44.5964"
  113. }
  114. ]
  115. }
  116.  
  117. ,
  118. {
  119. "seriesname": "Secondary Line Current",
  120. "color": "F97D10",
  121. "data": [
  122. {
  123. "value": "0"
  124. },
  125. {
  126. "value": "0"
  127. },
  128. {
  129. "value": "0"
  130. }
  131. ]
  132. }
  133.  
  134. ],
  135.     "styles": {
  136.         "definition": [
  137.             {
  138.                 "name": "captionFont",
  139.                 "type": "font",
  140.                 "size": "15"
  141.             }
  142.         ],
  143.         "application": [
  144.             {
  145.                 "toobject": "caption",
  146.                 "styles": "captionfont"
  147.             }
  148.         ]
  149.     }
  150. }
  151.     });
  152.  
  153.     revenueChart.render();
  154. })
  155.     </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement