Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@jeffrydegrande
Created July 24, 2012 02:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeffrydegrande/3167612 to your computer and use it in GitHub Desktop.
Save jeffrydegrande/3167612 to your computer and use it in GitHub Desktop.
#chart
- content_for :bottom do
:javascript
$(function() {
chart: { renderTo: 'chart',
type: "column" },
title: { text: "Errors per Site" },
xAxis: {
title: { text: null },
categories: bar_chart_categories(#{@report.model.chart_data).to_json}
},
yAxis: { title: { text: null } },
legend: { enabled: false },
series: #{bar_chart_series(@report.model.chart_data).to_json}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment