Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript">
- FusionCharts.ready(function(){
- var myChart = new FusionCharts({
- "type": "msline",
- "dataFormat": "jsonurl",
- "dataSource": "chartdata.json"
- });
- });
- FusionCharts.ready(function(){
- var revenueChart = new FusionCharts({
- "type": "line",
- "renderAt": "chartContainer",
- "width": "800",
- "height": "400",
- "dataFormat": "json",
- "dataSource": {
- "chart": {
- "caption": "Machine Details for: <? echo strtoupper($_POST['alarms']) ?>",
- "subcaption": "Date Range <? echo $_POST['startDate']." to ".$_POST['endDate']."<br><br>" ?>",
- "xaxisname": "Month",
- "yaxisname": "Recorded Values",
- "palette": "3",
- "bgcolor": "FFFFFF",
- "canvasbgcolor": "66D6FF",
- "canvasbgalpha": "5",
- "canvasborderthickness": "1",
- "canvasborderalpha": "20",
- "legendshadow": "0",
- "numbersuffix": "",
- "showvalues": "0",
- "alternatehgridcolor": "ffffff",
- "alternatehgridalpha": "100",
- "showborder": "0",
- "legendborderalpha": "0",
- "legendiconscale": "1.5",
- "divlineisdashed": "1"
- },
- "categories": [
- {
- "category": [
- {
- "label": "Jan"
- },
- {
- "label": "Feb"
- },
- {
- "label": "Mar"
- },
- {
- "label": "Apr"
- },
- {
- "label": "May"
- },
- {
- "label": "Jun"
- },
- {
- "label": "Jul"
- },
- {
- "label": "Aug"
- },
- {
- "label": "Sep"
- },
- {
- "label": "Oct"
- },
- {
- "label": "Nov"
- },
- {
- "label": "Dec"
- }
- ]
- }
- ],
- "dataset": [
- {
- "seriesname": "AC Line Voltage",
- "color": "F97D10",
- "data": [
- {
- "value": "979.42"
- },
- {
- "value": "865.777"
- },
- {
- "value": "966.11"
- }
- ]
- }
- ,
- {
- "seriesname": "CT1 Primary Line Current",
- "color": "F97D10",
- "data": [
- {
- "value": "42.3394"
- },
- {
- "value": "26.4757"
- },
- {
- "value": "44.5964"
- }
- ]
- }
- ,
- {
- "seriesname": "Secondary Line Current",
- "color": "F97D10",
- "data": [
- {
- "value": "0"
- },
- {
- "value": "0"
- },
- {
- "value": "0"
- }
- ]
- }
- ],
- "styles": {
- "definition": [
- {
- "name": "captionFont",
- "type": "font",
- "size": "15"
- }
- ],
- "application": [
- {
- "toobject": "caption",
- "styles": "captionfont"
- }
- ]
- }
- }
- });
- revenueChart.render();
- })
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement