1 2 var reportchart = ''; 3 4 var myreportdata =''; 5 6 var yearlychart = ''; 7 8 var yearlydata = ''; 9 10 11 12 13 14 function updateDashboardData() { 15 16 jQuery(function($){ 17 18 var showdata = $("#reportdata").text(); 19//alert(showdata); 20 var showmore = JSON.parse(showdata); 21 reportchart.dataProvider = showmore; 22 23 reportchart.validateData(); 24 25 var yeardata = $("#yearlydata").text(); 26 var showyear = JSON.parse(yeardata); 27 yearlychart.dataProvider = showyear; 28 yearlychart.validateData() 29 30 31 32 }); 33 34} 35 36 jQuery(function($){ 37 38 39 $(document).ready(function() { 40 41 42 43 reportchart = AmCharts.makeChart( "report_card_div", { 44 "hideCredits": true, 45 "legend": { 46 "position": "top", 47 "useGraphSettings": true 48 }, 49 "type": "serial", 50 "addClassNames": true, 51 "theme": "none", 52 "autoMargins": false, 53 "marginLeft": 50, 54 "marginRight": 8, 55 "marginTop": 10, 56 "marginBottom": 50, 57 "balloon": { 58 "adjustBorderColor": false, 59 "horizontalPadding": 10, 60 "verticalPadding": 8, 61 "color": "#ffffff" 62 }, 63 64 "dataProvider": null, 65 "valueAxes": [ { 66 "axisAlpha": 0, 67 "position": "left" 68 } ], 69 "startDuration": 1, 70 "graphs": [ { 71 "alphaField": "alpha", 72 "balloonText": "<span style='font-size:12px;'>Sector Growth for [[category]]:<br /><span style='font-size:20px;'>[[value]]%</span> [[additional]]</span>", 73 "fillAlphas": 1, 74 "title": "Overall Sector", 75 "type": "column", 76 "valueField": "sspavg", 77 "dashLengthField": "dashLengthColumn" 78 }, { 79 "id": "graph2", 80 "balloonText": "<span style='font-size:12px;'>SSP Growth for [[category]]:<br /><span style='font-size:20px;'>[[value]]%</span> [[additional]]</span>", 81 "bullet": "round", 82 "lineThickness": 5, 83 "bulletSize": 20, 84 "bulletBorderAlpha": 1, 85 "bulletColor": "green", 86 "useLineColorForBulletBorder": true, 87 "bulletBorderThickness": 5, 88 "fillAlphas": 0, 89 "lineAlpha": 1, 90 "title": "SSP Five Star Stocks", 91 "valueField": "indavg", 92 "dashLengthField": "dashLengthLine" 93 } ], 94 "categoryField": "sector", 95 "categoryAxis": { 96 "gridPosition": "start", 97 "axisAlpha": 0, 98 "tickLength": 0, 99 "autoWrap": true, 100 101 "minVerticalGap":20 102 }, 103 104 }); 105 106 107 yearlychart = AmCharts.makeChart( "yearlydiv", { 108 "hideCredits": true, 109 "legend": { 110 "position": "top", 111 "useGraphSettings": true 112 }, 113 "type": "serial", 114 "addClassNames": true, 115 "theme": "none", 116 "autoMargins": false, 117 "marginLeft": 50, 118 "marginRight": 8, 119 "marginTop": 10, 120 "marginBottom": 50, 121 "balloon": { 122 "adjustBorderColor": false, 123 "horizontalPadding": 10, 124 "verticalPadding": 8, 125 "color": "#ffffff" 126 }, 127 128 "dataProvider": null, 129 "valueAxes": [ { 130 "axisAlpha": 0, 131 "position": "left" 132 } ], 133 "startDuration": 1, 134 "graphs": [ { 135 "alphaField": "alpha", 136 "balloonText": "<span style='font-size:12px;'>Sector Growth for [[category]]:<br /><span style='font-size:20px;'>[[value]]%</span> [[additional]]</span>", 137 "fillAlphas": 1, 138 "title": "Overall Sector", 139 "type": "column", 140 "valueField": "sspavg", 141 "dashLengthField": "dashLengthColumn" 142 }, { 143 "id": "graph2", 144 "balloonText": "<span style='font-size:12px;'>SSP Growth for [[category]]:<br /><span style='font-size:20px;'>[[value]]%</span> [[additional]]</span>", 145 "bullet": "round", 146 "lineThickness": 5, 147 "bulletSize": 20, 148 "bulletBorderAlpha": 1, 149 "bulletColor": "green", 150 "useLineColorForBulletBorder": true, 151 "bulletBorderThickness": 5, 152 "fillAlphas": 0, 153 "lineAlpha": 1, 154 "title": "SSP Five Star Stocks", 155 "valueField": "indavg", 156 "dashLengthField": "dashLengthLine" 157 } ], 158 "categoryField": "sector", 159 "categoryAxis": { 160 "gridPosition": "start", 161 "axisAlpha": 0, 162 "tickLength": 0, 163 "autoWrap": true, 164 165 "minVerticalGap":20 166 }, 167 168 }); 169 170 171 updateDashboardData(); 172 173 174 175 }); 176 177}); 178
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.