| Line 18... |
Line 18... |
| 18 |
<div id="devices_chart_div" class="col-xs-6" style="width:400px; height:300px"></div>
|
18 |
<div id="devices_chart_div" class="col-xs-6" style="width:400px; height:300px"></div>
|
| 19 |
<div id="preferences_chart_div" class="col-xs-6" style="width:400px; height:300px"></div>
|
19 |
<div id="preferences_chart_div" class="col-xs-6" style="width:400px; height:300px"></div>
|
| 20 |
</div>
|
20 |
</div>
|
| 21 |
<div id="app_transactions_chart_div" style="width:1200px; height:300px"></div>
|
21 |
<div id="app_transactions_chart_div" style="width:1200px; height:300px"></div>
|
| 22 |
<div id="app_transactions_conversions_div" style="width:1200px; height:300px"></div>
|
22 |
<div id="app_transactions_conversions_div" style="width:1200px; height:300px"></div>
|
| - |
|
23 |
<!-- <div id="top_five_apps" style="width:1200px; height:300px"></div> -->
|
| 23 |
|
24 |
|
| 24 |
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
|
25 |
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
|
| 25 |
<script type="text/javascript">
|
26 |
<script type="text/javascript">
|
| 26 |
var dailysignups = [];
|
27 |
var dailysignups = [];
|
| 27 |
var apptransactions=[];
|
28 |
var apptransactions=[];
|
| 28 |
var appconversions=[];
|
29 |
var appconversions=[];
|
| - |
|
30 |
var appinstalls=[];
|
| - |
|
31 |
|
| - |
|
32 |
<?php foreach ($appinstalls as $key => $value):?>
|
| - |
|
33 |
var temp = [];
|
| - |
|
34 |
temp.push(new Date('<?php echo $key;?>'));
|
| - |
|
35 |
<?php foreach ($apps as $appid => $app) :?>
|
| - |
|
36 |
<?php if(array_key_exists($appid, $value)):?>
|
| - |
|
37 |
temp.push(<?php echo $value[$appid];?>);
|
| - |
|
38 |
<?php else:?>
|
| - |
|
39 |
temp.push(0);
|
| - |
|
40 |
<?php endif;?>
|
| - |
|
41 |
<?php endforeach;?>
|
| - |
|
42 |
appinstalls.push(temp);
|
| - |
|
43 |
<?php endforeach;?>
|
| - |
|
44 |
console.log(appinstalls);
|
| 29 |
<?php foreach ($userbase as $key => $value):?>
|
45 |
<?php foreach ($userbase as $key => $value):?>
|
| 30 |
var temp = [new Date('<?php echo $value[0]['date'];?>') , <?php echo $value[0]['count'];?>,<?php echo $value[0]['verifyCount'];?>];
|
46 |
var temp = [new Date('<?php echo $value[0]['date'];?>') , <?php echo $value[0]['count'];?>,<?php echo $value[0]['verifyCount'];?>];
|
| 31 |
dailysignups.push(temp);
|
47 |
dailysignups.push(temp);
|
| 32 |
<?php endforeach;?>
|
48 |
<?php endforeach;?>
|
| 33 |
|
49 |
|
| Line 249... |
Line 265... |
| 249 |
}
|
265 |
}
|
| 250 |
};
|
266 |
};
|
| 251 |
var chart6 = new google.visualization.BarChart(document.getElementById('preferences_chart_div'));
|
267 |
var chart6 = new google.visualization.BarChart(document.getElementById('preferences_chart_div'));
|
| 252 |
chart6.draw(preferencesdata, options6);
|
268 |
chart6.draw(preferencesdata, options6);
|
| 253 |
}
|
269 |
}
|
| 254 |
</script>
|
270 |
</script>
|
| 255 |
|
271 |
|