Sha256: afba65a3caafd2f53df2e881f0b4e1b3b21bbe2ae3edb834df3220e05bc8420e

Contents?: true

Size: 616 Bytes

Versions: 4

Compression:

Stored size: 616 Bytes

Contents

$(function () {

	if (!$('#line-chart').length) { return false; }
	
	line ();

	$(window).resize (App.debounce (line, 325));

});

function line () {
	$('#line-chart').empty ();

	Morris.Line({
		element: 'line-chart',
		data: [
			{ y: '2006', a: 100, b: 90 },
			{ y: '2007', a: 75,  b: 65 },
			{ y: '2008', a: 50,  b: 40 },
			{ y: '2009', a: 75,  b: 65 },
			{ y: '2010', a: 50,  b: 40 },
			{ y: '2011', a: 75,  b: 65 },
			{ y: '2012', a: 100, b: 90 }
		],
		xkey: 'y',
		ykeys: ['a', 'b', 'c'],
		labels: ['Series A', 'Series B', 'Series C'],
		lineColors: App.chartColors
	});
}

Version data entries

4 entries across 3 versions & 1 rubygems

Version Path
repsheet_visualizer-1.1.0 lib/repsheet_visualizer/application/public/js/demos/charts/morris/line.js
repsheet_visualizer-1.0.0 lib/repsheet_visualizer/application/public/js/demos/charts/morris/line.js
repsheet_visualizer-1.0.0 redesign/js/demos/charts/morris/line.js
repsheet_visualizer-0.2.2 redesign/js/demos/charts/morris/line.js