lib/zooming.rhtml in flotr-1.3.9 vs lib/zooming.rhtml in flotr-1.3.10
- old
+ new
@@ -8,16 +8,9 @@
<script type="text/javascript" src="<%= BASENAME%>/jquery.min.js"></script>
<script type="text/javascript" src="<%= BASENAME%>/jquery.flot.js"></script>
<script type="text/javascript">
$(document).ready( function() {
// setup plot
- function getData( x1, x2 ) {
- var d = [];
- for( var i = x1; i < x2; i += ( x2 - x1 ) / 100 ) {
- d.push( [ i, Math.sin( i * Math.sin( i ) ) ] );
- }
- return [ { label: 'sin(x sin(x))', data: d } ];
- }
var options = {
legend: { <%= @options[:legend_position] ? "position: '#{@options[:legend_position]}'": 'show: false'%> },
xaxis: {label: <%= "\"#{@label[:X]}\"" or 'null'%>,},
yaxis: {label: <%= "\"#{@label[:Y]}\"" or 'null'%>,},