<hmtl> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>CurvedLines Plugin for flot</title> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> <!--[if lte IE 8]><script language="javascript" type="text/javascript" src="../flot/excanvas.min.js"></script><![endif]--> <script language="javascript" type="text/javascript" src="../flot/jquery.flot.js"></script> <script language="javascript" type="text/javascript" src="../curvedLines.js"></script> </head> <body> <div id="flotFit" style="width: 800;height: 400;"></div> <script id="source" language="javascript" type="text/javascript"> $(function() { var d1 = [[20, 20], [42, 60], [54, 30], [80, 80]]; var options = { series : { curvedLines : { active : true } }, xaxis : { min : 10, max : 100 }, yaxis : { min : -20, max : 120 } }; $.plot($("#flotFit"), [{ data : d1, lines : { show : true, lineWidth : 3 }, curvedLines: {apply: true, fit : true, } }, { data : d1, points : { show : true } }], options); }); </script> </body> </hmtl>