Sha256: 931e6d99bb0d4505c527634c3d3165d84ee6692e032284f078dbd79862b75ced

Contents?: true

Size: 1.82 KB

Versions: 1

Compression:

Stored size: 1.82 KB

Contents

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <% if defined? node %>
    <title>Ardtweeno <%= node %> Line Plot Graph</title>
  <% else %>
    <title>Ardtweeno Line Plot Graph</title>
  <% end %>
  <link href="/main.css" media="screen" rel="stylesheet" type="text/css" />
  
  <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
  
  <link href="/bootstrap/bootstrap.min.css" media="screen" rel="stylesheet" type="text/css" />
  <script type="text/javascript" src="/jquery/jquery-2.0.2.min.js"></script>
  <script type="text/javascript" src="/bootstrap/bootstrap.min.js"></script>
  <script language="javascript" type="text/javascript" src="/flot/jquery.flot.js"></script>
  <script language="javascript" type="text/javascript" src="/flot/jquery.flot.time.js"></script>

<script type="text/javascript">
  $(function() {

    var options = {
      xaxis: { mode: 'time' },
            legend: { show: true,
            	      container: null, 
            		  position: 'ne', 
            		  backgroundColor: '#DBBFFF', 
            		  backgroundOpacity: 0.5 }
    };

    var graph_data = <%= data %>;
    $.plot("#placeholder", graph_data, options);

  });
</script>
  </head>
 
  <body>
  	<div id="content">
      <a href="/"><button id="punchcard-home" class="btn btn-large btn-inverse" type="button">Home</button></a>
      <div class="graph-container">
      	<% if defined? node %>
          <h3 id="punchcard-title">Ardtweeno <%= node %> Line Plot Graph</h3>
        <% else %>
          <h3 id="punchcard-title">Ardtweeno Line Plot Graph</h3>
        <% end %>
      	
  	    <div id="placeholder" class="graph-placeholder"></div>
	  </div>
	</div>
  </body>
 
</html>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ardtweeno-0.6.0 views/lineplot.erb