first commit
[wnstats.git] / public / javascripts / jqplot / examples / customHighlighterCursorTrendline.html
blobd5ed6ce451a5c92b410ea014f52af054bd7cf3a8
1 <!DOCTYPE html>
3 <html>
4 <head>
6 <title>Highlighting, Dragging Points, Cursor and Trend Lines.</title>
8 <link class="include" rel="stylesheet" type="text/css" href="../jquery.jqplot.min.css" />
9 <link rel="stylesheet" type="text/css" href="examples.min.css" />
10 <link type="text/css" rel="stylesheet" href="syntaxhighlighter/styles/shCoreDefault.min.css" />
11 <link type="text/css" rel="stylesheet" href="syntaxhighlighter/styles/shThemejqPlot.min.css" />
13 <!--[if lt IE 9]><script language="javascript" type="text/javascript" src="../excanvas.js"></script><![endif]-->
14 <script class="include" type="text/javascript" src="../jquery.min.js"></script>
17 </head>
18 <body>
19 <div class="logo">
20 <div class="nav">
21 <a class="nav" href="../../../index.php"><span>&gt;</span>Home</a>
22 <a class="nav" href="../../../docs/"><span>&gt;</span>Docs</a>
23 <a class="nav" href="../../download/"><span>&gt;</span>Download</a>
24 <a class="nav" href="../../../info.php"><span>&gt;</span>Info</a>
25 <a class="nav" href="../../../donate.php"><span>&gt;</span>Donate</a>
26 </div>
27 </div>
28 <div class="example-content">
30 <div class="example-nav">
31 <a href="cursor-highlighter.html">Previous</a> <a href="./">Examples</a> <a href="dashboardWidget.html">Next</a></div>
33 <div class="example-plot" id="chart1"></div>
34 <!-- Example scripts go here -->
36 <script class="code" type="text/javascript">
38 $(document).ready(function () {
40 $.jqplot.config.enablePlugins = true;
42 s1 = [['23-May-08',1],['24-May-08',4],['25-May-08',2],['26-May-08', 6]];
44 plot1 = $.jqplot('chart1',[s1],{
45 title: 'Highlighting, Dragging, Cursor and Trend Line',
46 axes: {
47 xaxis: {
48 renderer: $.jqplot.DateAxisRenderer,
49 tickOptions: {
50 formatString: '%#m/%#d/%y'
52 numberTicks: 4
54 yaxis: {
55 tickOptions: {
56 formatString: '$%.2f'
60 highlighter: {
61 sizeAdjust: 10,
62 tooltipLocation: 'n',
63 tooltipAxes: 'y',
64 tooltipFormatString: '<b><i><span style="color:red;">hello</span></i></b> %.2f',
65 useAxesFormatters: false
67 cursor: {
68 show: true
70 });
71 });
72 </script>
74 <!-- End example scripts -->
76 <!-- Don't touch this! -->
79 <script class="include" type="text/javascript" src="../jquery.jqplot.min.js"></script>
80 <script type="text/javascript" src="syntaxhighlighter/scripts/shCore.min.js"></script>
81 <script type="text/javascript" src="syntaxhighlighter/scripts/shBrushJScript.min.js"></script>
82 <script type="text/javascript" src="syntaxhighlighter/scripts/shBrushXml.min.js"></script>
83 <!-- End Don't touch this! -->
85 <!-- Additional plugins go here -->
87 <script class="include" type="text/javascript" src="../plugins/jqplot.dateAxisRenderer.min.js"></script>
88 <script class="include" type="text/javascript" src="../plugins/jqplot.barRenderer.min.js"></script>
89 <script class="include" type="text/javascript" src="../plugins/jqplot.categoryAxisRenderer.min.js"></script>
90 <script class="include" type="text/javascript" src="../plugins/jqplot.cursor.min.js"></script>
91 <script class="include" type="text/javascript" src="../plugins/jqplot.highlighter.min.js"></script>
92 <script class="include" type="text/javascript" src="../plugins/jqplot.dragable.min.js"></script>
93 <script class="include" type="text/javascript" src="../plugins/jqplot.trendline.min.js"></script>
95 <!-- End additional plugins -->
98 </div>
99 <script type="text/javascript" src="example.min.js"></script>
101 </body>
104 </html>