Sha256: 34ea9d74015002c5eecf27619746982d97473c33da5bb292dab0a6328ca3af4f

Contents?: true

Size: 642 Bytes

Versions: 10

Compression:

Stored size: 642 Bytes

Contents

<%# locals => report_item %>

<div class="statpad">
	<div class="title"><%= report_item.chart_title %></div>
	<div class="statbody">
		<div id="chart_item<%=h report_item.id %>" data-raphael="line" data-x-axis="date"
			<% it = 0 %>
			<%# TODO: There's a ton of assumptions here %>
			<% report_item.chart_items.each do |name, channel| %>
				data-title<%= it %>="<%= name || "Direct" %>"
			 	data-x<%= it %>="<%= channel.map { |i| i[:x].to_time.to_i * 1000 }.join(',') %>"
				data-y<%= it %>="<%= channel.map { |i| i[:y] }.join(',') %>"
				<% it = it + 1 %>
			<% end %>
			style="width: 425px; height: 260px;" />
		</div>
	</div>
</div>

Version data entries

10 entries across 7 versions & 1 rubygems

Version Path
mountain-goat-1.0.6pre1 lib/mountain-goat/views/mountain_goat/mg/report_items/_chart.html.erb
mountain-goat-1.0.5 lib/mountain-goat/views/mountain_goat/mg/report_items/_chart.html.erb
mountain-goat-1.0.4 lib/mountain-goat/views/mountain_goat/mg/report_items/_chart.html.erb
mountain-goat-1.0.3 lib/mountain-goat/views/mountain_goat/mg/report_items/.tmp__chart.html.erb.73596~
mountain-goat-1.0.3 lib/mountain-goat/views/mountain_goat/mg/report_items/_chart.html.erb
mountain-goat-1.0.2 lib/mountain-goat/views/mountain_goat/mg/report_items/.tmp__funnel.html.erb.60493~
mountain-goat-1.0.2 lib/mountain-goat/views/mountain_goat/mg/report_items/.tmp__chart.html.erb.13419~
mountain-goat-1.0.2 lib/mountain-goat/views/mountain_goat/mg/report_items/_chart.html.erb
mountain-goat-1.0.1 lib/mountain-goat/views/mountain_goat/mg/report_items/_chart.html.erb
mountain-goat-1.0.0 lib/mountain-goat/views/mountain_goat/mg/report_items/_chart.html.erb