Skip to content
Browse files

Merge pull request #10 from marutosi/del-temp-2

[resend] delete temp file
  • Loading branch information...
2 parents 6b49e7a + cf181c4 commit 1bd153b4791d7949a92e428590863dd0f4cde2cc @gamafranco gamafranco committed Jan 2, 2013
Showing with 0 additions and 67 deletions.
  1. +0 −67 app/views/ratios/_bottom_js.html.erb~
View
67 app/views/ratios/_bottom_js.html.erb~
@@ -1,67 +0,0 @@
-
-<div id="chart <%= name %>" class="goocharts"></div>
-<div id="gauge_cpi <%= name %>" class="googauges"></div>
-<div id="gauge_spi <%= name %>" class="googauges"></div>
-<div style="clear:both;"></div>
-<script type="text/javascript">
- drawChart();
- drawCpi();
- drawSpi();
-
- function drawChart() {
- var data = new google.visualization.arrayToDataTable(<%=raw @proj_or_vers_indicators[0] %>);
-
- var options = {
- title: 'Indicadores EVM - <%= name %>',
- series: {0:{color: 'red'},
- 1:{color: 'blue'},
- 2:{color: 'green'}},
- vAxis: {title: 'Hours', titleTextStyle: {color: 'red'}}
- };
-
- var chart = new google.visualization.LineChart(document.getElementById("chart <%= name %>"));
- chart.draw(data, options);
- }
-
- function drawCpi() {
- // Create and populate the data table.
- var data_gauge = new google.visualization.arrayToDataTable([
- ['Label', 'Value'],
- ['CPI', <%=raw @proj_or_vers_indicators[1].round(3) %>]
- ]);
-
-
- var options_g = {
- redFrom: 0, redTo: 0.85,
- yellowFrom:0.85, yellowTo: 1,
- greenFrom:1, greenTo:2,
- minorTicks:5,
- min:0, max:2
- };
-
- // Create and draw the visualization.
- var gauge= new google.visualization.Gauge(document.getElementById("gauge_cpi <%= name %>"));
- gauge.draw(data_gauge, options_g);
- }
-
- function drawSpi() {
- // Create and populate the data table.
- var data_gauges = new google.visualization.arrayToDataTable([
- ['Label', 'Value'],
- ['SPI', <%=raw @proj_or_vers_indicators[2].round(3) %>]
- ]);
-
-
- var options_gs = {
- redFrom: 0, redTo: 0.85,
- yellowFrom:0.85, yellowTo: 1,
- greenFrom:1, greenTo:2,
- minorTicks:5,
- min:0, max:2
- };
-
- // Create and draw the visualization.
- var gauge= new google.visualization.Gauge(document.getElementById("gauge_spi <%= name %>"));
- gauge.draw(data_gauges, options_gs);
- }
-</script>

0 comments on commit 1bd153b

Please sign in to comment.
Something went wrong with that request. Please try again.