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,580 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+
6
+ <title>Pyramid Charts</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_pdf.html">Previous</a> <a href="./">Examples</a> <a href="kcp_pyramid2.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
+
40
+ <style type="text/css">
41
+ .chart-container {
42
+ border: 1px solid darkblue;
43
+ padding: 30px;
44
+ width: 600px;
45
+ height: 700px;
46
+ }
47
+
48
+ #chart1 {
49
+ width: 96%;
50
+ height: 96%;
51
+ }
52
+
53
+ .jqplot-datestamp {
54
+ font-size: 0.8em;
55
+ color: #777;
56
+ /* margin-top: 1em;
57
+ text-align: right;*/
58
+ font-style: italic;
59
+ position: absolute;
60
+ bottom: 15px;
61
+ right: 15px;
62
+ }
63
+
64
+ td.controls li {
65
+ list-style-type: none;
66
+ }
67
+
68
+ td.controls ul {
69
+ margin-top: 0.5em;
70
+ padding-left: 0.2em;
71
+ }
72
+
73
+ pre.code {
74
+ margin-top: 45px;
75
+ clear: both;
76
+ }
77
+
78
+ div.tooltip {
79
+ border: 1px solid #aaa;
80
+ margin-right: 10px;
81
+ }
82
+
83
+ </style>
84
+
85
+ <table class="app">
86
+ <td class="controls">
87
+
88
+ <div style="margin-bottom: 15px;">
89
+ Axes:
90
+ <select name="axisPosition">
91
+ <option value="both">Left &amp; Right</option>
92
+ <option value = "left">Left</option>
93
+ <option value = "right">Right</option>
94
+ <option value = "mid">Mid</option>
95
+ </select>
96
+ </div>
97
+
98
+ <div>
99
+ Background Color:
100
+ <ul>
101
+ <li><input name="backgroundColor" value="white" type="radio" checked />Default</li>
102
+ <li><input name="backgroundColor" value="#efefef" type="radio" />Gray</li>
103
+ </ul>
104
+ </div>
105
+
106
+ <div>
107
+ Pyramid Color:
108
+ <ul>
109
+ <li><input name="seriesColor" value="green" type="radio" checked />Green</li>
110
+ <li><input name="seriesColor" value="blue" type="radio" />Blue</li>
111
+ </ul>
112
+ </div>
113
+
114
+ <div>
115
+ Grids:
116
+ <ul>
117
+ <li><input name="gridsVertical" value="vertical" type="checkbox" checked />Vertical</li>
118
+ <li><input name="gridsHorizontal" value="horizontal" type="checkbox" checked />Horizontal</li>
119
+ <li><input name="showMinorTicks" value="true" type="checkbox" />Only major</li>
120
+ <li><input name="plotBands" value="true" type="checkbox" />Plot Bands</li>
121
+ </ul>
122
+ </div>
123
+
124
+ <div>
125
+ <ul>
126
+ <li><input name="barPadding" value="2" type="checkbox" checked />Gap between bars</li>
127
+ <!-- value for showContour is speed at which to fade lines in/out -->
128
+ <li><input name="showContour" value="500" type="checkbox" checked />Comparison Line</li>
129
+ </ul>
130
+ </div>
131
+
132
+ <div class="tooltip">
133
+ <table>
134
+ <tr>
135
+ <td>Age: </td><td><div class="tooltip-item" id="tooltipAge">&nbsp;</div></td>
136
+ </tr>
137
+ <tr>
138
+ <td>Male: </td><td><div class="tooltip-item" id="tooltipMale">&nbsp;</div></td>
139
+ </tr>
140
+ <tr>
141
+ <td>Female: </td><td><div class="tooltip-item" id="tooltipFemale">&nbsp;</div></td>
142
+ </tr>
143
+ <tr>
144
+ <td>Ratio: </td><td><div class="tooltip-item" id="tooltipRatio">&nbsp;</div></td>
145
+ </tr>
146
+ </table>
147
+ </div>
148
+ </td>
149
+
150
+ <td class="chart">
151
+ <div class="chart-container">
152
+ <div id="chart1"></div>
153
+ <div class="jqplot-datestamp"></div>
154
+ </div>
155
+ </td>
156
+
157
+ </table>
158
+
159
+ <pre class="code brush:js"></pre>
160
+
161
+
162
+
163
+ <script class="code" type="text/javascript" language="javascript">
164
+ $(document).ready(function(){
165
+
166
+ // the "x" values from the data will go into the ticks array.
167
+ // ticks should be strings for this case where we have values like "75+"
168
+ var ticks = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39", "40", "41", "42", "43", "44", "45", "46", "47", "48", "49", "50", "51", "52", "53", "54", "55", "56", "57", "58", "59", "60", "61", "62", "63", "64", "65", "66", "67", "68", "69", "70", "71", "72", "73", "74", "75+", ""];
169
+
170
+ // The "y" values of the data are put into seperate series arrays.
171
+ var male = [0.635441, 1.066868, 0.889602, 0.816883, 1.016458, 0.916705, 0.79569, 0.970443, 1.046451, 1.335686, 0.926962, 0.936646, 0.919405, 0.722027, 0.896342, 0.993397, 0.613794, 0.916921, 0.828748, 0.43487, 0.391652, 0.517303, 0.507104, 0.336168, 0.554176, 0.691826, 0.66553, 0.686232, 0.7097, 0.356915, 0.756028, 0.430155, 0.420597, 0.608589, 0.609348, 0.83607, 0.79871, 0.63388, 0.866719, 0.711042, 1.160429, 0.439268, 0.659694, 0.468406, 0.340002, 0.996662, 0.371047, 0.638918, 0.462334, 0.467053, 0.545638, 0.463275, 0.480992, 0.515747, 0.499415, 0.287639, 0.520332, 0.443779, 0.334986, 0.43161, 0.474405, 0.179186, 0.620127, 0.219074, 0.411669, 0.495684, 0.315231, 0.275056, 0.157341, 0.113926, 0.24991, 0.128113, 0.175297, 0.103093, 0.253292, 0.988836];
172
+ var female = [0.767078, 0.679554, 1.064493, 0.915063, 0.860792, 0.785728, 0.892471, 0.687886, 1.055313, 0.921839, 0.659624, 1.14516, 0.910735, 1.279864, 0.714669, 0.873929, 0.928453, 0.595752, 1.093534, 0.501142, 0.52829, 0.411606, 0.633309, 0.616121, 0.621781, 0.621598, 0.638378, 0.703724, 0.742589, 0.48523, 0.735727, 0.898816, 0.740614, 0.991105, 1.48909, 1.226996, 1.020624, 0.737742, 0.946817, 0.69129, 0.933744, 0.957472, 0.793112, 0.581121, 0.767528, 1.031739, 1.202133, 0.626926, 0.959522, 0.594303, 1.202145, 0.611707, 0.480779, 0.383338, 0.532876, 0.849878, 0.52453, 0.660183, 0.25419, 0.137567, 0.762322, 0.490294, 0.463194, 0.566921, 0.353006, 0.730591, 0.34669, 0.271638, 0.309785, 0.152756, 0.478111, 0.177234, 0.269302, 0.396318, 0.194934, 1.683044];
173
+ var male2 = [0.230476, 0.175917, 0.225027, 0.40564, 0.408617, 0.495873, 0.441314, 0.282774, 0.47483, 0.393433, 0.580612, 0.220204, 0.514281, 0.32985, 0.514933, 0.507871, 0.398236, 0.362535, 0.603625, 0.528885, 0.550904, 0.87645, 0.857331, 0.713371, 0.703566, 0.703473, 0.858118, 0.751679, 0.832039, 0.752134, 1.202689, 1.069239, 1.051431, 0.732728, 0.992696, 0.828825, 0.723044, 0.857868, 1.088298, 0.86951, 0.914989, 0.549574, 0.672405, 0.637425, 0.530195, 0.706179, 0.941525, 0.576152, 0.913033, 0.647477, 0.734785, 0.441276, 0.583452, 0.537074, 0.7625, 0.662768, 0.307013, 0.384606, 0.470416, 0.22771, 0.470173, 0.152773, 0.338433, 0.348797, 0.10273, 0.285215, 0.139796, 0.186955, 0.143478, 0.178882, 0.141022, 0.1435, 0.146959, 0.056583, 0.05317, 0.784258];
174
+ var female2 = [0.203297, 0.298698, 0.452947, 0.783013, 0.50033, 0.53629, 0.451817, 0.69927, 0.741356, 0.545433, 0.559643, 0.334842, 0.443899, 0.437309, 0.584658, 0.451757, 0.509258, 0.73483, 0.640501, 0.698825, 0.803701, 1.018148, 1.504918, 0.701318, 0.781324, 1.792142, 0.968484, 1.3288, 1.059729, 1.079985, 2.245553, 1.080526, 1.122927, 1.512428, 1.296163, 1.047212, 0.988065, 1.239462, 1.521174, 1.05187, 1.253013, 0.983437, 1.181799, 1.090029, 0.718064, 1.578813, 1.121987, 1.010202, 1.438581, 1.051654, 1.656156, 0.732428, 0.719311, 0.742441, 0.623806, 0.643911, 0.579092, 0.472909, 0.683453, 0.39008, 0.437458, 0.464595, 0.385552, 0.520029, 0.240536, 0.457316, 0.339587, 0.203276, 0.282141, 0.19517, 0.283663, 0.12404, 0.147211, 0.141153, 0.177653, 1.193951];
175
+
176
+ // Custom color arrays are set up for each series to get the look that is desired.
177
+ // Two color arrays are created for the default and optional color which the user can pick.
178
+ var greenColors = ["#526D2C", "#77933C", "#C57225", "#C57225"];
179
+ var blueColors = ["#3F7492", "#4F9AB8", "#C57225", "#C57225"];
180
+
181
+ // To accomodate changing y axis, need to keep track of plot options, so they are defined separately
182
+ // changing axes will require recreating the plot, so need to keep
183
+ // track of state changes.
184
+ var plotOptions = {
185
+ // We set up a customized title which acts as labels for the left and right sides of the pyramid.
186
+ title: '<div style="float:left;width:50%;text-align:center">Male</div><div style="float:right;width:50%;text-align:center">Female</div>',
187
+
188
+ // by default, the series will use the green color scheme.
189
+ seriesColors: greenColors,
190
+
191
+ grid: {
192
+ drawBorder: false,
193
+ shadow: false,
194
+ background: 'white',
195
+ rendererOptions: {
196
+ // plotBands is an option of the pyramidGridRenderer.
197
+ // it will put banding at starting at a specified value
198
+ // along the y axis with an adjustable interval.
199
+ plotBands: {
200
+ show: false
201
+ }
202
+ }
203
+ },
204
+
205
+ // This makes the effective starting value of the axes 0 instead of 1.
206
+ // For display, the y axis will use the ticks we supplied.
207
+ defaultAxisStart: 0,
208
+ seriesDefaults: {
209
+ renderer: $.jqplot.PyramidRenderer,
210
+ rendererOptions: {
211
+ barPadding: 2,
212
+ offsetBars: true
213
+ },
214
+ yaxis: 'yaxis',
215
+ shadow: false
216
+ },
217
+
218
+ // We have 4 series, the left and right pyramid bars and
219
+ // the left and rigt overlay lines.
220
+ series: [
221
+ // For pyramid plots, the default side is right.
222
+ // We want to override here to put first set of bars
223
+ // on left.
224
+ {rendererOptions:{side: 'left'}},
225
+ {yaxis: 'y2axis'},
226
+ // Pyramid series are filled bars by default.
227
+ // The overlay series will be unfilled lines.
228
+ {
229
+ rendererOptions: {
230
+ fill: false,
231
+ side: 'left'
232
+ }
233
+ },
234
+ {
235
+ yaxis: 'y2axis',
236
+ rendererOptions: {
237
+ fill: false
238
+ }
239
+ }
240
+ ],
241
+
242
+ // Set up all the y axes, since users are allowed to switch between them.
243
+ // The only axis that will show is the one that the series are "attached" to.
244
+ // We need the appropriate options for the others for when the user switches.
245
+ axes: {
246
+ xaxis: {
247
+ tickOptions: {},
248
+ rendererOptions: {
249
+ baselineWidth: 2
250
+ }
251
+ },
252
+ yaxis: {
253
+ label: 'Age',
254
+ // Use canvas label renderer to get rotated labels.
255
+ labelRenderer: $.jqplot.CanvasAxisLabelRenderer,
256
+ // include empty tick options, they will be used
257
+ // as users set options with plot controls.
258
+ tickOptions: {},
259
+ tickInterval: 5,
260
+ showMinorTicks: true,
261
+ ticks: ticks,
262
+ rendererOptions: {
263
+ category: false,
264
+ baselineWidth: 2
265
+ }
266
+ },
267
+ yMidAxis: {
268
+ label: 'Age',
269
+ // include empty tick options, they will be used
270
+ // as users set options with plot controls.
271
+ tickOptions: {},
272
+ tickInterval: 5,
273
+ showMinorTicks: true,
274
+ ticks: ticks,
275
+ rendererOptions: {
276
+ category: false,
277
+ baselineWidth: 2
278
+ }
279
+ },
280
+ y2axis: {
281
+ label: 'Age',
282
+ // Use canvas label renderer to get rotated labels.
283
+ labelRenderer: $.jqplot.CanvasAxisLabelRenderer,
284
+ // include empty tick options, they will be used
285
+ // as users set options with plot controls.
286
+ tickOptions: {},
287
+ tickInterval: 5,
288
+ showMinorTicks: true,
289
+ ticks: ticks,
290
+ rendererOptions: {
291
+ category: false,
292
+ baselineWidth: 2
293
+ }
294
+ }
295
+ }
296
+ };
297
+
298
+ // initialize form elements
299
+ // set these before attaching event handlers.
300
+
301
+ $('input[type=checkbox][name=gridsVertical]').attr('checked', true);
302
+ $('input[type=checkbox][name=gridsHorizontal]').attr('checked', true);
303
+ $('input[type=checkbox][name=showMinorTicks]').attr('checked', false);
304
+ $('input[type=checkbox][name=plotBands]').attr('checked', false);
305
+ $('input[type=checkbox][name=showContour]').attr('checked', true);
306
+ $('input[type=checkbox][name=barPadding]').attr('checked', true);
307
+ $('select[name=axisPosition]').val('both');
308
+ $('input[type=radio][name=backgroundColor]').attr('checked', false);
309
+ $('input[type=radio][name=backgroundColor][value=white]').attr('checked', true);
310
+ $('input[type=radio][name=backgroundColor]').attr('checked', false);
311
+ $('input[type=radio][name=backgroundColor][value=white]').attr('checked', true);
312
+ $('input[type=radio][name=seriesColor]').attr('checked', false);
313
+ $('input[type=radio][name=seriesColor][value=green]').attr('checked', true);
314
+
315
+ plot1 = $.jqplot('chart1', [male, female, male2, female2], plotOptions);
316
+
317
+
318
+ // After plot creation, check to see if contours should be displayed
319
+ checkContour();
320
+
321
+ //////
322
+ // The followng functions use verbose css selectors to make
323
+ // it clear exactly which elements they are binging to/operating on
324
+ //////
325
+
326
+ //////
327
+ // Function which checkes if the countour lines checkbox is checked.
328
+ // If not, hide the contour lines by hiding the canvases they are
329
+ // drawn on.
330
+ //////
331
+ function checkContour() {
332
+ if (!$('input[type=checkbox][name=showContour]').get(0).checked) {
333
+ plot1.series[2].canvas._elem.addClass('jqplot-series-hidden');
334
+ plot1.series[2].canvas._elem.hide();
335
+ plot1.series[3].canvas._elem.addClass('jqplot-series-hidden');
336
+ plot1.series[3].canvas._elem.hide();
337
+ }
338
+ }
339
+
340
+ $('select[name=axisPosition]').change(function(){
341
+ // this refers to the html element we are binding to.
342
+ // $(this) is jQuery object on that element.
343
+
344
+ switch ($(this).val()) {
345
+ case 'both':
346
+ plotOptions.series[0].yaxis = 'yaxis';
347
+ plotOptions.series[1].yaxis = 'y2axis';
348
+ plotOptions.series[2].yaxis = 'yaxis';
349
+ plotOptions.series[3].yaxis = 'y2axis';
350
+ break;
351
+ case 'left':
352
+ plotOptions.series[0].yaxis = 'yaxis';
353
+ plotOptions.series[1].yaxis = 'yaxis';
354
+ plotOptions.series[2].yaxis = 'yaxis';
355
+ plotOptions.series[3].yaxis = 'yaxis';
356
+ break;
357
+ case 'right':
358
+ plotOptions.series[0].yaxis = 'y2axis';
359
+ plotOptions.series[1].yaxis = 'y2axis';
360
+ plotOptions.series[2].yaxis = 'y2axis';
361
+ plotOptions.series[3].yaxis = 'y2axis';
362
+ break;
363
+ case 'mid':
364
+ plotOptions.series[0].yaxis = 'yMidAxis';
365
+ plotOptions.series[1].yaxis = 'yMidAxis';
366
+ plotOptions.series[2].yaxis = 'yMidAxis';
367
+ plotOptions.series[3].yaxis = 'yMidAxis';
368
+ break;
369
+ default:
370
+ break;
371
+
372
+ }
373
+
374
+ plot1.destroy();
375
+ plot1 = $.jqplot('chart1', [male, female, male2, female2], plotOptions);
376
+ // Finally, check to see if we need to hide contour lines.
377
+ checkContour();
378
+ });
379
+
380
+ $('input[type=radio][name=backgroundColor]').change(function(){
381
+ // this refers to the html element we are binding to.
382
+ // $(this) is jQuery object on that element.
383
+ plot1.grid.background = $(this).val();
384
+ plotOptions.grid.background = $(this).val();
385
+ plot1.replot();
386
+ // Finally, check to see if we need to hide contour lines.
387
+ checkContour();
388
+ });
389
+
390
+ $('input[type=radio][name=seriesColor]').change(function(){
391
+ // this refers to the html element we are binding to.
392
+ // $(this) is jQuery object on that element.
393
+ if ($(this).val() === 'blue') {
394
+ // reset highlight colors so they will be recalculated.
395
+ plot1.series[0].highlightColors = [];
396
+ plot1.series[1].highlightColors = [];
397
+ // reset series color to properly calculate highlight color.
398
+ plot1.series[0].color = blueColors[0];
399
+ plot1.series[1].color = blueColors[1];
400
+ // to actually draw a new color, have to set the color on the shaperenderer.
401
+ plot1.series[0].renderer.shapeRenderer.fillStyle = blueColors[0];
402
+ plot1.series[1].renderer.shapeRenderer.fillStyle = blueColors[1];
403
+ // update plot options state.
404
+ plotOptions.seriesColors = blueColors;
405
+ }
406
+ else if ($(this).val() === 'green') {
407
+ // reset highlight colors so they will be recalculated.
408
+ plot1.series[0].highlightColors = [];
409
+ plot1.series[1].highlightColors = [];
410
+ // reset series color to properly calculate highlight color.
411
+ plot1.series[0].color = greenColors[0];
412
+ plot1.series[1].color = greenColors[1];
413
+ // to actually draw a new color, have to set the color on the shaperenderer.
414
+ plot1.series[0].renderer.shapeRenderer.fillStyle = greenColors[0];
415
+ plot1.series[1].renderer.shapeRenderer.fillStyle = greenColors[1];
416
+ // update plot options state.
417
+ plotOptions.seriesColors = blueColors;
418
+ }
419
+ plot1.replot();
420
+ // Finally, check to see if we need to hide contour lines.
421
+ checkContour();
422
+ });
423
+
424
+ $('input[type=checkbox][name=gridsVertical]').change(function(){
425
+ // this refers to the html element we are binding to.
426
+ // $(this) is jQuery object on that element.
427
+ plot1.axes.xaxis.tickOptions.showGridline = this.checked;
428
+ plotOptions.axes.xaxis.tickOptions.showGridline = this.checked;
429
+ plot1.replot();
430
+ // Finally, check to see if we need to hide contour lines.
431
+ checkContour();
432
+ });
433
+
434
+ $('input[type=checkbox][name=gridsHorizontal]').change(function(){
435
+ // this refers to the html element we are binding to.
436
+ // $(this) is jQuery object on that element.
437
+ plot1.axes.yaxis.tickOptions.showGridline = this.checked;
438
+ plot1.axes.y2axis.tickOptions.showGridline = this.checked;
439
+ plot1.axes.yMidAxis.tickOptions.showGridline = this.checked;
440
+ plotOptions.axes.yaxis.tickOptions.showGridline = this.checked;
441
+ plotOptions.axes.y2axis.tickOptions.showGridline = this.checked;
442
+ plotOptions.axes.yMidAxis.tickOptions.showGridline = this.checked;
443
+ plot1.replot();
444
+ // Finally, check to see if we need to hide contour lines.
445
+ checkContour();
446
+ });
447
+
448
+ $('input[type=checkbox][name=showMinorTicks]').change(function(){
449
+ // this refers to the html element we are binding to.
450
+ // $(this) is jQuery object on that element.
451
+ plot1.axes.yaxis.showMinorTicks = !this.checked;
452
+ plot1.axes.y2axis.showMinorTicks = !this.checked;
453
+ plot1.axes.yMidAxis.showMinorTicks = !this.checked;
454
+ plotOptions.axes.yaxis.showMinorTicks = !this.checked;
455
+ plotOptions.axes.y2axis.showMinorTicks = !this.checked;
456
+ plotOptions.axes.yMidAxis.showMinorTicks = !this.checked;
457
+ plot1.replot();
458
+ // Finally, check to see if we need to hide contour lines.
459
+ checkContour();
460
+ });
461
+
462
+ $('input[type=checkbox][name=plotBands]').change(function(){
463
+ // this refers to the html element we are binding to.
464
+ // $(this) is jQuery object on that element.
465
+ plot1.grid.plotBands.show = this.checked;
466
+ plotOptions.grid.rendererOptions.plotBands.show = this.checked;
467
+ plot1.replot();
468
+ // Finally, check to see if we need to hide contour lines.
469
+ checkContour();
470
+ });
471
+
472
+ $('input[type=checkbox][name=showContour]').change(function(){
473
+ // this refers to the html element we are binding to.
474
+ // $(this) is jQuery object on that element.
475
+ var speed = $(this).val();
476
+ if (this.checked) {
477
+ plot1.series[2].canvas._elem.removeClass('jqplot-series-hidden');
478
+ plot1.series[2].canvas._elem.fadeIn(speed);
479
+ plot1.series[3].canvas._elem.removeClass('jqplot-series-hidden');
480
+ plot1.series[3].canvas._elem.fadeIn(speed);
481
+ }
482
+ else {
483
+ plot1.series[2].canvas._elem.addClass('jqplot-series-hidden');
484
+ plot1.series[2].canvas._elem.fadeOut(speed);
485
+ plot1.series[3].canvas._elem.addClass('jqplot-series-hidden');
486
+ plot1.series[3].canvas._elem.fadeOut(speed);
487
+ }
488
+ });
489
+
490
+ $('input[type=checkbox][name=barPadding]').change(function(){
491
+ // this refers to the html element we are binding to.
492
+ // $(this) is jQuery object on that element.
493
+ if (this.checked) {
494
+ var val = parseFloat($(this).val());
495
+ plot1.series[0].barPadding = val;
496
+ plot1.series[1].barPadding = val;
497
+ plotOptions.seriesDefaults.rendererOptions.barPadding = val;
498
+ }
499
+ else {
500
+ plot1.series[0].barPadding = 0;
501
+ plot1.series[1].barPadding = 0;
502
+ plotOptions.seriesDefaults.rendererOptions.barPadding = 0;
503
+ }
504
+ plot1.replot();
505
+ // Finally, check to see if we need to hide contour lines.
506
+ checkContour();
507
+ });
508
+
509
+ // bind to the data highlighting event to make custom tooltip:
510
+ $('.jqplot-target').bind('jqplotDataHighlight', function(evt, seriesIndex, pointIndex, data) {
511
+ // Here, assume first series is male poulation and second series is female population.
512
+ // Adjust series indices as appropriate.
513
+ var malePopulation = Math.abs(plot1.series[0].data[pointIndex][1]);
514
+ var femalePopulation = Math.abs(plot1.series[1].data[pointIndex][1]);
515
+ var ratio = femalePopulation / malePopulation * 100;
516
+
517
+ $('#tooltipMale').stop(true, true).fadeIn(250).html(malePopulation.toPrecision(4));
518
+ $('#tooltipFemale').stop(true, true).fadeIn(250).html(femalePopulation.toPrecision(4));
519
+ $('#tooltipRatio').stop(true, true).fadeIn(250).html(ratio.toPrecision(4));
520
+
521
+ // Since we don't know which axis is rendererd and acive with out a little extra work,
522
+ // just use the supplied ticks array to get the age label.
523
+ $('#tooltipAge').stop(true, true).fadeIn(250).html(ticks[pointIndex]);
524
+ });
525
+
526
+ // bind to the data highlighting event to make custom tooltip:
527
+ $('.jqplot-target').bind('jqplotDataUnhighlight', function(evt, seriesIndex, pointIndex, data) {
528
+ // clear out all the tooltips.
529
+ $('.tooltip-item').stop(true, true).fadeOut(200).html('');
530
+ });
531
+
532
+ // add a date at the bottom.
533
+
534
+ var d = new $.jsDate();
535
+ $('div.jqplot-datestamp').html('Generated on '+d.strftime('%v'));
536
+
537
+ $("div.chart-container").resizable({delay:20});
538
+
539
+ $("div.chart-container").bind("resize", function(event, ui) {
540
+ plot1.replot();
541
+ });
542
+
543
+ });
544
+ </script>
545
+
546
+
547
+ <!-- End example scripts -->
548
+
549
+ <!-- Don't touch this! -->
550
+
551
+
552
+ <script class="include" type="text/javascript" src="../jquery.jqplot.min.js"></script>
553
+ <script type="text/javascript" src="syntaxhighlighter/scripts/shCore.min.js"></script>
554
+ <script type="text/javascript" src="syntaxhighlighter/scripts/shBrushJScript.min.js"></script>
555
+ <script type="text/javascript" src="syntaxhighlighter/scripts/shBrushXml.min.js"></script>
556
+ <!-- End Don't touch this! -->
557
+
558
+ <!-- Additional plugins go here -->
559
+
560
+ <script class="include" type="text/javascript" src="../plugins/jqplot.categoryAxisRenderer.min.js"></script>
561
+
562
+ <!-- load the pyramidAxis and Grid renderers in production. pyramidRenderer will try to load via ajax if not present, but that is not optimal and depends on paths being set. -->
563
+ <script class="include" type="text/javascript" src="../plugins/jqplot.pyramidAxisRenderer.min.js"></script>
564
+ <script class="include" type="text/javascript" src="../plugins/jqplot.pyramidGridRenderer.min.js"></script>
565
+
566
+ <script class="include" type="text/javascript" src="../plugins/jqplot.pyramidRenderer.min.js"></script>
567
+ <script class="include" type="text/javascript" src="../plugins/jqplot.canvasTextRenderer.min.js"></script>
568
+ <script class="include" type="text/javascript" src="../plugins/jqplot.canvasAxisLabelRenderer.min.js"></script>
569
+ <script class="include" type="text/javascript" src="jquery-ui/js/jquery-ui.min.js"></script>
570
+
571
+ <!-- End additional plugins -->
572
+
573
+
574
+ </div>
575
+ <script type="text/javascript" src="example.min.js"></script>
576
+
577
+ </body>
578
+
579
+
580
+ </html>