jqplot_rails 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (377) hide show
  1. data/CHANGELOG.rdoc +2 -0
  2. data/LICENSE +0 -0
  3. data/README.rdoc +1 -0
  4. data/files/dist/MIT-LICENSE.txt +21 -0
  5. data/files/dist/README.txt +77 -0
  6. data/files/dist/changes.txt +395 -0
  7. data/files/dist/copyright.txt +56 -0
  8. data/files/dist/docs/files/MIT-LICENSE-txt.html +39 -0
  9. data/files/dist/docs/files/changes-txt.html +39 -0
  10. data/files/dist/docs/files/gpl-2-0-txt.html +39 -0
  11. data/files/dist/docs/files/images/background.jpg +0 -0
  12. data/files/dist/docs/files/images/basicline.png +0 -0
  13. data/files/dist/docs/files/images/basiclogaxis.png +0 -0
  14. data/files/dist/docs/files/images/basiclogoptions.png +0 -0
  15. data/files/dist/docs/files/images/basicoptions.png +0 -0
  16. data/files/dist/docs/files/images/dualaxis.png +0 -0
  17. data/files/dist/docs/files/images/logo.jpg +0 -0
  18. data/files/dist/docs/files/images/navdocs.png +0 -0
  19. data/files/dist/docs/files/images/navdocsover.png +0 -0
  20. data/files/dist/docs/files/images/navdownload.png +0 -0
  21. data/files/dist/docs/files/images/navdownloadover.png +0 -0
  22. data/files/dist/docs/files/images/navexamples.png +0 -0
  23. data/files/dist/docs/files/images/navexamplesover.png +0 -0
  24. data/files/dist/docs/files/images/navhome.png +0 -0
  25. data/files/dist/docs/files/images/navhomeover.png +0 -0
  26. data/files/dist/docs/files/images/new.png +0 -0
  27. data/files/dist/docs/files/images/sample3.png +0 -0
  28. data/files/dist/docs/files/images/samplesm.png +0 -0
  29. data/files/dist/docs/files/jqPlotCssStyling-txt.html +39 -0
  30. data/files/dist/docs/files/jqPlotOptions-txt.html +292 -0
  31. data/files/dist/docs/files/jqplot-axisLabelRenderer-js.html +47 -0
  32. data/files/dist/docs/files/jqplot-axisTickRenderer-js.html +71 -0
  33. data/files/dist/docs/files/jqplot-canvasGridRenderer-js.html +39 -0
  34. data/files/dist/docs/files/jqplot-core-js.html +385 -0
  35. data/files/dist/docs/files/jqplot-divTitleRenderer-js.html +39 -0
  36. data/files/dist/docs/files/jqplot-lineRenderer-js.html +69 -0
  37. data/files/dist/docs/files/jqplot-linearAxisRenderer-js.html +61 -0
  38. data/files/dist/docs/files/jqplot-markerRenderer-js.html +65 -0
  39. data/files/dist/docs/files/jqplot-shadowRenderer-js.html +61 -0
  40. data/files/dist/docs/files/jqplot-shapeRenderer-js.html +65 -0
  41. data/files/dist/docs/files/jqplot-themeEngine-js.html +191 -0
  42. data/files/dist/docs/files/jqplot-toImage-js.html +39 -0
  43. data/files/dist/docs/files/optionsTutorial-txt.html +120 -0
  44. data/files/dist/docs/files/plugins/jqplot-BezierCurveRenderer-js.html +45 -0
  45. data/files/dist/docs/files/plugins/jqplot-barRenderer-js.html +69 -0
  46. data/files/dist/docs/files/plugins/jqplot-blockRenderer-js.html +53 -0
  47. data/files/dist/docs/files/plugins/jqplot-bubbleRenderer-js.html +71 -0
  48. data/files/dist/docs/files/plugins/jqplot-canvasAxisLabelRenderer-js.html +63 -0
  49. data/files/dist/docs/files/plugins/jqplot-canvasAxisTickRenderer-js.html +79 -0
  50. data/files/dist/docs/files/plugins/jqplot-canvasOverlay-js.html +113 -0
  51. data/files/dist/docs/files/plugins/jqplot-categoryAxisRenderer-js.html +46 -0
  52. data/files/dist/docs/files/plugins/jqplot-ciParser-js.html +39 -0
  53. data/files/dist/docs/files/plugins/jqplot-cursor-js.html +93 -0
  54. data/files/dist/docs/files/plugins/jqplot-dateAxisRenderer-js.html +101 -0
  55. data/files/dist/docs/files/plugins/jqplot-donutRenderer-js.html +98 -0
  56. data/files/dist/docs/files/plugins/jqplot-dragable-js.html +45 -0
  57. data/files/dist/docs/files/plugins/jqplot-enhancedLegendRenderer-js.html +49 -0
  58. data/files/dist/docs/files/plugins/jqplot-funnelRenderer-js.html +87 -0
  59. data/files/dist/docs/files/plugins/jqplot-highlighter-js.html +80 -0
  60. data/files/dist/docs/files/plugins/jqplot-logAxisRenderer-js.html +47 -0
  61. data/files/dist/docs/files/plugins/jqplot-mekkoAxisRenderer-js.html +49 -0
  62. data/files/dist/docs/files/plugins/jqplot-mekkoRenderer-js.html +62 -0
  63. data/files/dist/docs/files/plugins/jqplot-meterGaugeRenderer-js.html +103 -0
  64. data/files/dist/docs/files/plugins/jqplot-ohlcRenderer-js.html +65 -0
  65. data/files/dist/docs/files/plugins/jqplot-pieRenderer-js.html +93 -0
  66. data/files/dist/docs/files/plugins/jqplot-pointLabels-js.html +72 -0
  67. data/files/dist/docs/files/plugins/jqplot-pyramidAxisRenderer-js.html +49 -0
  68. data/files/dist/docs/files/plugins/jqplot-pyramidGridRenderer-js.html +39 -0
  69. data/files/dist/docs/files/plugins/jqplot-pyramidRenderer-js.html +53 -0
  70. data/files/dist/docs/files/plugins/jqplot-trendline-js.html +67 -0
  71. data/files/dist/docs/files/usage-txt.html +58 -0
  72. data/files/dist/docs/index/Classes.html +70 -0
  73. data/files/dist/docs/index/Files.html +34 -0
  74. data/files/dist/docs/index/Functions.html +66 -0
  75. data/files/dist/docs/index/General.html +42 -0
  76. data/files/dist/docs/index/General2.html +42 -0
  77. data/files/dist/docs/index/General3.html +42 -0
  78. data/files/dist/docs/index/General4.html +46 -0
  79. data/files/dist/docs/index/General5.html +46 -0
  80. data/files/dist/docs/index/General6.html +34 -0
  81. data/files/dist/docs/index/General7.html +58 -0
  82. data/files/dist/docs/index/Hooks.html +46 -0
  83. data/files/dist/docs/index/Properties.html +42 -0
  84. data/files/dist/docs/index/Properties2.html +42 -0
  85. data/files/dist/docs/index/Properties3.html +46 -0
  86. data/files/dist/docs/index/Properties4.html +50 -0
  87. data/files/dist/docs/index/Properties5.html +34 -0
  88. data/files/dist/docs/index/Properties6.html +58 -0
  89. data/files/dist/docs/index.html +1 -0
  90. data/files/dist/docs/javascript/main.js +836 -0
  91. data/files/dist/docs/javascript/searchdata.js +182 -0
  92. data/files/dist/docs/search/ClassesA.html +20 -0
  93. data/files/dist/docs/search/ClassesD.html +20 -0
  94. data/files/dist/docs/search/ClassesG.html +20 -0
  95. data/files/dist/docs/search/ClassesH.html +20 -0
  96. data/files/dist/docs/search/ClassesJ.html +20 -0
  97. data/files/dist/docs/search/ClassesL.html +20 -0
  98. data/files/dist/docs/search/ClassesS.html +20 -0
  99. data/files/dist/docs/search/ClassesSymbols.html +20 -0
  100. data/files/dist/docs/search/ClassesT.html +20 -0
  101. data/files/dist/docs/search/ClassesV.html +20 -0
  102. data/files/dist/docs/search/FilesJ.html +20 -0
  103. data/files/dist/docs/search/FunctionsC.html +20 -0
  104. data/files/dist/docs/search/FunctionsD.html +20 -0
  105. data/files/dist/docs/search/FunctionsG.html +20 -0
  106. data/files/dist/docs/search/FunctionsI.html +20 -0
  107. data/files/dist/docs/search/FunctionsM.html +20 -0
  108. data/files/dist/docs/search/FunctionsN.html +20 -0
  109. data/files/dist/docs/search/FunctionsR.html +20 -0
  110. data/files/dist/docs/search/FunctionsS.html +20 -0
  111. data/files/dist/docs/search/FunctionsZ.html +20 -0
  112. data/files/dist/docs/search/GeneralA.html +20 -0
  113. data/files/dist/docs/search/GeneralB.html +20 -0
  114. data/files/dist/docs/search/GeneralC.html +20 -0
  115. data/files/dist/docs/search/GeneralD.html +20 -0
  116. data/files/dist/docs/search/GeneralE.html +20 -0
  117. data/files/dist/docs/search/GeneralF.html +20 -0
  118. data/files/dist/docs/search/GeneralG.html +20 -0
  119. data/files/dist/docs/search/GeneralH.html +20 -0
  120. data/files/dist/docs/search/GeneralI.html +20 -0
  121. data/files/dist/docs/search/GeneralJ.html +20 -0
  122. data/files/dist/docs/search/GeneralL.html +20 -0
  123. data/files/dist/docs/search/GeneralM.html +20 -0
  124. data/files/dist/docs/search/GeneralN.html +20 -0
  125. data/files/dist/docs/search/GeneralO.html +20 -0
  126. data/files/dist/docs/search/GeneralP.html +20 -0
  127. data/files/dist/docs/search/GeneralR.html +20 -0
  128. data/files/dist/docs/search/GeneralS.html +20 -0
  129. data/files/dist/docs/search/GeneralSymbols.html +20 -0
  130. data/files/dist/docs/search/GeneralT.html +20 -0
  131. data/files/dist/docs/search/GeneralU.html +20 -0
  132. data/files/dist/docs/search/GeneralV.html +20 -0
  133. data/files/dist/docs/search/GeneralW.html +20 -0
  134. data/files/dist/docs/search/GeneralX.html +20 -0
  135. data/files/dist/docs/search/GeneralY.html +20 -0
  136. data/files/dist/docs/search/GeneralZ.html +20 -0
  137. data/files/dist/docs/search/HooksA.html +20 -0
  138. data/files/dist/docs/search/HooksE.html +20 -0
  139. data/files/dist/docs/search/HooksJ.html +20 -0
  140. data/files/dist/docs/search/HooksP.html +20 -0
  141. data/files/dist/docs/search/NoResults.html +15 -0
  142. data/files/dist/docs/search/PropertiesA.html +20 -0
  143. data/files/dist/docs/search/PropertiesB.html +20 -0
  144. data/files/dist/docs/search/PropertiesC.html +20 -0
  145. data/files/dist/docs/search/PropertiesD.html +20 -0
  146. data/files/dist/docs/search/PropertiesE.html +20 -0
  147. data/files/dist/docs/search/PropertiesF.html +20 -0
  148. data/files/dist/docs/search/PropertiesG.html +20 -0
  149. data/files/dist/docs/search/PropertiesH.html +20 -0
  150. data/files/dist/docs/search/PropertiesI.html +20 -0
  151. data/files/dist/docs/search/PropertiesL.html +20 -0
  152. data/files/dist/docs/search/PropertiesM.html +20 -0
  153. data/files/dist/docs/search/PropertiesN.html +20 -0
  154. data/files/dist/docs/search/PropertiesO.html +20 -0
  155. data/files/dist/docs/search/PropertiesP.html +20 -0
  156. data/files/dist/docs/search/PropertiesR.html +20 -0
  157. data/files/dist/docs/search/PropertiesS.html +20 -0
  158. data/files/dist/docs/search/PropertiesT.html +20 -0
  159. data/files/dist/docs/search/PropertiesU.html +20 -0
  160. data/files/dist/docs/search/PropertiesV.html +20 -0
  161. data/files/dist/docs/search/PropertiesW.html +20 -0
  162. data/files/dist/docs/search/PropertiesX.html +20 -0
  163. data/files/dist/docs/search/PropertiesY.html +20 -0
  164. data/files/dist/docs/search/PropertiesZ.html +20 -0
  165. data/files/dist/docs/styles/1.css +767 -0
  166. data/files/dist/docs/styles/2.css +174 -0
  167. data/files/dist/docs/styles/main.css +2 -0
  168. data/files/dist/examples/KCPsample4.csv +25 -0
  169. data/files/dist/examples/ajax-loader.gif +0 -0
  170. data/files/dist/examples/area.html +139 -0
  171. data/files/dist/examples/axisLabelTests.html +157 -0
  172. data/files/dist/examples/axisLabelsRotatedText.html +229 -0
  173. data/files/dist/examples/axisScalingForceTickAt.html +242 -0
  174. data/files/dist/examples/bandedLine.html +310 -0
  175. data/files/dist/examples/bar-charts.html +219 -0
  176. data/files/dist/examples/barLineAnimated.html +165 -0
  177. data/files/dist/examples/barTest.html +299 -0
  178. data/files/dist/examples/bezierCurve.html +125 -0
  179. data/files/dist/examples/blockPlot.html +197 -0
  180. data/files/dist/examples/bubble-plots.html +213 -0
  181. data/files/dist/examples/bubbleChart.html +264 -0
  182. data/files/dist/examples/candlestick-charts.html +209 -0
  183. data/files/dist/examples/candlestick.html +322 -0
  184. data/files/dist/examples/cursor-highlighter.html +137 -0
  185. data/files/dist/examples/customHighlighterCursorTrendline.html +104 -0
  186. data/files/dist/examples/dashboardWidget.html +212 -0
  187. data/files/dist/examples/dashedLines.html +227 -0
  188. data/files/dist/examples/data-renderers.html +144 -0
  189. data/files/dist/examples/date-axes.html +107 -0
  190. data/files/dist/examples/dateAxisLogAxisZooming.html +105 -0
  191. data/files/dist/examples/dateAxisRenderer.html +292 -0
  192. data/files/dist/examples/example.js +114 -0
  193. data/files/dist/examples/example.min.js +1 -0
  194. data/files/dist/examples/examples.css +135 -0
  195. data/files/dist/examples/examples.min.css +1 -0
  196. data/files/dist/examples/fillBetweenLines.html +134 -0
  197. data/files/dist/examples/hiddenPlotsInTabs.html +225 -0
  198. data/files/dist/examples/images/logo.jpg +0 -0
  199. data/files/dist/examples/index.html +100 -0
  200. data/files/dist/examples/jquery-ui/css/ui-lightness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  201. data/files/dist/examples/jquery-ui/css/ui-lightness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  202. data/files/dist/examples/jquery-ui/css/ui-lightness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  203. data/files/dist/examples/jquery-ui/css/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  204. data/files/dist/examples/jquery-ui/css/ui-lightness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  205. data/files/dist/examples/jquery-ui/css/ui-lightness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  206. data/files/dist/examples/jquery-ui/css/ui-lightness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  207. data/files/dist/examples/jquery-ui/css/ui-lightness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  208. data/files/dist/examples/jquery-ui/css/ui-lightness/images/ui-icons_222222_256x240.png +0 -0
  209. data/files/dist/examples/jquery-ui/css/ui-lightness/images/ui-icons_2e83ff_256x240.png +0 -0
  210. data/files/dist/examples/jquery-ui/css/ui-lightness/images/ui-icons_454545_256x240.png +0 -0
  211. data/files/dist/examples/jquery-ui/css/ui-lightness/images/ui-icons_888888_256x240.png +0 -0
  212. data/files/dist/examples/jquery-ui/css/ui-lightness/images/ui-icons_cd0a0a_256x240.png +0 -0
  213. data/files/dist/examples/jquery-ui/css/ui-lightness/jquery-ui.css +612 -0
  214. data/files/dist/examples/jquery-ui/css/ui-lightness/jquery-ui.min.css +10 -0
  215. data/files/dist/examples/jquery-ui/js/jquery-ui.min.js +473 -0
  216. data/files/dist/examples/jquery-ui/js/jquery.effects.blind.js +80 -0
  217. data/files/dist/examples/jquery-ui/js/jquery.effects.blind.min.js +14 -0
  218. data/files/dist/examples/jquery-ui/js/jquery.effects.core.js +890 -0
  219. data/files/dist/examples/jquery-ui/js/jquery.effects.core.min.js +32 -0
  220. data/files/dist/examples/jsondata.txt +1 -0
  221. data/files/dist/examples/kcp_area.html +250 -0
  222. data/files/dist/examples/kcp_cdf.html +351 -0
  223. data/files/dist/examples/kcp_engel.html +244 -0
  224. data/files/dist/examples/kcp_lorenz.html +510 -0
  225. data/files/dist/examples/kcp_pdf.html +387 -0
  226. data/files/dist/examples/kcp_pyramid.html +580 -0
  227. data/files/dist/examples/kcp_pyramid2.html +568 -0
  228. data/files/dist/examples/line-charts.html +193 -0
  229. data/files/dist/examples/mekkoCharts.html +269 -0
  230. data/files/dist/examples/meterGauge.html +179 -0
  231. data/files/dist/examples/nav.inc +40 -0
  232. data/files/dist/examples/pie-donut-charts.html +160 -0
  233. data/files/dist/examples/pieTest.html +187 -0
  234. data/files/dist/examples/pieTest2.js +80 -0
  235. data/files/dist/examples/pieTest4.html +258 -0
  236. data/files/dist/examples/point-labels.html +193 -0
  237. data/files/dist/examples/resizablePlot.html +196 -0
  238. data/files/dist/examples/rotated-tick-labels.html +216 -0
  239. data/files/dist/examples/rotatedTickLabelsZoom.html +118 -0
  240. data/files/dist/examples/smoothedLine.html +137 -0
  241. data/files/dist/examples/syntaxhighlighter/LGPL-LICENSE +165 -0
  242. data/files/dist/examples/syntaxhighlighter/MIT-LICENSE +20 -0
  243. data/files/dist/examples/syntaxhighlighter/scripts/shAutoloader.js +17 -0
  244. data/files/dist/examples/syntaxhighlighter/scripts/shAutoloader.min.js +1 -0
  245. data/files/dist/examples/syntaxhighlighter/scripts/shBrushJScript.js +52 -0
  246. data/files/dist/examples/syntaxhighlighter/scripts/shBrushJScript.min.js +1 -0
  247. data/files/dist/examples/syntaxhighlighter/scripts/shBrushXml.js +69 -0
  248. data/files/dist/examples/syntaxhighlighter/scripts/shBrushXml.min.js +1 -0
  249. data/files/dist/examples/syntaxhighlighter/scripts/shCore.js +17 -0
  250. data/files/dist/examples/syntaxhighlighter/scripts/shCore.min.js +1 -0
  251. data/files/dist/examples/syntaxhighlighter/styles/shCore.css +226 -0
  252. data/files/dist/examples/syntaxhighlighter/styles/shCore.min.css +1 -0
  253. data/files/dist/examples/syntaxhighlighter/styles/shCoreDefault.css +328 -0
  254. data/files/dist/examples/syntaxhighlighter/styles/shCoreDefault.min.css +1 -0
  255. data/files/dist/examples/syntaxhighlighter/styles/shThemeDefault.css +117 -0
  256. data/files/dist/examples/syntaxhighlighter/styles/shThemeDefault.min.css +1 -0
  257. data/files/dist/examples/syntaxhighlighter/styles/shThemejqPlot.css +138 -0
  258. data/files/dist/examples/syntaxhighlighter/styles/shThemejqPlot.min.css +1 -0
  259. data/files/dist/examples/theming.html +519 -0
  260. data/files/dist/examples/topbanner.inc +9 -0
  261. data/files/dist/examples/waterfall.html +162 -0
  262. data/files/dist/examples/waterfall2.html +231 -0
  263. data/files/dist/examples/yahooData.js +1807 -0
  264. data/files/dist/examples/yahooData.min.js +1 -0
  265. data/files/dist/examples/zoom1.html +149 -0
  266. data/files/dist/examples/zoomOptions.html +176 -0
  267. data/files/dist/examples/zoomProxy.html +110 -0
  268. data/files/dist/examples/zooming.html +209 -0
  269. data/files/dist/excanvas.js +1438 -0
  270. data/files/dist/excanvas.min.js +57 -0
  271. data/files/dist/gpl-2.0.txt +280 -0
  272. data/files/dist/jqPlotCssStyling.txt +53 -0
  273. data/files/dist/jqPlotOptions.txt +276 -0
  274. data/files/dist/jquery.jqplot.css +259 -0
  275. data/files/dist/jquery.jqplot.js +10901 -0
  276. data/files/dist/jquery.jqplot.min.css +1 -0
  277. data/files/dist/jquery.js +9046 -0
  278. data/files/dist/jquery.min.js +4 -0
  279. data/files/dist/optionsTutorial.txt +240 -0
  280. data/files/dist/plugins/jqplot.BezierCurveRenderer.js +312 -0
  281. data/files/dist/plugins/jqplot.BezierCurveRenderer.min.js +57 -0
  282. data/files/dist/plugins/jqplot.barRenderer.js +747 -0
  283. data/files/dist/plugins/jqplot.barRenderer.min.js +57 -0
  284. data/files/dist/plugins/jqplot.blockRenderer.js +234 -0
  285. data/files/dist/plugins/jqplot.blockRenderer.min.js +57 -0
  286. data/files/dist/plugins/jqplot.bubbleRenderer.js +754 -0
  287. data/files/dist/plugins/jqplot.bubbleRenderer.min.js +57 -0
  288. data/files/dist/plugins/jqplot.canvasAxisLabelRenderer.js +202 -0
  289. data/files/dist/plugins/jqplot.canvasAxisLabelRenderer.min.js +57 -0
  290. data/files/dist/plugins/jqplot.canvasAxisTickRenderer.js +242 -0
  291. data/files/dist/plugins/jqplot.canvasAxisTickRenderer.min.js +57 -0
  292. data/files/dist/plugins/jqplot.canvasOverlay.js +864 -0
  293. data/files/dist/plugins/jqplot.canvasOverlay.min.js +57 -0
  294. data/files/dist/plugins/jqplot.canvasTextRenderer.js +448 -0
  295. data/files/dist/plugins/jqplot.canvasTextRenderer.min.js +57 -0
  296. data/files/dist/plugins/jqplot.categoryAxisRenderer.js +636 -0
  297. data/files/dist/plugins/jqplot.categoryAxisRenderer.min.js +57 -0
  298. data/files/dist/plugins/jqplot.ciParser.js +115 -0
  299. data/files/dist/plugins/jqplot.ciParser.min.js +57 -0
  300. data/files/dist/plugins/jqplot.cursor.js +1093 -0
  301. data/files/dist/plugins/jqplot.cursor.min.js +57 -0
  302. data/files/dist/plugins/jqplot.dateAxisRenderer.js +702 -0
  303. data/files/dist/plugins/jqplot.dateAxisRenderer.min.js +57 -0
  304. data/files/dist/plugins/jqplot.donutRenderer.js +800 -0
  305. data/files/dist/plugins/jqplot.donutRenderer.min.js +57 -0
  306. data/files/dist/plugins/jqplot.dragable.js +224 -0
  307. data/files/dist/plugins/jqplot.dragable.min.js +57 -0
  308. data/files/dist/plugins/jqplot.enhancedLegendRenderer.js +241 -0
  309. data/files/dist/plugins/jqplot.enhancedLegendRenderer.min.js +57 -0
  310. data/files/dist/plugins/jqplot.funnelRenderer.js +938 -0
  311. data/files/dist/plugins/jqplot.funnelRenderer.min.js +57 -0
  312. data/files/dist/plugins/jqplot.highlighter.js +454 -0
  313. data/files/dist/plugins/jqplot.highlighter.min.js +57 -0
  314. data/files/dist/plugins/jqplot.json2.js +475 -0
  315. data/files/dist/plugins/jqplot.json2.min.js +57 -0
  316. data/files/dist/plugins/jqplot.logAxisRenderer.js +528 -0
  317. data/files/dist/plugins/jqplot.logAxisRenderer.min.js +57 -0
  318. data/files/dist/plugins/jqplot.mekkoAxisRenderer.js +610 -0
  319. data/files/dist/plugins/jqplot.mekkoAxisRenderer.min.js +57 -0
  320. data/files/dist/plugins/jqplot.mekkoRenderer.js +436 -0
  321. data/files/dist/plugins/jqplot.mekkoRenderer.min.js +57 -0
  322. data/files/dist/plugins/jqplot.meterGaugeRenderer.js +1029 -0
  323. data/files/dist/plugins/jqplot.meterGaugeRenderer.min.js +57 -0
  324. data/files/dist/plugins/jqplot.ohlcRenderer.js +372 -0
  325. data/files/dist/plugins/jqplot.ohlcRenderer.min.js +57 -0
  326. data/files/dist/plugins/jqplot.pieRenderer.js +899 -0
  327. data/files/dist/plugins/jqplot.pieRenderer.min.js +57 -0
  328. data/files/dist/plugins/jqplot.pointLabels.js +362 -0
  329. data/files/dist/plugins/jqplot.pointLabels.min.js +57 -0
  330. data/files/dist/plugins/jqplot.pyramidAxisRenderer.js +730 -0
  331. data/files/dist/plugins/jqplot.pyramidAxisRenderer.min.js +57 -0
  332. data/files/dist/plugins/jqplot.pyramidGridRenderer.js +423 -0
  333. data/files/dist/plugins/jqplot.pyramidGridRenderer.min.js +57 -0
  334. data/files/dist/plugins/jqplot.pyramidRenderer.js +490 -0
  335. data/files/dist/plugins/jqplot.pyramidRenderer.min.js +57 -0
  336. data/files/dist/plugins/jqplot.trendline.js +222 -0
  337. data/files/dist/plugins/jqplot.trendline.min.js +57 -0
  338. data/files/dist/usage.txt +126 -0
  339. data/files/javascripts/excanvas.min.js +57 -0
  340. data/files/javascripts/jquery.jqplot.min.js +57 -0
  341. data/files/javascripts/plugins/jqplot.BezierCurveRenderer.min.js +57 -0
  342. data/files/javascripts/plugins/jqplot.barRenderer.min.js +57 -0
  343. data/files/javascripts/plugins/jqplot.blockRenderer.min.js +57 -0
  344. data/files/javascripts/plugins/jqplot.bubbleRenderer.min.js +57 -0
  345. data/files/javascripts/plugins/jqplot.canvasAxisLabelRenderer.min.js +57 -0
  346. data/files/javascripts/plugins/jqplot.canvasAxisTickRenderer.min.js +57 -0
  347. data/files/javascripts/plugins/jqplot.canvasOverlay.min.js +57 -0
  348. data/files/javascripts/plugins/jqplot.canvasTextRenderer.min.js +57 -0
  349. data/files/javascripts/plugins/jqplot.categoryAxisRenderer.min.js +57 -0
  350. data/files/javascripts/plugins/jqplot.ciParser.min.js +57 -0
  351. data/files/javascripts/plugins/jqplot.cursor.min.js +57 -0
  352. data/files/javascripts/plugins/jqplot.dateAxisRenderer.min.js +57 -0
  353. data/files/javascripts/plugins/jqplot.donutRenderer.min.js +57 -0
  354. data/files/javascripts/plugins/jqplot.dragable.min.js +57 -0
  355. data/files/javascripts/plugins/jqplot.enhancedLegendRenderer.min.js +57 -0
  356. data/files/javascripts/plugins/jqplot.funnelRenderer.min.js +57 -0
  357. data/files/javascripts/plugins/jqplot.highlighter.min.js +57 -0
  358. data/files/javascripts/plugins/jqplot.json2.min.js +57 -0
  359. data/files/javascripts/plugins/jqplot.logAxisRenderer.min.js +57 -0
  360. data/files/javascripts/plugins/jqplot.mekkoAxisRenderer.min.js +57 -0
  361. data/files/javascripts/plugins/jqplot.mekkoRenderer.min.js +57 -0
  362. data/files/javascripts/plugins/jqplot.meterGaugeRenderer.min.js +57 -0
  363. data/files/javascripts/plugins/jqplot.ohlcRenderer.min.js +57 -0
  364. data/files/javascripts/plugins/jqplot.pieRenderer.min.js +57 -0
  365. data/files/javascripts/plugins/jqplot.pointLabels.min.js +57 -0
  366. data/files/javascripts/plugins/jqplot.pyramidAxisRenderer.min.js +57 -0
  367. data/files/javascripts/plugins/jqplot.pyramidGridRenderer.min.js +57 -0
  368. data/files/javascripts/plugins/jqplot.pyramidRenderer.min.js +57 -0
  369. data/files/javascripts/plugins/jqplot.trendline.min.js +57 -0
  370. data/files/stylesheets/jqplot_rails_overrides.css +3 -0
  371. data/files/stylesheets/jquery.jqplot.min.css +1 -0
  372. data/lib/jqplot_rails/jqplot_action_view.rb +106 -0
  373. data/lib/jqplot_rails/railtie.rb +29 -0
  374. data/lib/jqplot_rails/tasks.rb +58 -0
  375. data/lib/jqplot_rails/version.rb +17 -0
  376. data/lib/jqplot_rails.rb +5 -0
  377. metadata +473 -0
@@ -0,0 +1,510 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+
6
+ <title>Lorenz Curves</title>
7
+
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" />
12
+
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>
15
+
16
+
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">
29
+
30
+ <div class="example-nav">
31
+ <a href="kcp_engel.html">Previous</a> <a href="./">Examples</a> <a href="kcp_pdf.html">Next</a></div>
32
+
33
+
34
+ <!-- Example scripts go here -->
35
+
36
+
37
+ <link class="include" type="text/css" href="jquery-ui/css/ui-lightness/jquery-ui.min.css" rel="Stylesheet" />
38
+
39
+ <style type="text/css">
40
+
41
+ .chart-container {
42
+ border: 1px solid darkblue;
43
+ padding: 30px;
44
+ width: 500px;
45
+ height: 400px;
46
+
47
+ }
48
+
49
+ #chart1 {
50
+ width: 96%;
51
+ height: 96%;
52
+ }
53
+
54
+ .jqplot-datestamp {
55
+ font-size: 0.8em;
56
+ color: #777;
57
+ /* margin-top: 1em;
58
+ text-align: right;*/
59
+ font-style: italic;
60
+ position: absolute;
61
+ bottom: 15px;
62
+ right: 15px;
63
+ }
64
+
65
+ td.controls li {
66
+ list-style-type: none;
67
+ }
68
+
69
+ td.controls ul {
70
+ margin-top: 0.5em;
71
+ padding-left: 0.2em;
72
+ }
73
+
74
+ pre.code {
75
+ margin-top: 45px;
76
+ clear: both;
77
+ }
78
+
79
+ </style>
80
+
81
+ <table class="app">
82
+ <td class="controls">
83
+
84
+ <div>
85
+ Data Series:
86
+ <ul>
87
+ <li><input name="dataSeries" value="national" type="radio" checked />National</li>
88
+ <li><input name="dataSeries" value="urban" type="radio" />Urban</li>
89
+ <li><input name="dataSeries" value="rural" type="radio" />Rural</li>
90
+ </ul>
91
+ </div>
92
+
93
+ <div>
94
+ Background Color:
95
+ <ul>
96
+ <li><input name="backgroundColor" value="white" type="radio" checked />Default</li>
97
+ <li><input name="backgroundColor" value="#efefef" type="radio" />Gray</li>
98
+ </ul>
99
+ </div>
100
+
101
+ <div>
102
+ Line Width:
103
+ <ul>
104
+ <li><input name="lineWidth" value="2.5" type="radio" checked />Thin</li>
105
+ <li><input name="lineWidth" value="5" type="radio" />Thick</li>
106
+ </ul>
107
+ </div>
108
+
109
+ <div>
110
+ Grids:
111
+ <ul>
112
+ <li><input name="gridsVertical" value="vertical" type="checkbox" checked />Vertical</li>
113
+ <li><input name="gridsHorizontal" value="horizontal" type="checkbox" checked />Horizontal</li>
114
+ </ul>
115
+ </div>
116
+
117
+ <div>
118
+ Set lines at:
119
+ <ul>
120
+ <li><input name="userLine1" value="42" type="text" size="8" /> and </li>
121
+ <li><input name="userLine2" value="75" type="text" size="8" /></li>
122
+ </ul>
123
+ </div>
124
+ </td>
125
+
126
+ <td class="chart">
127
+ <div class="chart-container">
128
+ <div id="chart1"></div>
129
+ <div class="jqplot-datestamp"></div>
130
+ </div>
131
+ </td>
132
+
133
+ </table>
134
+
135
+ <pre class="code brush:js"></pre>
136
+
137
+
138
+
139
+ <script class="code" type="text/javascript">
140
+ $(document).ready(function(){
141
+ var dataSets = {
142
+ national: [[0, 0], [0.034259, 0.000122], [0.036908, 0.000271], [0.039957, 0.000457], [0.043623, 0.000699], [0.048008, 0.001005], [0.053278, 0.001404], [0.059665, 0.001916], [0.067405, 0.002587], [0.076951, 0.003482], [0.088909, 0.004676], [0.103706, 0.006234], [0.121406, 0.008198], [0.142376, 0.010698], [0.167456, 0.013945], [0.198392, 0.018266], [0.237371, 0.024152], [0.287096, 0.03217], [0.350664, 0.043128], [0.43322, 0.058856], [0.546538, 0.08196], [0.703419, 0.116382], [0.921534, 0.167573], [1.225405, 0.244101], [1.658248, 0.362099], [2.286919, 0.545089], [3.168531, 0.811148], [4.338121, 1.180312], [5.828025, 1.677699], [7.674282, 2.317937], [9.856185, 3.124879], [12.427952, 4.135038], [15.374906, 5.337835], [18.559853, 6.704187], [21.938501, 8.240167], [25.480211, 9.968066], [29.195872, 11.896316], [33.040813, 13.995922], [36.929108, 16.268393], [40.883239, 18.753271], [44.934876, 21.456742], [48.979949, 24.281483], [52.874709, 27.163823], [56.569122, 30.090586], [60.143349, 33.155912], [63.632698, 36.332609], [67.019887, 39.647977], [70.272329, 42.982924], [73.31569, 46.301522], [76.137996, 49.580067], [78.734309, 52.80729], [81.144203, 56.013671], [83.364771, 59.154237], [85.40072, 62.237023], [87.276365, 65.274088], [88.994984, 68.231226], [90.547773, 71.063226], [91.930153, 73.740825], [93.143588, 76.235257], [94.19365, 78.526502], [95.093093, 80.626967], [95.863261, 82.534767], [96.518119, 84.276606], [97.07861, 85.871008], [97.555507, 87.313822], [97.958887, 88.612275], [98.29631, 89.76839], [98.57645, 90.788966], [98.805892, 91.680096], [98.994988, 92.471419], [99.15183, 93.168954], [99.279882, 93.771844], [99.384116, 94.303287], [99.470272, 94.773123], [99.541871, 95.191639], [99.601871, 95.572501], [99.653556, 95.924822], [99.698334, 96.25129], [99.737113, 96.553878], [99.770733, 96.834228], [99.800151, 97.099569], [99.826487, 97.355328], [99.85018, 97.600349], [99.871291, 97.832168], [99.889939, 98.050737], [99.906286, 98.254414], [99.92045, 98.442305], [99.932702, 98.616245], [99.9433, 98.776877], [99.952485, 98.926517], [99.960528, 99.066855], [99.96755, 99.196967], [99.9736, 99.316087], [99.978742, 99.423943], [99.983126, 99.523155], [99.986929, 99.615949], [99.990275, 99.703425], [99.993221, 99.785398], [99.995794, 99.861721], [99.998031, 99.932812], [100, 100]],
143
+
144
+ urban: [[0, 0], [0.022476, 0.000211], [0.026364, 0.000483], [0.031079, 0.000832], [0.03683, 0.001286], [0.043812, 0.001867], [0.052123, 0.002596], [0.061977, 0.003523], [0.07392, 0.00472], [0.08836, 0.006245], [0.105627, 0.008192], [0.126649, 0.010745], [0.152991, 0.014185], [0.186685, 0.01887], [0.230466, 0.025421], [0.288337, 0.034602], [0.364009, 0.047302], [0.462362, 0.064833], [0.591815, 0.0896], [0.763717, 0.124292], [0.990265, 0.173076], [1.291577, 0.242086], [1.689361, 0.337485], [2.197829, 0.465168], [2.833156, 0.632983], [3.607935, 0.847553], [4.531058, 1.117227], [5.612064, 1.448077], [6.829389, 1.832426], [8.150496, 2.276607], [9.587093, 2.787319], [11.139531, 3.375891], [12.843232, 4.068491], [14.744, 4.894875], [16.882944, 5.879821], [19.274088, 7.043989], [21.898373, 8.377077], [24.70402, 9.889069], [27.725078, 11.639484], [31.02485, 13.647365], [34.577391, 15.957918], [38.361881, 18.496115], [42.220399, 21.242326], [46.204947, 24.281703], [50.279452, 27.501128], [54.284933, 30.800251], [58.020934, 34.003512], [61.527083, 37.314968], [65.059633, 40.928214], [68.631977, 44.751812], [72.134933, 48.615769], [75.35901, 52.332308], [78.289798, 55.927374], [80.980675, 59.439449], [83.426691, 62.80086], [85.63051, 66.024375], [87.600439, 69.040545], [89.324337, 71.839628], [90.82494, 74.405703], [92.132382, 76.808559], [93.28344, 79.051197], [94.291515, 81.128944], [95.165628, 83.025406], [95.917569, 84.765777], [96.566309, 86.346045], [97.111687, 87.728898], [97.557321, 88.935715], [97.923776, 89.98232], [98.224115, 90.896808], [98.472073, 91.712405], [98.683427, 92.454973], [98.864412, 93.127257], [99.018636, 93.73762], [99.150765, 94.298112], [99.266909, 94.826197], [99.369967, 95.321988], [99.460335, 95.779249], [99.538693, 96.200706], [99.60658, 96.587402], [99.665149, 96.942925], [99.716006, 97.27086], [99.76009, 97.572073], [99.798168, 97.847633], [99.830962, 98.099393], [99.858805, 98.322381], [99.881656, 98.513678], [99.900176, 98.68098], [99.91564, 98.83196], [99.928971, 98.970904], [99.940546, 99.098968], [99.950572, 99.216266], [99.959091, 99.321169], [99.966315, 99.415471], [99.97239, 99.500041], [99.97761, 99.578707], [99.982252, 99.653757], [99.986425, 99.725788], [99.990223, 99.796075], [99.993742, 99.865362], [99.996997, 99.933105], [100, 100]],
145
+
146
+ rural: [[0, 0], [0.044856, 0.00021], [0.048153, 0.000449], [0.051764, 0.000737], [0.055907, 0.001092], [0.060801, 0.00155], [0.066762, 0.002138], [0.073899, 0.002894], [0.082612, 0.003876], [0.093168, 0.005148], [0.106164, 0.006835], [0.122508, 0.009095], [0.142886, 0.012069], [0.16758, 0.015833], [0.19669, 0.020566], [0.23118, 0.026579], [0.273098, 0.034447], [0.325019, 0.044958], [0.390807, 0.059161], [0.474177, 0.078318], [0.579565, 0.104359], [0.719638, 0.14226], [0.911325, 0.197784], [1.175054, 0.278915], [1.537895, 0.397967], [2.041596, 0.57646], [2.758826, 0.848809], [3.776691, 1.250019], [5.133703, 1.8048], [6.852621, 2.537016], [8.948744, 3.478047], [11.417648, 4.640509], [14.293846, 6.085098], [17.634387, 7.851123], [21.360828, 9.886831], [25.29956, 12.160142], [29.428878, 14.674388], [33.707138, 17.452533], [38.129755, 20.506174], [42.671778, 23.796002], [47.229102, 27.303349], [51.800588, 31.060857], [56.383771, 35.053496], [60.886558, 39.145526], [65.12792, 43.181575], [69.030354, 47.116849], [72.617033, 51.025646], [75.986887, 54.923636], [79.112304, 58.743632], [81.975561, 62.443223], [84.537139, 65.922443], [86.782817, 69.135506], [88.71901, 72.103335], [90.413815, 74.878966], [91.908817, 77.500639], [93.228911, 79.953304], [94.381653, 82.20716], [95.359352, 84.209133], [96.170082, 85.973719], [96.837248, 87.5051], [97.378991, 88.838761], [97.8273, 90.020506], [98.200135, 91.065991], [98.506646, 91.96714], [98.752685, 92.735267], [98.949784, 93.390185], [99.10766, 93.94721], [99.232528, 94.417506], [99.334335, 94.838423], [99.42121, 95.226477], [99.497035, 95.589049], [99.563629, 95.927413], [99.621726, 96.240868], [99.672192, 96.530566], [99.715746, 96.794464], [99.752893, 97.034788], [99.784601, 97.251679], [99.811139, 97.442528], [99.833203, 97.614678], [99.852181, 97.774104], [99.868723, 97.92227], [99.883153, 98.05955], [99.89576, 98.188276], [99.906951, 98.310902], [99.917064, 98.429897], [99.926265, 98.545001], [99.9346, 98.656238], [99.942191, 98.76409], [99.949086, 98.868769], [99.955426, 98.971691], [99.961279, 99.072938], [99.966677, 99.172455], [99.971673, 99.270765], [99.976302, 99.367541], [99.980575, 99.462525], [99.984496, 99.554946], [99.988063, 99.644199], [99.991314, 99.731953], [99.994366, 99.820708], [99.997264, 99.910225], [100, 100]]
147
+ }
148
+
149
+ // Initial values for the user lines.
150
+ var userLine1Val = 42;
151
+ var userLine2Val = 75;
152
+
153
+ // find the index of the data point with the closest y value.
154
+ // assumes y values are monotonically increasing.
155
+ var findXValue = function (y, data) {
156
+ var l = data.length;
157
+ var temp;
158
+ var d;
159
+ var idx;
160
+ var mid = Math.round(l/2);
161
+ var interval = mid;
162
+ var prevInterval = mid;
163
+ var dist = null;
164
+ var absDist = null;
165
+ var hold = null;
166
+ var ret = null;
167
+ var x, x0, x1, y0, y1, lowidx, hiidx;
168
+
169
+ // check to see if we're in range
170
+ if (y > data[l-1][1]) {
171
+ return [l-1, data[l-1]];
172
+ }
173
+ else if (y < data[0][1]) {
174
+ return [0, data[0]];
175
+ }
176
+
177
+ for (var i=0; i<l; i++) {
178
+ d = data[mid][1];
179
+ dist = d - y;
180
+ absDist = Math.abs(dist);
181
+ interval = Math.round(interval/2);
182
+
183
+ if (absDist < hold || hold === null) {
184
+ hold = absDist;
185
+ idx = mid;
186
+ }
187
+
188
+ // if we're right on the pont, get out of here
189
+ if (dist === 0) {
190
+ ret = [idx, data[idx]];
191
+ break;
192
+ }
193
+
194
+ // if we've narrowed it down to an interval,
195
+ // interpolate and get out of here
196
+ else if (prevInterval === 1) {
197
+ // to the right, interpolate -1 to here
198
+ if (dist > 0) {
199
+ lowidx = idx - 1;
200
+ hiidx = idx;
201
+ }
202
+ else {
203
+ lowidx = idx;
204
+ hiidx = idx + 1;
205
+ }
206
+
207
+ x0 = data[lowidx][0];
208
+ x1 = data[hiidx][0];
209
+ y0 = data[lowidx][1];
210
+ y1 = data[hiidx][1];
211
+
212
+ x = x0 + (y - y0) / (y1 - y0) * (x1 - x0);
213
+
214
+ ret = [idx, [x, y]];
215
+ break;
216
+ }
217
+ // to the right, go left and reduce
218
+ else if (dist > 0) {
219
+ mid -= interval;
220
+ }
221
+ // to the left go right and increase
222
+ else if (dist < 0) {
223
+ mid += interval;
224
+ }
225
+
226
+ prevInterval = interval;
227
+ }
228
+ return ret;
229
+ }
230
+
231
+ // determine initial values for horizontal and vertical overlay lines.
232
+
233
+ var line1x = findXValue(userLine1Val, dataSets.national)[1][0];
234
+ var line2x = findXValue(userLine2Val, dataSets.national)[1][0];;
235
+ var line3y = userLine1Val;
236
+ var line4y = userLine2Val;
237
+
238
+ // make the plot
239
+
240
+ plot1 = $.jqplot("chart1", [dataSets.national], {
241
+ title: "Lorenz Curve",
242
+ // To control the size of the grid, can set the gridPadding option,
243
+
244
+ // gridPadding: {top: 40, bottom: 60, left: 70, right: 50},
245
+
246
+ // but must know size of container ahead of time and figure out what paddings
247
+ // you want to get a square grid.
248
+ // Alternatively, can use the gridDimensions option.
249
+ // gridDimensions doesn't get reapplied on replot() because plots
250
+ // _gridPadding attribute is set the first time it is drawn and it
251
+ // won't be overwritten.
252
+
253
+ gridDimensions: {height: 290, width: 290},
254
+ cursor: {
255
+ show: false
256
+ },
257
+ highlighter: {
258
+ show: true,
259
+ showMarker: false,
260
+ useAxesFormatters: false,
261
+ formatString: '%d, %.1f'
262
+ },
263
+ axesDefaults: {
264
+ labelRenderer: $.jqplot.CanvasAxisLabelRenderer
265
+ },
266
+ seriesDefaults: {
267
+ showMarker: false,
268
+ color: "#4bb2c5"
269
+ },
270
+ axes: {
271
+ xaxis: {
272
+ label: 'Per Capita Expenditure (local currency)',
273
+ pad:0
274
+ },
275
+ yaxis: {
276
+ label: 'Population Share (%)',
277
+ pad: 0
278
+ }
279
+ },
280
+ grid: {
281
+ drawBorder: false,
282
+ shadow: false,
283
+ // background: 'rgba(0,0,0,0)' works.
284
+ background: "white"
285
+ },
286
+ canvasOverlay: {
287
+ show: true,
288
+ objects: [,
289
+ {line: {
290
+ name: "line5",
291
+ start: [0,0],
292
+ stop: [100,100],
293
+ color: "#4bb2c5",
294
+ shadow: false,
295
+ showTooltip: false
296
+ }},
297
+ {horizontalLine: {
298
+ name: "line1",
299
+ y: userLine1Val,
300
+ color: "#d4c35D",
301
+ xmin: 0,
302
+ xmax: line1x,
303
+ shadow: false,
304
+ showTooltip: true,
305
+ tooltipFormatString: "%nPS=%'d",
306
+ showTooltipPrecision: 0.5
307
+ }},
308
+ {horizontalLine: {
309
+ name: "line2",
310
+ y: userLine2Val,
311
+ color: "#d4c35D",
312
+ xmin: 0,
313
+ xmax: line2x,
314
+ shadow: false,
315
+ showTooltip: true,
316
+ tooltipFormatString: "%nPS=%'d",
317
+ showTooltipPrecision: 0.5
318
+ }},
319
+ {verticalLine: {
320
+ name: "line3",
321
+ x: line1x,
322
+ color: "#d4c35D",
323
+ ymin: 0,
324
+ ymax: line3y,
325
+ shadow: false,
326
+ showTooltip: true,
327
+ tooltipFormatString: "PCE=%'d",
328
+ showTooltipPrecision: 0.5
329
+ }},
330
+ {verticalLine: {
331
+ name: "line4",
332
+ x: line2x,
333
+ color: "#d4c35D",
334
+ ymin: 0,
335
+ ymax: line4y,
336
+ shadow: false,
337
+ showTooltip: true,
338
+ tooltipFormatString: "PCE=%'d",
339
+ showTooltipPrecision: 0.5
340
+ }}
341
+ ]
342
+ }
343
+ });
344
+
345
+ // add a date at the bottom.
346
+
347
+ var d = new $.jsDate();
348
+ $("div.jqplot-datestamp").html("Generated on "+d.strftime("%v"));
349
+
350
+ // initialize form elements
351
+ // set these before attaching event handlers.
352
+
353
+ $("input[type=radio][name=dataSeries]").attr("checked", false);
354
+ $("input[type=radio][name=dataSeries][value=national]").attr("checked", true);
355
+
356
+ $("input[type=radio][name=backgroundColor]").attr("checked", false);
357
+ $("input[type=radio][name=backgroundColor][value=white]").attr("checked", true);
358
+
359
+ $("input[type=radio][name=lineWidth]").attr("checked", false);
360
+ $('input[type=radio][name=lineWidth][value="2.5"]').attr("checked", true);
361
+
362
+ $("input[type=text][name=userLine1]").val(userLine1Val);
363
+ $("input[type=text][name=userLine2]").val(userLine2Val);
364
+
365
+ $("input[type=checkbox][name=gridsVertical]").attr("checked", true);
366
+ $("input[type=checkbox][name=gridsHorizontal]").attr("checked", true);
367
+
368
+
369
+ // attach event handlers to form elements
370
+
371
+ $("input[type=radio][name=backgroundColor]").change(function(){
372
+ plot1.grid.background = $(this).val();
373
+ plot1.replot();
374
+ });
375
+
376
+ $("input[type=radio][name=dataSeries]").change(function(){
377
+ var val = $(this).val();
378
+ plot1.series[0].data = dataSets[val];
379
+
380
+ switch (val) {
381
+ case "national":
382
+ plot1.series[0].renderer.shapeRenderer.strokeStyle = "#4bb2c5";
383
+ plot1.plugins.canvasOverlay.get("line5").options.color = "#4bb2c5";
384
+ break;
385
+ case "urban":
386
+ plot1.series[0].renderer.shapeRenderer.strokeStyle = "#c54b62";
387
+ plot1.plugins.canvasOverlay.get("line5").options.color = "#c54b62";
388
+ break;
389
+ case "rural":
390
+ plot1.series[0].renderer.shapeRenderer.strokeStyle = "#b2c54b";
391
+ plot1.plugins.canvasOverlay.get("line5").options.color = "#b2c54b";
392
+ break;
393
+ default:
394
+ plot1.series[0].renderer.shapeRenderer.strokeStyle = "#4bb2c5";
395
+ plot1.plugins.canvasOverlay.get("line5").options.color = "#4bb2c5";
396
+ break;
397
+ }
398
+
399
+ var co = plot1.plugins.canvasOverlay;
400
+ var x1max = findXValue($("input[type=text][name=userLine1]").val(), dataSets[val])[1][0];
401
+ co.get("line1").options.xmax = co.get("line3").options.x = x1max;
402
+ var x2max = findXValue($("input[type=text][name=userLine2]").val(), dataSets[val])[1][0];
403
+ co.get("line2").options.xmax = co.get("line4").options.x = x2max;
404
+
405
+ // hack to make sure plot auto computes a new format string if needed.
406
+ plot1.axes.yaxis.tickOptions.formatString = ''
407
+ plot1.replot({resetAxes:["yaxis"]});
408
+ });
409
+
410
+ $("input[type=checkbox][name=gridsVertical]").change(function(){
411
+ plot1.axes.xaxis.tickOptions.showGridline = this.checked;
412
+ plot1.replot();
413
+ });
414
+
415
+ $("input[type=checkbox][name=gridsHorizontal]").change(function(){
416
+ plot1.axes.yaxis.tickOptions.showGridline = this.checked;
417
+ plot1.replot();
418
+ });
419
+
420
+ $("input[type=text][name=userLine1]").keyup(function(){
421
+ var val = parseFloat($(this).val());
422
+
423
+ var co = plot1.plugins.canvasOverlay;
424
+
425
+ co.get("line1").options.y = val;
426
+ co.get("line3").options.ymax = val;
427
+
428
+ var xx = findXValue(val, plot1.series[0].data)[1][0];
429
+ co.get("line1").options.xmax = co.get("line3").options.x = xx;
430
+
431
+ plot1.replot();
432
+ });
433
+
434
+ $("input[type=text][name=userLine2]").keyup(function(){
435
+ var val = parseFloat($(this).val());
436
+
437
+ var co = plot1.plugins.canvasOverlay;
438
+
439
+ co.get("line2").options.y = val;
440
+ co.get("line4").options.ymax = val;
441
+
442
+ var xx = findXValue(val, plot1.series[0].data)[1][0];
443
+ co.get("line2").options.xmax = co.get("line4").options.x = xx;
444
+
445
+ plot1.replot();
446
+ });
447
+
448
+ $("input[type=radio][name=lineWidth]").change(function(){
449
+ var val = parseFloat($(this).val()), shadowOffset;
450
+ plot1.series[0].renderer.shapeRenderer.lineWidth = val;
451
+ plot1.series[0].renderer.shadowRenderer.lineWidth = val;
452
+ // for thick lines, scale shadow offset.
453
+ if (val > 2.5) {
454
+ shadowOffset = 1.25 * (1 + (Math.atan((val/2.5))/0.785398163 - 1)*0.6);
455
+ // var shadow_offset = this.shadowOffset;
456
+ }
457
+ // for skinny lines, don't make such a big shadow.
458
+ else {
459
+ shadowOffset = 1.25*Math.atan((val/2.5))/0.785398163;
460
+ }
461
+ plot1.series[0].renderer.shadowRenderer.offset = shadowOffset;
462
+ for (var i=0, l=plot1.plugins.canvasOverlay.objects.length; i<l; i++) {
463
+ plot1.plugins.canvasOverlay.objects[i].options.lineWidth = val;
464
+ }
465
+ plot1.replot();
466
+ });
467
+
468
+
469
+ $("div.chart-container").resizable({delay:20, aspectRatio: true});
470
+
471
+ $("div.chart-container").bind("resize", function(event, ui) {
472
+ plot1.replot();
473
+ });
474
+
475
+ $(".jqplot-target").mouseleave(function(){ $('.jqplot-canvasOverlay-tooltip, .jqplot-highlighter-tooltip, .jqpot-cursor-tooltip').hide(); });
476
+ });
477
+
478
+ </script>
479
+
480
+
481
+ <!-- End example scripts -->
482
+
483
+ <!-- Don't touch this! -->
484
+
485
+
486
+ <script class="include" type="text/javascript" src="../jquery.jqplot.min.js"></script>
487
+ <script type="text/javascript" src="syntaxhighlighter/scripts/shCore.min.js"></script>
488
+ <script type="text/javascript" src="syntaxhighlighter/scripts/shBrushJScript.min.js"></script>
489
+ <script type="text/javascript" src="syntaxhighlighter/scripts/shBrushXml.min.js"></script>
490
+ <!-- End Don't touch this! -->
491
+
492
+ <!-- Additional plugins go here -->>
493
+ <script class="include" type="text/javascript" src="../plugins/jqplot.logAxisRenderer.min.js"></script>
494
+ <script class="include" type="text/javascript" src="../plugins/jqplot.cursor.min.js"></script>
495
+ <script class="include" type="text/javascript" src="../plugins/jqplot.canvasTextRenderer.min.js"></script>
496
+ <script class="include" type="text/javascript" src="../plugins/jqplot.canvasAxisLabelRenderer.min.js"></script>
497
+ <script class="include" type="text/javascript" src="../plugins/jqplot.highlighter.min.js"></script>
498
+ <script class="include" type="text/javascript" src="../plugins/jqplot.canvasOverlay.min.js"></script>
499
+ <script class="include" type="text/javascript" src="jquery-ui/js/jquery-ui.min.js"></script>
500
+
501
+ <!-- End additional plugins -->
502
+
503
+
504
+ </div>
505
+ <script type="text/javascript" src="example.min.js"></script>
506
+
507
+ </body>
508
+
509
+
510
+ </html>