Commits

Anonymous committed 101c3b9

Updated and added tests for new cursor and zooming capabilities.
Updated version for next release cycle.

  • Participants
  • Parent commits 1e7c1d6

Comments (0)

Files changed (7)

tests/dataTracking.php

+<?php
+  $title = "jqPlot Cursor Lines and Data Tracking";
+  $jspec_title = "jqPlot Cursor Lines and Data Tracking Examples";
+  $jqplot_js_includes = array();
+  $jqplot_js_includes[] = "../src/plugins/jqplot.cursor.js";
+  $jqplot_js_includes[] = "../src/plugins/jqplot.dateAxisRenderer.js";
+  require("opener.php");
+?>
+<script language="javascript" type="text/javascript">
+var goog = [["6/22/2009",425.32],
+["6/8/2009",424.84],
+["5/26/2009",417.23],
+["5/11/2009",390],
+["4/27/2009",393.69],
+["4/13/2009",392.24],
+["3/30/2009",369.78],
+["3/16/2009",330.16],
+["3/2/2009",308.57],
+["2/17/2009",346.45],
+["2/2/2009",371.28],
+["1/20/2009",324.7],
+["1/5/2009",315.07],
+["12/22/2008",300.36],
+["12/8/2008",315.76],
+["11/24/2008",292.96],
+["11/10/2008",310.02],
+["10/27/2008",359.36],
+["10/13/2008",372.54],
+["9/29/2008",386.91],
+["9/15/2008",449.15],
+["9/2/2008",444.25],
+["8/25/2008",463.29],
+["8/11/2008",510.15],
+["7/28/2008",467.86],
+["7/14/2008",481.32],
+["6/30/2008",537],
+["6/16/2008",546.43],
+["6/2/2008",567],
+["5/19/2008",544.62],
+["5/5/2008",573.2],
+["4/21/2008",544.06],
+["4/7/2008",457.45],
+["3/24/2008",438.08],
+["3/10/2008",437.92],
+["2/25/2008",471.18],
+["2/11/2008",529.64],
+["1/28/2008",515.9],
+["1/14/2008",600.25],
+["12/31/2007",657],
+["12/17/2007",696.69],
+["12/3/2007",714.87],
+["11/19/2007",676.7],
+["11/5/2007",663.97],
+["10/22/2007",674.6],
+["10/8/2007",637.39],
+["9/24/2007",567.27],
+["9/10/2007",528.75],
+["8/27/2007",515.25]];
+var InPr = [[0.0,85.0],[10.0,87.4],[20.0,90.0],[30.0,91.3],[40.0,93.5],[50.0,94.1],[60.0,95.4],[70.0,95.8],[80.0,96.1],[90.0,97.6],[100.0,97.4],[110.0,97.7],[120.0,97.9],[130.0,98.3],[140.0,97.9],[150.0,98.4],[160.0,99.8],[170.0,100.5],[180.0,100.4],[190.0,100.3],[200.0,102.9],[210.0,104.1],[220.0,104.4],[230.0,103.9],[240.0,104.4],[250.0,104.0],[260.0,103.9],[270.0,103.5],[280.0,105.4],[290.0,105.7],[300.0,105.7],[310.0,105.3],[320.0,105.0],[330.0,105.1],[340.0,105.0],[350.0,105.1],[360.0,104.7],[370.0,104.4],[380.0,104.3],[390.0,105.7],[400.0,106.4],[410.0,105.7],[420.0,105.4],[430.0,105.7],[440.0,105.7],[450.0,105.9],[460.0,105.3],[470.0,105.7],[480.0,105.8],[490.0,105.4],[500.0,105.4],[510.0,105.4],[520.0,105.6],[530.0,104.9],[540.0,104.8],[550.0,105.2],[560.0,105.2],[570.0,105.1],[580.0,104.8],[590.0,104.6],[600.0,104.3],[610.0,104.2],[620.0,104.1],[630.0,104.7],[640.0,104.6],[650.0,104.7],[660.0,104.6],[670.0,104.4],[680.0,106.8],[690.0,106.6],
+[700.0,106.3],[710.0,107.1],[720.0,106.2],[730.0,106.1],[740.0,106.7],[750.0,106.5],[760.0,106.8],[770.0,106.7],[780.0,106.6],[790.0,106.7],[800.0,106.8],[810.0,106.4],[820.0,106.7],[830.0,106.5],[840.0,106.9],[850.0,106.7],[860.0,106.7],[870.0,106.8],[880.0,107.1],[890.0,106.6],[900.0,106.8],[910.0,106.9],[920.0,106.8],[930.0,107.3],[940.0,106.9],[950.0,106.5],[960.0,107.2],[970.0,107.0],[980.0,106.9],[990.0,107.2],[1000.0,107.7],[1010.0,107.6],[1020.0,107.1],[1030.0,107.6],[1040.0,107.2],[1050.0,107.2],[1060.0,107.5],[1070.0,107.7],[1080.0,107.3],[1090.0,107.0],[1100.0,107.7],[1110.0,107.0],[1120.0,107.8],[1130.0,107.8],[1140.0,107.7],[1150.0,107.4],[1160.0,107.8],[1170.0,107.8],[1180.0,107.6],[1190.0,107.7],[1200.0,107.4],[1210.0,108.0],[1220.0,372.6],[1230.0,90.4],[1240.0,125.0],[1250.0,110.4],[1260.0,108.5],[1270.0,109.7],[1280.0,108.9],[1290.0,109.6],[1300.0,110.2],[1310.0,110.0],[1320.0,110.7],[1330.0,110.3],[1340.0,110.6],[1350.0,110.5],
+[1360.0,110.8],[1370.0,110.6],[1380.0,111.0],[1390.0,113.0],[1400.0,112.1],[1410.0,112.3],[1420.0,112.3],[1430.0,137.6],[1440.0,179.0],[1450.0,216.9],[1460.0,399.2],[1470.0,433.6],[1480.0,203.5],[1490.0,223.3],[1500.0,229.8],[1510.0,416.9],[1520.0,198.8],[1530.0,208.7],[1540.0,172.0],[1550.0,145.7],[1560.0,119.2],[1570.0,104.8],[1580.0,100.1],[1590.0,97.7],[1600.0,97.2],[1610.0,98.8],[1620.0,98.1],[1630.0,98.1],[1640.0,98.8],[1650.0,98.7],[1660.0,98.5],[1670.0,98.8],[1680.0,98.2],[1690.0,98.2],[1700.0,97.7],[1710.0,98.1],[1720.0,97.1],[1730.0,97.6],[1740.0,97.7],[1750.0,97.4],[1760.0,97.6],[1770.0,98.0],[1780.0,97.6],[1790.0,97.7],[1800.0,97.8],[1810.0,97.6],[1820.0,97.9],
+[1830.0,97.9],[1840.0,97.8],[1850.0,97.7],[1860.0,97.7],[1870.0,97.7],[1880.0,97.4],[1890.0,97.3],[1900.0,97.2],[1910.0,96.9],[1920.0,97.2],[1930.0,97.4],[1940.0,97.7],[1950.0,97.1],[1960.0,97.1],[1970.0,96.6],[1980.0,96.7],[1990.0,96.5],[2000.0,97.2],[2010.0,96.6],[2020.0,96.4],[2030.0,96.7],[2040.0,96.8],[2050.0,96.6],[2060.0,96.6],[2070.0,96.5],[2080.0,96.6],[2090.0,96.4],[2100.0,96.6],[2110.0,96.5],[2120.0,96.2],[2130.0,96.2],[2140.0,96.5],[2150.0,96.0],[2160.0,96.2],[2170.0,96.3],[2180.0,96.4],[2190.0,97.0],[2200.0,96.8],[2210.0,96.5],[2220.0,96.6],[2230.0,96.1],[2240.0,96.1],[2250.0,96.6],[2260.0,96.5],[2270.0,96.6],[2280.0,96.4],[2290.0,96.5],[2300.0,96.6],[2310.0,96.9],[2320.0,96.8],[2330.0,96.9],[2340.0,97.2],[2350.0,96.6],[2360.0,97.3],[2370.0,97.4],[2380.0,97.1],[2390.0,97.1],[2400.0,96.8],[2410.0,97.0],[2420.0,97.1],[2430.0,97.1],[2440.0,97.0],[2450.0,97.1],[2460.0,97.1],[2470.0,97.5],[2480.0,96.9],[2490.0,96.8],[2500.0,96.8],[2510.0,97.0],[2520.0,96.7],[2530.0,97.0],[2540.0,97.1],[2550.0,97.2],[2560.0,97.1],[2570.0,97.1],[2580.0,97.1],[2590.0,96.8],[2600.0,97.2],[2610.0,97.1],[2620.0,97.3],[2630.0,97.1],[2640.0,97.1],[2650.0,97.1],[2660.0,97.0],[2670.0,96.8],[2680.0,97.3],[2690.0,97.4],[2700.0,97.3],[2710.0,97.2],[2720.0,97.1],[2730.0,97.2],[2740.0,97.1],[2750.0,97.1],[2760.0,97.1],[2770.0,96.8],[2780.0,96.4],[2790.0,96.6],[2800.0,96.6]];
+var OutPr = [[0.0,1788.1],[10.0,1803.3],[20.0,1807.3],[30.0,1813.5],[40.0,1822.0],[50.0,1820.3],[60.0,1823.7],[70.0,1823.7],[80.0,1825.3],[90.0,1831.0],[100.0,1832.1],[110.0,1834.4],[120.0,1834.4],[130.0,1831.5],[140.0,1832.7],[150.0,1834.4],[160.0,1831.5],[170.0,1832.1],[180.0,1830.4],[190.0,1831.0],[200.0,1830.4],[210.0,1829.3],[220.0,1829.9],[230.0,1828.2],[240.0,1831.0],[250.0,1828.7],[260.0,1827.0],[270.0,1829.3],[280.0,1826.5],[290.0,1824.8],[300.0,1824.2],[310.0,1823.7],[320.0,1823.7],[330.0,1823.7],[340.0,1825.3],[350.0,1822.0],[360.0,1820.3],[370.0,1818.0],[380.0,1819.1],[390.0,1816.3],[400.0,1820.8],[410.0,1820.8],[420.0,1819.7],[430.0,1820.3],[440.0,1819.7],[450.0,1819.1],
+[460.0,1819.1],[470.0,1821.4],[480.0,1821.4],[490.0,1818.0],[500.0,1816.9],[510.0,1819.1],[520.0,1818.6],[530.0,1816.9],[540.0,1816.9],[550.0,1815.2],[560.0,1814.1],[570.0,1814.6],[580.0,1811.2],[590.0,1814.1],[600.0,1813.5],[610.0,1812.4],[620.0,1809.0],[630.0,1813.5],[640.0,1811.8],[650.0,1815.8],[660.0,1816.3],[670.0,1815.2],[680.0,1815.2],[690.0,1815.8],[700.0,1816.3],[710.0,1818.6],[720.0,1816.9],[730.0,1814.6],[740.0,1816.3],[750.0,1814.1],[760.0,1812.9],[770.0,1812.9],[780.0,1811.2],[790.0,1812.4],[800.0,1815.2],[810.0,1812.4],[820.0,1813.5],[830.0,1811.8],[840.0,1811.2],[850.0,1812.9],[860.0,1809.0],[870.0,1811.2],[880.0,1816.9],[890.0,1815.2],[900.0,1813.5],[910.0,1812.9],
+[920.0,1815.8],[930.0,1819.1],[940.0,1818.0],[950.0,1816.3],[960.0,1818.0],[970.0,1815.2],[980.0,1818.6],[990.0,1815.2],[1000.0,1822.5],[1010.0,1822.5],[1020.0,1816.9],[1030.0,1816.3],[1040.0,1817.4],[1050.0,1816.9],[1060.0,1811.8],[1070.0,1818.6],[1080.0,1818.6],[1090.0,1815.2],[1100.0,1816.9],[1110.0,1815.8],[1120.0,1815.8],[1130.0,1816.9],[1140.0,1815.2],[1150.0,1815.2],[1160.0,1818.0],[1170.0,1817.4],[1180.0,1818.0],[1190.0,1819.1],[1200.0,1817.4],[1210.0,1822.5],[1220.0,1313.9],[1230.0,1694.5],[1240.0,1891.3],[1250.0,1813.5],[1260.0,1827.0],[1270.0,1831.5],[1280.0,1827.6],[1290.0,1832.1],[1300.0,1831.5],[1310.0,1829.9],[1320.0,1834.4],[1330.0,1831.0],[1340.0,1827.6],
+[1350.0,1829.3],[1360.0,1832.1],[1370.0,1834.9],[1380.0,1834.9],[1390.0,1839.4],[1400.0,1830.4],[1410.0,1832.7],[1420.0,1833.8],[1430.0,1847.9],[1440.0,1770.6],[1450.0,1668.0],[1460.0,1279.5],[1470.0,1138.5],[1480.0,1724.4],[1490.0,1571.0],[1500.0,1740.8],[1510.0,1326.8],[1520.0,1661.2],[1530.0,1859.2],[1540.0,1851.8],[1550.0,1885.7],[1560.0,1876.1],[1570.0,1860.3],[1580.0,1870.5],[1590.0,1851.8],[1600.0,1853.5],[1610.0,1863.7],[1620.0,1854.1],[1630.0,1855.8],[1640.0,1858.6],[1650.0,1857.5],[1660.0,1858.6],[1670.0,1841.7],[1680.0,1824.2],[1690.0,1817.4],[1700.0,1813.5],[1710.0,1814.6],[1720.0,1809.0],[1730.0,1806.2],[1740.0,1803.9],[1750.0,1804.5],[1760.0,1798.8],[1770.0,1793.8],[1780.0,1792.1],[1790.0,1793.2],[1800.0,1792.6],[1810.0,1787.0],[1820.0,1787.0],[1830.0,1786.4],[1840.0,1788.1],[1850.0,1784.7],
+[1860.0,1781.4],[1870.0,1780.2],[1880.0,1777.4],[1890.0,1775.7],[1900.0,1775.2],[1910.0,1775.2],[1920.0,1776.8],[1930.0,1778.0],[1940.0,1775.7],[1950.0,1769.5],[1960.0,1769.5],[1970.0,1768.4],[1980.0,1771.2],[1990.0,1770.1],[2000.0,1769.5],[2010.0,1767.8],[2020.0,1764.4],[2030.0,1764.4],[2040.0,1765.0],[2050.0,1762.7],[2060.0,1765.6],[2070.0,1763.9],[2080.0,1762.2],[2090.0,1759.9],[2100.0,1759.9],[2110.0,1762.2],[2120.0,1762.7],[2130.0,1762.2],[2140.0,1762.7],[2150.0,1759.4],[2160.0,1761.1],[2170.0,1761.6],[2180.0,1763.3],[2190.0,1765.0],[2200.0,1768.4],[2210.0,1763.3],[2220.0,1762.7],[2230.0,1759.9],[2240.0,1762.7],[2250.0,1764.4],[2260.0,1765.6],[2270.0,1766.7],[2280.0,1763.3],[2290.0,1763.3],[2300.0,1763.9],[2310.0,1762.7],[2320.0,1762.7],[2330.0,1767.3],[2340.0,1767.8],[2350.0,1765.6],[2360.0,1766.1],
+[2370.0,1766.7],[2380.0,1766.7],[2390.0,1765.0],[2400.0,1765.0],[2410.0,1765.0],[2420.0,1765.0],[2430.0,1765.6],[2440.0,1765.6],[2450.0,1763.3],[2460.0,1767.8],[2470.0,1767.8],[2480.0,1765.0],[2490.0,1761.6],[2500.0,1761.6],[2510.0,1762.7],[2520.0,1763.3],[2530.0,1763.3],[2540.0,1763.9],[2550.0,1765.0],[2560.0,1766.1],[2570.0,1765.6],[2580.0,1766.7],[2590.0,1765.6],[2600.0,1768.4],[2610.0,1766.7],[2620.0,1764.4],[2630.0,1764.4],[2640.0,1766.1],[2650.0,1766.1],[2660.0,1766.1],[2670.0,1763.9],[2680.0,1765.6],[2690.0,1765.6],[2700.0,1765.6],[2710.0,1765.0],[2720.0,1765.6],[2730.0,1766.1],[2740.0,1767.3],[2750.0,1766.7],[2760.0,1762.2],[2770.0,1754.9],[2780.0,1750.9],[2790.0,1750.3],[2800.0,1748.1]];
+var ERPM = [[0.0,1503.],[10.0,3006.],[20.0,3005.],[30.0,1505.],[40.0,1505.],[50.0,3015.],[60.0,1503.],[70.0,3006.],[80.0,3006.],[90.0,1503.],[100.0,1503.],[110.0,1503.],[120.0,1500.],[130.0,1503.],[140.0,752.],[150.0,1503.],[160.0,1503.],[170.0,1503.],[180.0,1505.],[190.0,1503.],[200.0,1503.],[210.0,3006.],[220.0,1503.],[230.0,1503.],[240.0,1502.],[250.0,1503.],[260.0,3005.],[270.0,1500.],[280.0,1502.],[290.0,1502.],[300.0,1502.],[310.0,752.],[320.0,1502.],[330.0,1502.],[340.0,1504.],[350.0,1502.],[360.0,1502.],[370.0,1501.],[380.0,1502.],[390.0,501.],[400.0,1501.],[410.0,501.],[420.0,751.],[430.0,751.],[440.0,1503.],[450.0,750.],[460.0,1501.],[470.0,1503.],[480.0,501.],[490.0,1501.],[500.0,1501.],[510.0,501.],[520.0,1501.],[530.0,751.],[540.0,1501.],[550.0,1501.],[560.0,1501.],[570.0,1501.],[580.0,1504.],[590.0,1504.],
+[600.0,1502.],[610.0,751.],[620.0,1501.],[630.0,1501.],[640.0,1501.],[650.0,1501.],[660.0,1504.],[670.0,1502.],[680.0,751.],[690.0,751.],[700.0,1501.],[710.0,751.],[720.0,1501.],[730.0,1502.],[740.0,1502.],[750.0,751.],[760.0,376.],[770.0,1502.],[780.0,1501.],[790.0,1502.],[800.0,1499.],[810.0,1499.],[820.0,750.],[830.0,1499.],[840.0,501.],[850.0,300.],[860.0,1504.],[870.0,751.],[880.0,1502.],[890.0,1502.],[900.0,1502.],[910.0,751.],[920.0,501.],[930.0,1502.],[940.0,751.],[950.0,1502.],[960.0,501.],[970.0,1504.],[980.0,751.],[990.0,1502.],[1000.0,751.],[1010.0,1502.],[1020.0,500.],[1030.0,751.],[1040.0,1502.],[1050.0,751.],[1060.0,1502.],[1070.0,1502.],[1080.0,751.],[1090.0,751.],[1100.0,1502.],[1110.0,750.],[1120.0,1502.],[1130.0,375.],[1140.0,1502.],[1150.0,300.],[1160.0,375.],[1170.0,1499.],[1180.0,300.],
+[1190.0,375.],[1200.0,1502.],[1210.0,373.],[1220.0,368.],[1230.0,502.],[1240.0,495.],[1250.0,1475.],[1260.0,1468.],[1270.0,732.],[1280.0,1461.],[1290.0,1458.],[1300.0,1456.],[1310.0,1456.],[1320.0,1451.],[1330.0,1453.],[1340.0,1453.],[1350.0,726.],[1360.0,1451.],[1370.0,1451.],[1380.0,1451.],[1390.0,1451.],[1400.0,1449.],[1410.0,1449.],[1420.0,1449.],[1430.0,1944.],[1440.0,1197.],[1450.0,786.],[1460.0,0.],[1470.0,0.],[1480.0,1079.],[1490.0,1070.],[1500.0,1085.],[1510.0,923.],[1520.0,1121.],[1530.0,1293.],[1540.0,1762.],[1550.0,367.],[1560.0,352.],[1570.0,186.],[1580.0,892.],[1590.0,892.],[1600.0,892.],[1610.0,892.],[1620.0,892.],[1630.0,892.],[1640.0,892.],[1650.0,892.],[1660.0,892.],[1670.0,892.],[1680.0,0.],[1690.0,0.],[1700.0,0.],[1710.0,0.],[1720.0,0.],[1730.0,0.],[1740.0,0.],[1750.0,0.],[1760.0,0.],
+[1770.0,0.],[1780.0,0.],[1790.0,0.],[1800.0,0.],[1810.0,0.],[1820.0,0.],[1830.0,0.],[1840.0,0.],[1850.0,0.],[1860.0,0.],[1870.0,0.],[1880.0,0.],[1890.0,0.],[1900.0,0.],[1910.0,0.],[1920.0,0.],[1930.0,0.],[1940.0,0.],[1950.0,0.],[1960.0,0.],[1970.0,0.],[1980.0,0.],[1990.0,0.],[2000.0,0.],[2010.0,0.],[2020.0,0.],[2030.0,0.],[2040.0,0.],[2050.0,0.],[2060.0,0.],[2070.0,0.],[2080.0,0.],[2090.0,0.],[2100.0,0.],[2110.0,0.],[2120.0,0.],[2130.0,0.],[2140.0,0.],[2150.0,0.],[2160.0,0.],[2170.0,0.],[2180.0,0.],[2190.0,0.],[2200.0,0.],[2210.0,0.],[2220.0,0.],[2230.0,0.],[2240.0,0.],[2250.0,0.],[2260.0,0.],[2270.0,0.],[2280.0,0.],[2290.0,0.],[2300.0,0.],[2310.0,0.],[2320.0,0.],[2330.0,0.],[2340.0,0.],[2350.0,0.],[2360.0,0.],[2370.0,0.],[2380.0,0.],[2390.0,0.],[2400.0,0.],[2410.0,0.],[2420.0,0.],[2430.0,0.],[2440.0,0.],
+[2450.0,0.],[2460.0,0.],[2470.0,0.],[2480.0,0.],[2490.0,0.],[2500.0,0.],[2510.0,0.],[2520.0,0.],[2530.0,0.],[2540.0,0.],[2550.0,0.],[2560.0,0.],[2570.0,0.],[2580.0,0.],[2590.0,0.],[2600.0,0.],[2610.0,0.],[2620.0,0.],[2630.0,0.],[2640.0,0.],[2650.0,0.],[2660.0,0.],[2670.0,0.],[2680.0,0.],[2690.0,0.],[2700.0,0.],[2710.0,0.],[2720.0,0.],[2730.0,0.],[2740.0,0.],[2750.0,0.],[2760.0,0.],[2770.0,0.],[2780.0,0.],[2790.0,0.],[2800.0,0.]];
+</script>
+      
+<p class="description">The cursor plugin can also draw horizontal and vertical tracking lines across the plot to the cursor location.  These are enabled with the "showHorizontalLine" and "showVerticalLine" options to the cursor plugin.</p>
+
+<p class="description">The vertical tracking line can interactively detect intersecting data points and display these data values in the legend.  This functionality is enabled with the "showCursorLegend" option.  The tracking lines and data display work seamlessly with plot zooming as well.</p>
+
+<p class="description">The data displayed by the vertical line represent the actual x,y data of the intersecting data point.  When the line is not near a data point, no data will be displayed.  You can control how close the line must be to a point to display a data value with the "intersectionThreshold" option.</p>
+
+<p class="description">If markers are visible at the data points (as with the first example on this page), the intersectionThreshold is added to the size of the marker and the "neighborThreshold" of the series to determine how close to the actual point the line must be to trigger an interseciton.  All values are in pixels.</p>
+
+<p class="description">If no markers are shown, the marker size and neighborThreshold do not apply.  The line must be within the intersectionThreshold of the data point to be detected.  In general, if no markers are present, the intersectionThreshold should be >= 1 or else points may not be detected.</p>
+
+<div class="jqPlot" id="chart1" style="height:380px; width:480px;"></div>
+<button class="button-reset" onclick="plot.resetZoom()">Reset Zoom</button>
+
+<pre class="prettyprint plot">
+plot = $.jqplot('chart1', [goog], { 
+    title: 'Google, Inc.', 
+    series: [{ 
+        label: 'Google, Inc.', 
+        neighborThreshold: -1 
+    }], 
+    axes: { 
+        xaxis: { 
+            renderer:$.jqplot.DateAxisRenderer, 
+            min:'August 1, 2007', 
+            tickInterval: '4 months', 
+            tickOptions:{formatString:'%Y/%#m/%#d'} 
+        }, 
+        yaxis: { 
+            renderer: $.jqplot.LogAxisRenderer, 
+            tickOptions:{formatString:'$%.2f'} 
+        } 
+    }, 
+    cursor: {  
+      showVerticalLine:true,
+      showHorizontalLine:false,
+      showCursorLegend:true,
+      showTooltip: false,
+      zoom:true,
+    } 
+});
+</pre>
+      
+<p class="description">Data detection also works with multiple lines and multiple axes.  By default the cursor legend shows data in the same format as the axes display their values.  The format string can be customized with the "cursorLegendFormatString" option.  The plot below has the horizontal tracking line displayed and has the default double click zoom reset disabled so you have to click the "Reset Zoom" button to reset the chart.</p>
+
+<div class="jqPlot" id="chart2" style="height:380px; width:600px;"></div>
+<button class="button-reset" onclick="plot1.resetZoom()">Reset Zoom</button>
+
+<pre class="prettyprint plot">
+plot1 = $.jqplot('chart2', [InPr, OutPr, ERPM], { 
+    title:'Plot with Zooming and 3 Y Axes', 
+    seriesDefaults: {showMarker:false}, 
+    series:[
+        {label:'InPr'},
+        {label:'OutPr', yaxis:'y2axis'}, 
+        {label:'ERPM', yaxis:'y3axis'}
+    ], 
+    cursor: {
+      showVerticalLine: true,
+      showHorizontalLine: true,
+      showCursorLegend: true,
+      showTooltip: false,
+      zoom: true,
+      dblClickReset: false,
+      intersectionThreshold: 6
+    }, 
+    legend: {location:'n'},
+    axesDefaults:{useSeriesColor: true, tickOptions:{formatString:'%d'}}, 
+    axes:{
+        xaxis:{min:0, max:1600}, 
+        yaxis:{min:0, max:600},  
+        y2axis:{
+            min:1000, 
+            max:2200, 
+            numberTicks:9, 
+            tickOptions:{showGridline:false}
+        }, 
+        y3axis:{}
+    } 
+});
+</pre>
+        
+<?php
+  require('closer.php');
+?>
               <tr class="description"><td><a href="highlighterTests.php">Data Point Highlighter</a></td></tr>
               <tr class="description"><td><a href="OHLCTests.php">Open Hi Low Close and Candlestick Charts</a></td></tr>
               <tr class="description"><td><a href="zoomTests.php">Plot Zooming</a></td></tr>
+              <tr class="description"><td><a href="zoomProxy.php">Zooming by Remote Control</a></td></tr>
+              <tr class="description"><td><a href="DataTracking.php">Cursor Lines and Data Tracking</a></td></tr>
               <tr class="description"><td><a href="categoryAxisTests.php">Category Axes</a></td></tr>
               <tr class="description"><td><a href="barRendererTests.php">Bar Charts</a></td></tr>
               <tr class="description"><td><a href="dragableTests.php">Drag and Drop and Trend Lines</a></td></tr>
   </script>
   
 <?php
-  $pages = array('coretests.php', 'axisAutoscaleTests.php', 'axisLabelTests.php', 'pieTests.php', 'multipleYAxesTests.php', 'logAxisTests.php', 'dateAxisTests.php', 'highlighterTests.php', 'OHLCTests.php', 'zoomTests.php', 'categoryAxisTests.php', 'barRendererTests.php', 'dragableTests.php', 'stackedTests.php', 'pointLabelTests.php', 'canvasAxisTests.php');
+  $pages = array('coretests.php', 'axisAutoscaleTests.php', 'axisLabelTests.php', 'pieTests.php', 'multipleYAxesTests.php', 'logAxisTests.php', 'dateAxisTests.php', 'highlighterTests.php', 'OHLCTests.php', 'zoomTests.php', 'zoomProxy.php', 'dataTracking.php', 'categoryAxisTests.php', 'barRendererTests.php', 'dragableTests.php', 'stackedTests.php', 'pointLabelTests.php', 'canvasAxisTests.php');
         
   $len = count($pages);
   $parts = explode("/", $_SERVER["REQUEST_URI"]);

tests/unittests.css

   text-align: left;
   padding-left: 36px;
   top: 18px;
+}
+
+.button-reset {
+    position:relative;
+    left: 550px;
 }

tests/zoomProxy.php

+<?php
+  $title = "jqPlot Zoom Proxy";
+  $jspec_title = "jqPlot Zoom Proxy Examples";
+  $jqplot_js_includes = array();
+  $jqplot_js_includes[] = "../src/plugins/jqplot.cursor.js";
+  $jqplot_js_includes[] = "../src/plugins/jqplot.dateAxisRenderer.js";
+  $jqplot_js_includes[] = "../src/plugins/jqplot.ohlcRenderer.js";
+  require("opener.php");
+?>
+<script language="javascript" type="text/javascript">
+var InPr = [[0.0,85.0],[10.0,87.4],[20.0,90.0],[30.0,91.3],[40.0,93.5],[50.0,94.1],[60.0,95.4],[70.0,95.8],[80.0,96.1],[90.0,97.6],[100.0,97.4],[110.0,97.7],[120.0,97.9],[130.0,98.3],[140.0,97.9],[150.0,98.4],[160.0,99.8],[170.0,100.5],[180.0,100.4],[190.0,100.3],[200.0,102.9],[210.0,104.1],[220.0,104.4],[230.0,103.9],[240.0,104.4],[250.0,104.0],[260.0,103.9],[270.0,103.5],[280.0,105.4],[290.0,105.7],[300.0,105.7],[310.0,105.3],[320.0,105.0],[330.0,105.1],[340.0,105.0],[350.0,105.1],[360.0,104.7],[370.0,104.4],[380.0,104.3],[390.0,105.7],[400.0,106.4],[410.0,105.7],[420.0,105.4],[430.0,105.7],[440.0,105.7],[450.0,105.9],[460.0,105.3],[470.0,105.7],[480.0,105.8],[490.0,105.4],[500.0,105.4],[510.0,105.4],[520.0,105.6],[530.0,104.9],[540.0,104.8],[550.0,105.2],[560.0,105.2],[570.0,105.1],[580.0,104.8],[590.0,104.6],[600.0,104.3],[610.0,104.2],[620.0,104.1],[630.0,104.7],[640.0,104.6],[650.0,104.7],[660.0,104.6],[670.0,104.4],[680.0,106.8],[690.0,106.6],
+[700.0,106.3],[710.0,107.1],[720.0,106.2],[730.0,106.1],[740.0,106.7],[750.0,106.5],[760.0,106.8],[770.0,106.7],[780.0,106.6],[790.0,106.7],[800.0,106.8],[810.0,106.4],[820.0,106.7],[830.0,106.5],[840.0,106.9],[850.0,106.7],[860.0,106.7],[870.0,106.8],[880.0,107.1],[890.0,106.6],[900.0,106.8],[910.0,106.9],[920.0,106.8],[930.0,107.3],[940.0,106.9],[950.0,106.5],[960.0,107.2],[970.0,107.0],[980.0,106.9],[990.0,107.2],[1000.0,107.7],[1010.0,107.6],[1020.0,107.1],[1030.0,107.6],[1040.0,107.2],[1050.0,107.2],[1060.0,107.5],[1070.0,107.7],[1080.0,107.3],[1090.0,107.0],[1100.0,107.7],[1110.0,107.0],[1120.0,107.8],[1130.0,107.8],[1140.0,107.7],[1150.0,107.4],[1160.0,107.8],[1170.0,107.8],[1180.0,107.6],[1190.0,107.7],[1200.0,107.4],[1210.0,108.0],[1220.0,372.6],[1230.0,90.4],[1240.0,125.0],[1250.0,110.4],[1260.0,108.5],[1270.0,109.7],[1280.0,108.9],[1290.0,109.6],[1300.0,110.2],[1310.0,110.0],[1320.0,110.7],[1330.0,110.3],[1340.0,110.6],[1350.0,110.5],
+[1360.0,110.8],[1370.0,110.6],[1380.0,111.0],[1390.0,113.0],[1400.0,112.1],[1410.0,112.3],[1420.0,112.3],[1430.0,137.6],[1440.0,179.0],[1450.0,216.9],[1460.0,399.2],[1470.0,433.6],[1480.0,203.5],[1490.0,223.3],[1500.0,229.8],[1510.0,416.9],[1520.0,198.8],[1530.0,208.7],[1540.0,172.0],[1550.0,145.7],[1560.0,119.2],[1570.0,104.8],[1580.0,100.1],[1590.0,97.7],[1600.0,97.2],[1610.0,98.8],[1620.0,98.1],[1630.0,98.1],[1640.0,98.8],[1650.0,98.7],[1660.0,98.5],[1670.0,98.8],[1680.0,98.2],[1690.0,98.2],[1700.0,97.7],[1710.0,98.1],[1720.0,97.1],[1730.0,97.6],[1740.0,97.7],[1750.0,97.4],[1760.0,97.6],[1770.0,98.0],[1780.0,97.6],[1790.0,97.7],[1800.0,97.8],[1810.0,97.6],[1820.0,97.9],
+[1830.0,97.9],[1840.0,97.8],[1850.0,97.7],[1860.0,97.7],[1870.0,97.7],[1880.0,97.4],[1890.0,97.3],[1900.0,97.2],[1910.0,96.9],[1920.0,97.2],[1930.0,97.4],[1940.0,97.7],[1950.0,97.1],[1960.0,97.1],[1970.0,96.6],[1980.0,96.7],[1990.0,96.5],[2000.0,97.2],[2010.0,96.6],[2020.0,96.4],[2030.0,96.7],[2040.0,96.8],[2050.0,96.6],[2060.0,96.6],[2070.0,96.5],[2080.0,96.6],[2090.0,96.4],[2100.0,96.6],[2110.0,96.5],[2120.0,96.2],[2130.0,96.2],[2140.0,96.5],[2150.0,96.0],[2160.0,96.2],[2170.0,96.3],[2180.0,96.4],[2190.0,97.0],[2200.0,96.8],[2210.0,96.5],[2220.0,96.6],[2230.0,96.1],[2240.0,96.1],[2250.0,96.6],[2260.0,96.5],[2270.0,96.6],[2280.0,96.4],[2290.0,96.5],[2300.0,96.6],[2310.0,96.9],[2320.0,96.8],[2330.0,96.9],[2340.0,97.2],[2350.0,96.6],[2360.0,97.3],[2370.0,97.4],[2380.0,97.1],[2390.0,97.1],[2400.0,96.8],[2410.0,97.0],[2420.0,97.1],[2430.0,97.1],[2440.0,97.0],[2450.0,97.1],[2460.0,97.1],[2470.0,97.5],[2480.0,96.9],[2490.0,96.8],[2500.0,96.8],[2510.0,97.0],[2520.0,96.7],[2530.0,97.0],[2540.0,97.1],[2550.0,97.2],[2560.0,97.1],[2570.0,97.1],[2580.0,97.1],[2590.0,96.8],[2600.0,97.2],[2610.0,97.1],[2620.0,97.3],[2630.0,97.1],[2640.0,97.1],[2650.0,97.1],[2660.0,97.0],[2670.0,96.8],[2680.0,97.3],[2690.0,97.4],[2700.0,97.3],[2710.0,97.2],[2720.0,97.1],[2730.0,97.2],[2740.0,97.1],[2750.0,97.1],[2760.0,97.1],[2770.0,96.8],[2780.0,96.4],[2790.0,96.6],[2800.0,96.6]];
+var OutPr = [[0.0,1788.1],[10.0,1803.3],[20.0,1807.3],[30.0,1813.5],[40.0,1822.0],[50.0,1820.3],[60.0,1823.7],[70.0,1823.7],[80.0,1825.3],[90.0,1831.0],[100.0,1832.1],[110.0,1834.4],[120.0,1834.4],[130.0,1831.5],[140.0,1832.7],[150.0,1834.4],[160.0,1831.5],[170.0,1832.1],[180.0,1830.4],[190.0,1831.0],[200.0,1830.4],[210.0,1829.3],[220.0,1829.9],[230.0,1828.2],[240.0,1831.0],[250.0,1828.7],[260.0,1827.0],[270.0,1829.3],[280.0,1826.5],[290.0,1824.8],[300.0,1824.2],[310.0,1823.7],[320.0,1823.7],[330.0,1823.7],[340.0,1825.3],[350.0,1822.0],[360.0,1820.3],[370.0,1818.0],[380.0,1819.1],[390.0,1816.3],[400.0,1820.8],[410.0,1820.8],[420.0,1819.7],[430.0,1820.3],[440.0,1819.7],[450.0,1819.1],
+[460.0,1819.1],[470.0,1821.4],[480.0,1821.4],[490.0,1818.0],[500.0,1816.9],[510.0,1819.1],[520.0,1818.6],[530.0,1816.9],[540.0,1816.9],[550.0,1815.2],[560.0,1814.1],[570.0,1814.6],[580.0,1811.2],[590.0,1814.1],[600.0,1813.5],[610.0,1812.4],[620.0,1809.0],[630.0,1813.5],[640.0,1811.8],[650.0,1815.8],[660.0,1816.3],[670.0,1815.2],[680.0,1815.2],[690.0,1815.8],[700.0,1816.3],[710.0,1818.6],[720.0,1816.9],[730.0,1814.6],[740.0,1816.3],[750.0,1814.1],[760.0,1812.9],[770.0,1812.9],[780.0,1811.2],[790.0,1812.4],[800.0,1815.2],[810.0,1812.4],[820.0,1813.5],[830.0,1811.8],[840.0,1811.2],[850.0,1812.9],[860.0,1809.0],[870.0,1811.2],[880.0,1816.9],[890.0,1815.2],[900.0,1813.5],[910.0,1812.9],
+[920.0,1815.8],[930.0,1819.1],[940.0,1818.0],[950.0,1816.3],[960.0,1818.0],[970.0,1815.2],[980.0,1818.6],[990.0,1815.2],[1000.0,1822.5],[1010.0,1822.5],[1020.0,1816.9],[1030.0,1816.3],[1040.0,1817.4],[1050.0,1816.9],[1060.0,1811.8],[1070.0,1818.6],[1080.0,1818.6],[1090.0,1815.2],[1100.0,1816.9],[1110.0,1815.8],[1120.0,1815.8],[1130.0,1816.9],[1140.0,1815.2],[1150.0,1815.2],[1160.0,1818.0],[1170.0,1817.4],[1180.0,1818.0],[1190.0,1819.1],[1200.0,1817.4],[1210.0,1822.5],[1220.0,1313.9],[1230.0,1694.5],[1240.0,1891.3],[1250.0,1813.5],[1260.0,1827.0],[1270.0,1831.5],[1280.0,1827.6],[1290.0,1832.1],[1300.0,1831.5],[1310.0,1829.9],[1320.0,1834.4],[1330.0,1831.0],[1340.0,1827.6],
+[1350.0,1829.3],[1360.0,1832.1],[1370.0,1834.9],[1380.0,1834.9],[1390.0,1839.4],[1400.0,1830.4],[1410.0,1832.7],[1420.0,1833.8],[1430.0,1847.9],[1440.0,1770.6],[1450.0,1668.0],[1460.0,1279.5],[1470.0,1138.5],[1480.0,1724.4],[1490.0,1571.0],[1500.0,1740.8],[1510.0,1326.8],[1520.0,1661.2],[1530.0,1859.2],[1540.0,1851.8],[1550.0,1885.7],[1560.0,1876.1],[1570.0,1860.3],[1580.0,1870.5],[1590.0,1851.8],[1600.0,1853.5],[1610.0,1863.7],[1620.0,1854.1],[1630.0,1855.8],[1640.0,1858.6],[1650.0,1857.5],[1660.0,1858.6],[1670.0,1841.7],[1680.0,1824.2],[1690.0,1817.4],[1700.0,1813.5],[1710.0,1814.6],[1720.0,1809.0],[1730.0,1806.2],[1740.0,1803.9],[1750.0,1804.5],[1760.0,1798.8],[1770.0,1793.8],[1780.0,1792.1],[1790.0,1793.2],[1800.0,1792.6],[1810.0,1787.0],[1820.0,1787.0],[1830.0,1786.4],[1840.0,1788.1],[1850.0,1784.7],
+[1860.0,1781.4],[1870.0,1780.2],[1880.0,1777.4],[1890.0,1775.7],[1900.0,1775.2],[1910.0,1775.2],[1920.0,1776.8],[1930.0,1778.0],[1940.0,1775.7],[1950.0,1769.5],[1960.0,1769.5],[1970.0,1768.4],[1980.0,1771.2],[1990.0,1770.1],[2000.0,1769.5],[2010.0,1767.8],[2020.0,1764.4],[2030.0,1764.4],[2040.0,1765.0],[2050.0,1762.7],[2060.0,1765.6],[2070.0,1763.9],[2080.0,1762.2],[2090.0,1759.9],[2100.0,1759.9],[2110.0,1762.2],[2120.0,1762.7],[2130.0,1762.2],[2140.0,1762.7],[2150.0,1759.4],[2160.0,1761.1],[2170.0,1761.6],[2180.0,1763.3],[2190.0,1765.0],[2200.0,1768.4],[2210.0,1763.3],[2220.0,1762.7],[2230.0,1759.9],[2240.0,1762.7],[2250.0,1764.4],[2260.0,1765.6],[2270.0,1766.7],[2280.0,1763.3],[2290.0,1763.3],[2300.0,1763.9],[2310.0,1762.7],[2320.0,1762.7],[2330.0,1767.3],[2340.0,1767.8],[2350.0,1765.6],[2360.0,1766.1],
+[2370.0,1766.7],[2380.0,1766.7],[2390.0,1765.0],[2400.0,1765.0],[2410.0,1765.0],[2420.0,1765.0],[2430.0,1765.6],[2440.0,1765.6],[2450.0,1763.3],[2460.0,1767.8],[2470.0,1767.8],[2480.0,1765.0],[2490.0,1761.6],[2500.0,1761.6],[2510.0,1762.7],[2520.0,1763.3],[2530.0,1763.3],[2540.0,1763.9],[2550.0,1765.0],[2560.0,1766.1],[2570.0,1765.6],[2580.0,1766.7],[2590.0,1765.6],[2600.0,1768.4],[2610.0,1766.7],[2620.0,1764.4],[2630.0,1764.4],[2640.0,1766.1],[2650.0,1766.1],[2660.0,1766.1],[2670.0,1763.9],[2680.0,1765.6],[2690.0,1765.6],[2700.0,1765.6],[2710.0,1765.0],[2720.0,1765.6],[2730.0,1766.1],[2740.0,1767.3],[2750.0,1766.7],[2760.0,1762.2],[2770.0,1754.9],[2780.0,1750.9],[2790.0,1750.3],[2800.0,1748.1]];
+var ERPM = [[0.0,1503.],[10.0,3006.],[20.0,3005.],[30.0,1505.],[40.0,1505.],[50.0,3015.],[60.0,1503.],[70.0,3006.],[80.0,3006.],[90.0,1503.],[100.0,1503.],[110.0,1503.],[120.0,1500.],[130.0,1503.],[140.0,752.],[150.0,1503.],[160.0,1503.],[170.0,1503.],[180.0,1505.],[190.0,1503.],[200.0,1503.],[210.0,3006.],[220.0,1503.],[230.0,1503.],[240.0,1502.],[250.0,1503.],[260.0,3005.],[270.0,1500.],[280.0,1502.],[290.0,1502.],[300.0,1502.],[310.0,752.],[320.0,1502.],[330.0,1502.],[340.0,1504.],[350.0,1502.],[360.0,1502.],[370.0,1501.],[380.0,1502.],[390.0,501.],[400.0,1501.],[410.0,501.],[420.0,751.],[430.0,751.],[440.0,1503.],[450.0,750.],[460.0,1501.],[470.0,1503.],[480.0,501.],[490.0,1501.],[500.0,1501.],[510.0,501.],[520.0,1501.],[530.0,751.],[540.0,1501.],[550.0,1501.],[560.0,1501.],[570.0,1501.],[580.0,1504.],[590.0,1504.],
+[600.0,1502.],[610.0,751.],[620.0,1501.],[630.0,1501.],[640.0,1501.],[650.0,1501.],[660.0,1504.],[670.0,1502.],[680.0,751.],[690.0,751.],[700.0,1501.],[710.0,751.],[720.0,1501.],[730.0,1502.],[740.0,1502.],[750.0,751.],[760.0,376.],[770.0,1502.],[780.0,1501.],[790.0,1502.],[800.0,1499.],[810.0,1499.],[820.0,750.],[830.0,1499.],[840.0,501.],[850.0,300.],[860.0,1504.],[870.0,751.],[880.0,1502.],[890.0,1502.],[900.0,1502.],[910.0,751.],[920.0,501.],[930.0,1502.],[940.0,751.],[950.0,1502.],[960.0,501.],[970.0,1504.],[980.0,751.],[990.0,1502.],[1000.0,751.],[1010.0,1502.],[1020.0,500.],[1030.0,751.],[1040.0,1502.],[1050.0,751.],[1060.0,1502.],[1070.0,1502.],[1080.0,751.],[1090.0,751.],[1100.0,1502.],[1110.0,750.],[1120.0,1502.],[1130.0,375.],[1140.0,1502.],[1150.0,300.],[1160.0,375.],[1170.0,1499.],[1180.0,300.],
+[1190.0,375.],[1200.0,1502.],[1210.0,373.],[1220.0,368.],[1230.0,502.],[1240.0,495.],[1250.0,1475.],[1260.0,1468.],[1270.0,732.],[1280.0,1461.],[1290.0,1458.],[1300.0,1456.],[1310.0,1456.],[1320.0,1451.],[1330.0,1453.],[1340.0,1453.],[1350.0,726.],[1360.0,1451.],[1370.0,1451.],[1380.0,1451.],[1390.0,1451.],[1400.0,1449.],[1410.0,1449.],[1420.0,1449.],[1430.0,1944.],[1440.0,1197.],[1450.0,786.],[1460.0,0.],[1470.0,0.],[1480.0,1079.],[1490.0,1070.],[1500.0,1085.],[1510.0,923.],[1520.0,1121.],[1530.0,1293.],[1540.0,1762.],[1550.0,367.],[1560.0,352.],[1570.0,186.],[1580.0,892.],[1590.0,892.],[1600.0,892.],[1610.0,892.],[1620.0,892.],[1630.0,892.],[1640.0,892.],[1650.0,892.],[1660.0,892.],[1670.0,892.],[1680.0,0.],[1690.0,0.],[1700.0,0.],[1710.0,0.],[1720.0,0.],[1730.0,0.],[1740.0,0.],[1750.0,0.],[1760.0,0.],
+[1770.0,0.],[1780.0,0.],[1790.0,0.],[1800.0,0.],[1810.0,0.],[1820.0,0.],[1830.0,0.],[1840.0,0.],[1850.0,0.],[1860.0,0.],[1870.0,0.],[1880.0,0.],[1890.0,0.],[1900.0,0.],[1910.0,0.],[1920.0,0.],[1930.0,0.],[1940.0,0.],[1950.0,0.],[1960.0,0.],[1970.0,0.],[1980.0,0.],[1990.0,0.],[2000.0,0.],[2010.0,0.],[2020.0,0.],[2030.0,0.],[2040.0,0.],[2050.0,0.],[2060.0,0.],[2070.0,0.],[2080.0,0.],[2090.0,0.],[2100.0,0.],[2110.0,0.],[2120.0,0.],[2130.0,0.],[2140.0,0.],[2150.0,0.],[2160.0,0.],[2170.0,0.],[2180.0,0.],[2190.0,0.],[2200.0,0.],[2210.0,0.],[2220.0,0.],[2230.0,0.],[2240.0,0.],[2250.0,0.],[2260.0,0.],[2270.0,0.],[2280.0,0.],[2290.0,0.],[2300.0,0.],[2310.0,0.],[2320.0,0.],[2330.0,0.],[2340.0,0.],[2350.0,0.],[2360.0,0.],[2370.0,0.],[2380.0,0.],[2390.0,0.],[2400.0,0.],[2410.0,0.],[2420.0,0.],[2430.0,0.],[2440.0,0.],
+[2450.0,0.],[2460.0,0.],[2470.0,0.],[2480.0,0.],[2490.0,0.],[2500.0,0.],[2510.0,0.],[2520.0,0.],[2530.0,0.],[2540.0,0.],[2550.0,0.],[2560.0,0.],[2570.0,0.],[2580.0,0.],[2590.0,0.],[2600.0,0.],[2610.0,0.],[2620.0,0.],[2630.0,0.],[2640.0,0.],[2650.0,0.],[2660.0,0.],[2670.0,0.],[2680.0,0.],[2690.0,0.],[2700.0,0.],[2710.0,0.],[2720.0,0.],[2730.0,0.],[2740.0,0.],[2750.0,0.],[2760.0,0.],[2770.0,0.],[2780.0,0.],[2790.0,0.],[2800.0,0.]];
+
+var aapl = [["9/16/2009", 177.99, 182.75, 177.88, 181.87],["9/15/2009", 174.04, 175.65, 173.59, 175.16],["9/14/2009", 170.83, 173.9, 170.25, 173.72],["9/11/2009", 172.91, 173.18, 170.87, 172.16],["9/10/2009", 172.06, 173.25, 170.81, 172.56],["9/9/2009", 172.78, 174.47, 169.7, 171.14],["9/8/2009", 172.98, 173.14, 172, 172.93],["9/4/2009", 167.28, 170.7, 167.09, 170.31],["9/3/2009", 166.44, 167.1, 165, 166.55],["9/2/2009", 164.62, 167.61, 164.11, 165.18],["9/1/2009", 167.99, 170, 164.94, 165.3],["8/31/2009", 168.16, 168.85, 166.5, 168.21],["8/28/2009", 172.27, 172.49, 168.53, 170.05],["8/27/2009", 168.75, 169.57, 164.83, 169.45],["8/26/2009", 168.92, 169.55, 166.76, 167.41],["8/25/2009", 169.46, 170.94, 169.13, 169.4],["8/24/2009", 170.12, 170.71, 168.27, 169.06],["8/21/2009", 167.65, 169.37, 166.8, 169.22],["8/20/2009", 164.98, 166.72, 164.61, 166.33],["8/19/2009", 162.75, 165.3, 162.45, 164.6],["8/18/2009", 161.63, 164.24, 161.41, 164],["8/17/2009", 163.55, 163.59, 159.42, 159.59],["8/14/2009", 167.94, 168.23, 165.53, 166.78],["8/13/2009", 166.65, 168.67, 166.5, 168.42],["8/12/2009", 162.55, 166.71, 162.46, 165.31],["8/11/2009", 163.69, 164.38, 161.88, 162.83],["8/10/2009", 165.66, 166.6, 163.66, 164.72],["8/7/2009", 165.49, 166.6, 164.8, 165.51],["8/6/2009", 165.58, 166.51, 163.09, 163.91],["8/5/2009", 165.75, 167.39, 164.21, 165.11],["8/4/2009", 164.93, 165.57, 164.21, 165.55],["8/3/2009", 165.21, 166.64, 164.87, 166.43],["7/31/2009", 162.99, 165, 162.91, 163.39],["7/30/2009", 161.7, 164.72, 161.5, 162.79],["7/29/2009", 158.9, 160.45, 158.25, 160.03],["7/28/2009", 158.88, 160.1, 157.6, 160],["7/27/2009", 160.17, 160.88, 157.26, 160.1],["7/24/2009", 156.95, 160, 156.5, 159.99],["7/23/2009", 156.63, 158.44, 155.56, 157.82],["7/22/2009", 157.79, 158.73, 156.11, 156.74],["7/21/2009", 153.29, 153.43, 149.75, 151.51],["7/20/2009", 153.27, 155.04, 150.89, 152.91],["7/17/2009", 149.08, 152.02, 148.63, 151.75],["7/16/2009", 145.76, 148.02, 145.57, 147.52],["7/15/2009", 145.04, 147, 144.32, 146.88],["7/14/2009", 142.03, 143.18, 141.16, 142.27],["7/13/2009", 139.54, 142.34, 137.53, 142.34],["7/10/2009", 136.34, 138.97, 136.32, 138.52],["7/9/2009", 137.76, 137.99, 135.93, 136.36],["7/8/2009", 135.92, 138.04, 134.42, 137.22],["7/7/2009", 138.48, 139.68, 135.18, 135.4],["7/6/2009", 138.7, 138.99, 136.25, 138.61],["7/2/2009", 141.25, 142.83, 139.79, 140.02],["7/1/2009", 143.5, 144.66, 142.52, 142.83],["6/30/2009", 142.58, 143.8, 141.8, 142.43],["6/29/2009", 143.46, 143.95, 141.54, 141.97],["6/26/2009", 139.79, 143.56, 139.74, 142.44],["6/25/2009", 135.75, 140.2, 135.21, 139.86],["6/24/2009", 135.42, 137.5, 134.86, 136.22],["6/23/2009", 136.4, 136.95, 132.88, 134.01],["6/22/2009", 140.67, 141.56, 136.33, 137.37],["6/19/2009", 138.07, 139.5, 136.9, 139.48],["6/18/2009", 136.11, 138, 135.59, 135.88],["6/17/2009", 136.67, 137.45, 134.53, 135.58],["6/16/2009", 136.66, 138.47, 136.1, 136.35],["6/15/2009", 136.01, 136.93, 134.89, 136.09],["6/12/2009", 138.81, 139.1, 136.04, 136.97],["6/11/2009", 139.55, 141.56, 138.55, 139.95],["6/10/2009", 142.28, 142.35, 138.3, 140.25],["6/9/2009", 143.81, 144.56, 140.55, 142.72],["6/8/2009", 143.82, 144.23, 139.43, 143.85],["6/5/2009", 145.31, 146.4, 143.21, 144.67],["6/4/2009", 140.13, 144.18, 140.04, 143.74],["6/3/2009", 140, 141.11, 139.07, 140.95],["6/2/2009", 138.99, 141.34, 138.35, 139.49],["6/1/2009", 136.47, 139.99, 136, 139.35],["5/29/2009", 135.39, 135.9, 133.85, 135.81],["5/28/2009", 133.45, 135.39, 132.03, 135.07],["5/27/2009", 131.78, 134.98, 130.91, 133.05],["5/26/2009", 124.76, 130.83, 124.55, 130.78],["5/22/2009", 124.05, 124.18, 121.75, 122.5],["5/21/2009", 125.15, 126.78, 122.89, 124.18],["5/20/2009", 127.63, 129.21, 125.3, 125.87],["5/19/2009", 126.82, 129.31, 125.74, 127.45],["5/18/2009", 123.73, 126.7, 121.57, 126.65],["5/15/2009", 122.32, 124.62, 121.61, 122.42],["5/14/2009", 119.78, 123.53, 119.7, 122.95],["5/13/2009", 123.21, 124.02, 119.38, 119.49],["5/12/2009", 129.56, 129.71, 123.25, 124.42],["5/11/2009", 127.37, 130.96, 127.12, 129.57],["5/8/2009", 129.04, 131.23, 126.26, 129.19],["5/7/2009", 132.33, 132.39, 127.9, 129.06],["5/6/2009", 133.33, 133.5, 130.22, 132.5],["5/5/2009", 131.75, 132.86, 131.12, 132.71],["5/4/2009", 128.24, 132.25, 127.68, 132.07],["5/1/2009", 125.8, 127.95, 125.8, 127.24],["4/30/2009", 126.22, 127, 124.92, 125.83],["4/29/2009", 124.85, 126.85, 123.83, 125.14],["4/28/2009", 123.35, 126.21, 123.26, 123.9],["4/27/2009", 122.9, 125, 122.66, 124.73],["4/24/2009", 124.64, 125.14, 122.97, 123.9],["4/23/2009", 126.62, 127.2, 123.51, 125.4],["4/22/2009", 122.63, 125.35, 121.2, 121.51],["4/21/2009", 118.89, 122.14, 118.6, 121.76],["4/20/2009", 121.73, 122.99, 119.16, 120.5],["4/17/2009", 121.18, 124.25, 120.25, 123.42],["4/16/2009", 119.19, 123.15, 118.79, 121.45],["4/15/2009", 117.2, 118.25, 115.76, 117.64],["4/14/2009", 119.57, 120.17, 117.25, 118.31],["4/13/2009", 120.01, 120.98, 119, 120.22],["4/9/2009", 118.42, 120, 117.96, 119.57],["4/8/2009", 115.43, 116.79, 114.58, 116.32],["4/7/2009", 116.53, 116.67, 114.19, 115],["4/6/2009", 114.94, 118.75, 113.28, 118.45],["4/3/2009", 114.19, 116.13, 113.52, 115.99],["4/2/2009", 110.14, 114.75, 109.78, 112.71],["4/1/2009", 104.09, 109, 103.89, 108.69],["3/31/2009", 105.45, 107.45, 105, 105.12],["3/30/2009", 104.51, 105.01, 102.61, 104.49],["3/27/2009", 108.23, 108.53, 106.4, 106.85],["3/26/2009", 107.83, 109.98, 107.58, 109.87],["3/25/2009", 107.58, 108.36, 103.86, 106.49],["3/24/2009", 106.36, 109.44, 105.39, 106.5],["3/23/2009", 102.71, 108.16, 101.75, 107.66],["3/20/2009", 102.09, 103.11, 100.57, 101.59],["3/19/2009", 101.85, 103.2, 100.25, 101.62],["3/18/2009", 99.91, 103.48, 99.72, 101.52],["3/17/2009", 95.24, 99.69, 95.07, 99.66],["3/16/2009", 96.53, 97.39, 94.18, 95.42]];
+</script>
+
+<style type="text/css">
+  #chart2 .jqplot-yaxis, #chart2 .jqplot-y2axis, #chart2 .jqplot-y3axis {
+    margin-left:0px;
+    margin-right:0px;
+  }
+</style>      
+<p class="description">ZoomProxy is a jqPlot feature that enable "remote control" zooming.  One chart acts as an overview chart while another displays the zoomed in data.</p>
+
+<p class="description">A zoomProxy is set up by creating two charts with the same data and initial axis ranges.  After both charts are set up, call the $.jqplot.zoomProxy function to set up one plot as a "zoom controller" for the other.  The syntax is: </p>
+
+<pre class="prettyprint">$.jqplot.Cursor.zoomProxy(targetPlot, controllerPlot);</pre>
+
+<table style="margin-left:auto; margin-right:auto; border:0px;">
+  <tr><td>
+    <div class="jqPlot" id="chart1" style="height:300px; width:450px;"></div>
+  </td>
+  <td style="text-align:center">
+    <div class="jqPlot" id="chart2" style="height:120px; width:180px;"></div>
+    <button onclick="controllerPlot1.resetZoom()">Reset Zoom</button>
+  </td></tr>
+</table>
+
+<pre class="prettyprint plot">
+targetPlot1 = $.jqplot('chart1', [InPr, OutPr, ERPM], {
+  seriesDefaults:{showMarker: false},
+  series:[
+    {},
+    {yaxis:'y2axis'},
+    {yaxis:'y3axis'},
+  ],
+  cursor:{
+    zoom: true,
+    showTooltip:false
+  },
+  axesDefaults:{tickOptions:{formatString:"%d"}, autoscale:false, useSeriesColor:true}
+    
+}); 
+
+controllerPlot1 = $.jqplot('chart2', [InPr, OutPr, ERPM], {
+  seriesDefaults:{showMarker: false},
+  series:[
+    {label:'P In'},
+    {label:'P Out', yaxis:'y2axis'},
+    {label:'RPM', yaxis:'y3axis'},
+  ],
+  cursor:{
+    zoom:true,
+    showTooltip: false
+  },
+  axesDefaults:{
+    tickOptions:{
+      showLabel:false, 
+      showMark:false, 
+    }
+  }
+});
+
+$.jqplot.Cursor.zoomProxy(targetPlot1, controllerPlot1);  
+</pre>
+
+<p class="description">The following chart also has a zoom proxy.  Additionally, zooming is constrained to the x axis through the "constrainZoomTo" cursor option on the controller plot.  Notice that the controller plot and the target plot use different line renderers even though they use the same data.</p>
+
+    <div class="jqPlot" id="chart3" style="height:300px; width:500px;"></div>
+    <div class="jqPlot" id="chart4" style="height:100px; width:500px;"></div>
+    
+<pre class="prettyprint plot">
+targetPlot2 = $.jqplot('chart3', [aapl], {
+  series:[
+    {label:'Apple, Inc.', renderer:$.jqplot.OHLCRenderer},
+  ],
+  legend:{show:true, location:'nw'},
+  cursor:{
+    showTooltip:false
+  },
+  axes:{
+    xaxis: { 
+      renderer:$.jqplot.DateAxisRenderer, 
+      tickOptions:{formatString:'%Y/%#m/%#d'} 
+    }, 
+    yaxis: { 
+      renderer: $.jqplot.LogAxisRenderer, 
+      tickOptions:{formatString:'$%.2f'} 
+    } 
+  } 
+}); 
+
+controllerPlot2 = $.jqplot('chart4', [aapl], {
+  seriesDefaults:{neighborThreshold:0, showMarker: false},
+  series:[
+    {label:'Apple, Inc.'},
+  ],
+  cursor:{
+    showTooltip: false,
+    constrainZoomTo:'x'
+  },
+  axes:{
+    xaxis: { 
+      renderer:$.jqplot.DateAxisRenderer,
+      tickOptions:{formatString:'%Y/%#m/%#d'}
+    }, 
+    yaxis: { 
+      renderer: $.jqplot.LogAxisRenderer, 
+      tickOptions:{formatString:'$%.2f'} 
+    } 
+  }
+});
+
+$.jqplot.Cursor.zoomProxy(targetPlot2, controllerPlot2);  
+</pre>
+        
+<?php
+  require('closer.php');
+?>

tests/zoomTests.php

       
 <p class="description">The cursor plugin also enables plot zooming functionality.  Click and drag on the plot to zoom.  Double click to reset.</p>
 
-<p class="description">You can also enaable single click zoom reset, or disable the double click zoom reset.  The cursor plugin also exposes the $.jqplot.Cursor.resetZoom() function which can be called from user code or other html element (a button for example) to reset the plot zoom.</p>
+<p class="description">You can also enaable single click zoom reset, or disable the double click zoom reset.  The cursor plugin also extends the plot object with a resetZoom() method which can be called from user code or other html element (a button for example) to reset the plot zoom.</p>
 
 <div class="jqPlot" id="chart1" style="height:380px; width:480px;"></div>
 
+<button class="button-reset" onclick="plot.resetZoom()">Reset Zoom</button>
+
 <pre class="prettyprint plot">
 plot = $.jqplot('chart1', [goog], { 
     title: 'Google, Inc.', 
 
 <div class="jqPlot" id="chart2" style="height:380px; width:600px;"></div>
 
+<button class="button-reset" onclick="plot1.resetZoom()">Reset Zoom</button>
+
 <pre class="prettyprint plot">
 plot1 = $.jqplot('chart2', [InPr, OutPr, ERPM], { 
     title:'Plot with Zooming and 3 Y Axes', 
-0.9.4
+0.9.5