Subversion Repositories SmartDukaan

Rev

Rev 16945 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 16945 Rev 16952
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
<div id="top_five_apps" style="width:1200px; height:300px"></div>
24
 
24
 
25
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
25
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
26
<script type="text/javascript">
26
<script type="text/javascript">
27
	var dailysignups = [];
27
	var dailysignups = [];
28
  var apptransactions=[];
28
  var apptransactions=[];
Line 39... Line 39...
39
      temp.push(0);
39
      temp.push(0);
40
      <?php endif;?>
40
      <?php endif;?>
41
    <?php endforeach;?>    
41
    <?php endforeach;?>    
42
    appinstalls.push(temp);
42
    appinstalls.push(temp);
43
  <?php endforeach;?>
43
  <?php endforeach;?>
44
console.log(appinstalls);
44
//console.log(appinstalls);
45
	<?php foreach ($userbase as $key => $value):?>
45
	<?php foreach ($userbase as $key => $value):?>
46
		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'];?>];
47
		dailysignups.push(temp);
47
		dailysignups.push(temp);
48
	<?php endforeach;?>
48
	<?php endforeach;?>
49
 
49
 
Line 112... Line 112...
112
      };
112
      };
113
 
113
 
114
      var chart1 = new google.visualization.LineChart(document.getElementById('registrations_chart_div'));
114
      var chart1 = new google.visualization.LineChart(document.getElementById('registrations_chart_div'));
115
      chart1.draw(data, options1);
115
      chart1.draw(data, options1);
116
 
116
 
-
 
117
      var topFive = new google.visualization.DataTable();
-
 
118
      topFive.addColumn('date', 'Date');
-
 
119
      <?php foreach ($apps as $key => $value):?>
-
 
120
        topFive.addColumn('number',' <?php echo($value);?>');  
-
 
121
      <?php endforeach?>
-
 
122
      topFive.addRows(appinstalls);
-
 
123
      var options10 = {
-
 
124
        hAxis: {
-
 
125
          title: 'Date',
-
 
126
        },
-
 
127
        vAxis: {
-
 
128
          title: 'Daily User activations'
-
 
129
        }
-
 
130
      };
-
 
131
 
-
 
132
      var chartTopFive = new google.visualization.LineChart(document.getElementById('top_five_apps'));
-
 
133
      chartTopFive.draw(topFive,options10);
-
 
134
 
117
      var clicksdata = new google.visualization.DataTable();      
135
      var clicksdata = new google.visualization.DataTable();      
118
      clicksdata.addColumn('date', 'Date');
136
      clicksdata.addColumn('date', 'Date');
119
      clicksdata.addColumn('number', 'Clicks');      
137
      clicksdata.addColumn('number', 'Clicks');      
120
      clicksdata.addRows(dailyclicks);
138
      clicksdata.addRows(dailyclicks);
121
      var options2 = {
139
      var options2 = {