shop.balmet.com

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

index.html (2160B)


      1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
      2 <html>
      3 <head>
      4 	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      5 	<title>Flot Examples: Symbols</title>
      6 	<link href="../examples.css" rel="stylesheet" type="text/css">
      7 	<!--[if lte IE 8]><script language="javascript" type="text/javascript" src="../../excanvas.min.js"></script><![endif]-->
      8 	<script language="javascript" type="text/javascript" src="../../jquery.js"></script>
      9 	<script language="javascript" type="text/javascript" src="../../jquery.flot.js"></script>
     10 	<script language="javascript" type="text/javascript" src="../../jquery.flot.symbol.js"></script>
     11 	<script type="text/javascript">
     12 
     13 	$(function() {
     14 
     15 		function generate(offset, amplitude) {
     16 
     17 			var res = [];
     18 			var start = 0, end = 10;
     19 
     20 			for (var i = 0; i <= 50; ++i) {
     21 				var x = start + i / 50 * (end - start);
     22 				res.push([x, amplitude * Math.sin(x + offset)]);
     23 			}
     24 
     25 			return res;
     26 		}
     27 
     28 		var data = [
     29 			{ data: generate(2, 1.8), points: { symbol: "circle" } },
     30 			{ data: generate(3, 1.5), points: { symbol: "square" } },
     31 			{ data: generate(4, 0.9), points: { symbol: "diamond" } },
     32 			{ data: generate(6, 1.4), points: { symbol: "triangle" } },
     33 			{ data: generate(7, 1.1), points: { symbol: "cross" } }
     34 		];
     35 
     36 		$.plot("#placeholder", data, {
     37 			series: {
     38 				points: {
     39 					show: true,
     40 					radius: 3
     41 				}
     42 			},
     43 			grid: {
     44 				hoverable: true
     45 			}
     46 		});
     47 
     48 		// Add the Flot version string to the footer
     49 
     50 		$("#footer").prepend("Flot " + $.plot.version + " &ndash; ");
     51 	});
     52 
     53 	</script>
     54 </head>
     55 <body>
     56 
     57 	<div id="header">
     58 		<h2>Symbols</h2>
     59 	</div>
     60 
     61 	<div id="content">
     62 
     63 		<div class="demo-container">
     64 			<div id="placeholder" class="demo-placeholder"></div>
     65 		</div>
     66 
     67 		<p>Points can be marked in several ways, with circles being the built-in default. For other point types, you can define a callback function to draw the symbol. Some common symbols are available in the symbol plugin.</p>
     68 
     69 	</div>
     70 
     71 	<div id="footer">
     72 		Copyright &copy; 2007 - 2013 IOLA and Ole Laursen
     73 	</div>
     74 
     75 </body>
     76 </html>