Sha256: 77975aeba288e029271466cb1a86b009578da51294923c403d136a6cd0015ae5

Contents?: true

Size: 1.03 KB

Versions: 16

Compression:

Stored size: 1.03 KB

Contents

/* Flot plugin that adds some extra symbols for plotting points.

Copyright (c) 2007-2013 IOLA and Ole Laursen.
Licensed under the MIT license.

The symbols are accessed as strings through the standard symbol options:

	series: {
		points: {
			symbol: "square" // or "diamond", "triangle", "cross"
		}
	}

*/(function(e){function t(e,t,n){var r={square:function(e,t,n,r,i){var s=r*Math.sqrt(Math.PI)/2;e.rect(t-s,n-s,s+s,s+s)},diamond:function(e,t,n,r,i){var s=r*Math.sqrt(Math.PI/2);e.moveTo(t-s,n),e.lineTo(t,n-s),e.lineTo(t+s,n),e.lineTo(t,n+s),e.lineTo(t-s,n)},triangle:function(e,t,n,r,i){var s=r*Math.sqrt(2*Math.PI/Math.sin(Math.PI/3)),o=s*Math.sin(Math.PI/3);e.moveTo(t-s/2,n+o/2),e.lineTo(t+s/2,n+o/2),i||(e.lineTo(t,n-o/2),e.lineTo(t-s/2,n+o/2))},cross:function(e,t,n,r,i){var s=r*Math.sqrt(Math.PI)/2;e.moveTo(t-s,n-s),e.lineTo(t+s,n+s),e.moveTo(t-s,n+s),e.lineTo(t+s,n-s)}},i=t.points.symbol;r[i]&&(t.points.symbol=r[i])}function n(e){e.hooks.processDatapoints.push(t)}e.plot.plugins.push({init:n,name:"symbols",version:"1.0"})})(jQuery);

Version data entries

16 entries across 16 versions & 3 rubygems

Version Path
riemann-dash-0.2.14 lib/riemann/dash/public/vendor/flot/jquery.flot.symbol.min.js
riemann-dash-0.2.13 lib/riemann/dash/public/vendor/flot/jquery.flot.symbol.min.js
riemann-dash-0.2.12 lib/riemann/dash/public/vendor/flot/jquery.flot.symbol.min.js
riemann-dash-0.2.11 lib/riemann/dash/public/vendor/flot/jquery.flot.symbol.min.js
riemann-dash-0.2.10 lib/riemann/dash/public/vendor/flot/jquery.flot.symbol.min.js
riemann-dash-0.2.9 lib/riemann/dash/public/vendor/flot/jquery.flot.symbol.min.js
riemann-dash-0.2.8 lib/riemann/dash/public/vendor/flot/jquery.flot.symbol.min.js
riemann-dash-0.2.7 lib/riemann/dash/public/vendor/flot/jquery.flot.symbol.min.js
ruby-trade-0.4 server/public/flot/jquery.flot.symbol.min.js
ruby-trade-0.3 server/public/flot/jquery.flot.symbol.min.js
ruby-trade-0.2 server/public/flot/jquery.flot.symbol.min.js
ruby-trade-0.1 server/public/flot/jquery.flot.symbol.min.js
riemann-dash-0.2.6 lib/riemann/dash/public/vendor/flot/jquery.flot.symbol.min.js
flot-rails-0.0.4 vendor/assets/javascripts/jquery.flot.symbol.min.js
riemann-dash-0.2.5 lib/riemann/dash/public/vendor/flot/jquery.flot.symbol.min.js
flot-rails-0.0.3 vendor/assets/javascripts/jquery.flot.symbol.min.js