Sha256: fe5dc071688f50948be98426203cddddcdf96effc6e95355aab8b30c345ec34d

Contents?: true

Size: 758 Bytes

Versions: 4

Compression:

Stored size: 758 Bytes

Contents

<table class="table table-bordered table-hover">
  <tr>
    <td>
      <p class="text-center"><b>Visits</b></p>
      <div id="visits_area" style="width:100%;height:160px;"></div>
    </td>
  </tr>
</table>

<script type="text/javascript">
    visits_area = Morris.Area({
	element: 'visits_area',
	xkey: 'raw',
	//data: data,
	ykeys: ['first_visits', 'repeat_visits'],
	labels: ['New Visitors', 'Returning Visitors'],
	ymax: 'auto',
	grid: true,
	eventStrokeWidth: 2,
	eventLineColors: ['#ccc', '#eee'],
	smooth: true,
	hideHover: 'auto',
	parseTime: false,
	lineWidth: 1,
	pointSize: 0,
	xLabelFormat: function(x) {return x.getFullYear() + '-' + x.getMonth() + '-' + x.getDate();},
	pointFillColors: ['#fff'],
	pointStrokeColors: ['#000']
    });
</script>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
redis_analytics-1.1.0 app/views/redis_analytics/visits/_visits_area.html.erb
redis_analytics-1.0.1 app/views/redis_analytics/visits/_visits_area.html.erb
redis_analytics-1.0.0 app/views/redis_analytics/visits/_visits_area.html.erb
redis_analytics-0.7.1 app/views/redis_analytics/visits/_visits_area.html.erb