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,114 @@
1
+ $(document).ready(function(){
2
+ if (!$.jqplot._noCodeBlock) {
3
+ $('script.code').each(function(index) {
4
+ if ($('pre.code').eq(index).length ) {
5
+ $('pre.code').eq(index).text($(this).html());
6
+ }
7
+ else {
8
+ // var str = $(this).text();
9
+ // $('div.jqplot-target').eq(index).after($('<pre class="code">'+str+'</pre>'));
10
+ var pre = $('<pre class="code prettyprint brush: js"></pre>');
11
+ $('div.jqplot-target').eq(index).after(pre);
12
+ pre.text($(this).html());
13
+ pre = null;
14
+ }
15
+ });
16
+
17
+ $('script.common').each(function(index) {
18
+ $('pre.common').eq(index).text($(this).html());
19
+ });
20
+
21
+ var elstr='';
22
+ if ($('script.include, link.include').length > 0) {
23
+
24
+ if ($('pre.include').length == 0) {
25
+ var temp = [
26
+ '<div class="code prettyprint include">',
27
+ '<p class="text">The charts on this page depend on the following files:</p>',
28
+ '<pre class="include prettyprint brush: html gutter: false"></pre>',
29
+ '</div>'
30
+ ];
31
+
32
+ temp = $(temp.join('\n'));
33
+ $('div.example-content').append(temp);
34
+ temp = null;
35
+ }
36
+
37
+
38
+ $('script.include').each(function(index) {
39
+ if (elstr !== '') {
40
+ elstr += '\n';
41
+ }
42
+ elstr += '<script type="text/javascript" src="'+$(this).attr('src')+'"></script>';
43
+ });
44
+
45
+ $('link.include').each(function(index) {
46
+ if (elstr !== '') {
47
+ elstr += '\n';
48
+ }
49
+ elstr += '<link rel="stylesheet" type="text/css" hrf="'+$(this).attr('href')+'" />';
50
+ })
51
+
52
+ $('pre.include').text(elstr);
53
+ }
54
+
55
+ else {
56
+ $('pre.include').remove();
57
+ $('div.include').remove();
58
+ }
59
+ }
60
+
61
+ if (!$.jqplot.use_excanvas) {
62
+ $('div.jqplot-target').each(function(){
63
+ var outerDiv = $(document.createElement('div'));
64
+ var header = $(document.createElement('div'));
65
+ var div = $(document.createElement('div'));
66
+
67
+ outerDiv.append(header);
68
+ outerDiv.append(div);
69
+
70
+ outerDiv.addClass('jqplot-image-container');
71
+ header.addClass('jqplot-image-container-header');
72
+ div.addClass('jqplot-image-container-content');
73
+
74
+ header.html('Right Click to Save Image As...');
75
+
76
+ var close = $(document.createElement('a'));
77
+ close.addClass('jqplot-image-container-close');
78
+ close.html('Close');
79
+ close.attr('href', '#');
80
+ close.click(function() {
81
+ $(this).parents('div.jqplot-image-container').hide(500);
82
+ })
83
+ header.append(close);
84
+
85
+ $(this).after(outerDiv);
86
+ outerDiv.hide();
87
+
88
+ outerDiv = header = div = close = null;
89
+
90
+ if (!$.jqplot._noToImageButton) {
91
+ var btn = $(document.createElement('button'));
92
+ btn.text('View Plot Image');
93
+ btn.addClass('jqplot-image-button');
94
+ btn.bind('click', {chart: $(this)}, function(evt) {
95
+ var imgelem = evt.data.chart.jqplotToImageElem();
96
+ var div = $(this).nextAll('div.jqplot-image-container').first();
97
+ div.children('div.jqplot-image-container-content').empty();
98
+ div.children('div.jqplot-image-container-content').append(imgelem);
99
+ div.show(500);
100
+ div = null;
101
+ });
102
+
103
+ $(this).after(btn);
104
+ btn.after('<br />');
105
+ btn = null;
106
+ }
107
+ });
108
+ }
109
+
110
+ SyntaxHighlighter.defaults['toolbar'] = true;
111
+ SyntaxHighlighter.all();
112
+
113
+ $(document).unload(function() {$('*').unbind(); });
114
+ });
@@ -0,0 +1 @@
1
+ $(document).ready(function(){if(!$.jqplot._noCodeBlock){$("script.code").each(function(c){if($("pre.code").eq(c).length){$("pre.code").eq(c).text($(this).html())}else{var d=$('<pre class="code prettyprint brush: js"></pre>');$("div.jqplot-target").eq(c).after(d);d.text($(this).html());d=null}});$("script.common").each(function(c){$("pre.common").eq(c).text($(this).html())});var b="";if($("script.include, link.include").length>0){if($("pre.include").length==0){var a=['<div class="code prettyprint include">','<p class="text">The charts on this page depend on the following files:</p>','<pre class="include prettyprint brush: html gutter: false"></pre>',"</div>"];a=$(a.join("\n"));$("div.example-content").append(a);a=null}$("script.include").each(function(c){if(b!==""){b+="\n"}b+='<script type="text/javascript" src="'+$(this).attr("src")+'"><\/script>'});$("link.include").each(function(c){if(b!==""){b+="\n"}b+='<link rel="stylesheet" type="text/css" hrf="'+$(this).attr("href")+'" />'});$("pre.include").text(b)}else{$("pre.include").remove();$("div.include").remove()}}if(!$.jqplot.use_excanvas){$("div.jqplot-target").each(function(){var d=$(document.createElement("div"));var g=$(document.createElement("div"));var f=$(document.createElement("div"));d.append(g);d.append(f);d.addClass("jqplot-image-container");g.addClass("jqplot-image-container-header");f.addClass("jqplot-image-container-content");g.html("Right Click to Save Image As...");var e=$(document.createElement("a"));e.addClass("jqplot-image-container-close");e.html("Close");e.attr("href","#");e.click(function(){$(this).parents("div.jqplot-image-container").hide(500)});g.append(e);$(this).after(d);d.hide();d=g=f=e=null;if(!$.jqplot._noToImageButton){var c=$(document.createElement("button"));c.text("View Plot Image");c.addClass("jqplot-image-button");c.bind("click",{chart:$(this)},function(h){var j=h.data.chart.jqplotToImageElem();var i=$(this).nextAll("div.jqplot-image-container").first();i.children("div.jqplot-image-container-content").empty();i.children("div.jqplot-image-container-content").append(j);i.show(500);i=null});$(this).after(c);c.after("<br />");c=null}})}SyntaxHighlighter.defaults.toolbar=true;SyntaxHighlighter.all();$(document).unload(function(){$("*").unbind()})});
@@ -0,0 +1,135 @@
1
+ body {
2
+ margin:0px;
3
+ padding: 0px;
4
+ font-family:"Trebuchet MS", Arial, Helvetica, sans-serif;
5
+ }
6
+
7
+ div.logo {
8
+ position: relative;
9
+ height: 94px;
10
+ padding: 0px;
11
+ margin-bottom: 30px;
12
+ top: 0px;
13
+ background-image: url('./images/logo.jpg');
14
+ background-repeat: no-repeat;
15
+ background-color: #292929;
16
+ }
17
+
18
+ div.nav {
19
+ position:relative;
20
+ top: 70px;
21
+ text-align: right;
22
+ }
23
+
24
+ a.nav span {
25
+ font-size: 11px;
26
+ position: relative;
27
+ bottom: 2px;
28
+ }
29
+
30
+ a.nav:visited {
31
+ text-decoration: none;
32
+ border: 0px;
33
+ color: #aaaaaa;
34
+ }
35
+
36
+ a.nav, a.nav:link {
37
+ border: 0px;
38
+ text-decoration: none;
39
+ font-family: Tahoma, "Helvetica Neue", "Trebuchet MS", Verdana, Arial, sans-serif;
40
+ font-size: 16px;
41
+ color: #aaaaaa;
42
+ margin-right: 11px;
43
+ }
44
+
45
+ a.nav:hover {
46
+ text-decoration: none;
47
+ border: 0px;
48
+ color: #E0771C;
49
+ }
50
+
51
+ a.nav:active {
52
+ text-decoration: none;
53
+ border: 0px;
54
+ color: #E0771C;
55
+ }
56
+
57
+ div.example-content {
58
+ margin: 30px 50px;
59
+ }
60
+
61
+ div.example-nav {
62
+ margin-bottom:30px;
63
+ }
64
+
65
+ pre.code-block{
66
+ background: #D8F4DC;
67
+ border: 1px solid rgb(200, 200, 200);
68
+ padding-top: 1em;
69
+ padding-left: 3em;
70
+ padding-bottom: 1em;
71
+ margin-top: 1em;
72
+ margin-bottom: 3em;
73
+
74
+ }
75
+
76
+ pre.code {
77
+ /* background: #D8F4DC;*/
78
+ border: 1px solid rgb(200, 200, 200);
79
+ padding-top: 1em;
80
+ padding-left: 3em;
81
+ padding-bottom: 1em;
82
+ margin-top: 1em;
83
+ margin-bottom: 4em;
84
+
85
+ }
86
+
87
+ div.include {
88
+ margin-bottom: 2em;
89
+ }
90
+
91
+ p {
92
+ margin: 2em 0;
93
+ }
94
+
95
+ .jqplot-image-button {
96
+ margin-bottom: 15px;
97
+ margin-top: 15px;
98
+ }
99
+
100
+ div.jqplot-image-container {
101
+ display: none;
102
+ background-color: #fff;
103
+ border: 1px solid #999;
104
+ display: inline-block;
105
+ margin-top: 25px;
106
+ }
107
+
108
+ div.jqplot-image-container-header {
109
+ font-size: 1.0em;
110
+ font-weight: bold;
111
+ padding: 5px 15px;
112
+ background-color: #eee;
113
+ }
114
+
115
+ div.jqplot-image-container-content {
116
+ padding: 15px;
117
+ }
118
+
119
+ a.jqplot-image-container-close {
120
+ float: right;
121
+ }
122
+
123
+ div.example-plot {
124
+ width: 500px;
125
+ height: 300px;
126
+ }
127
+
128
+ .jqplot-table-legend-label {
129
+ white-space: nowrap;
130
+ }
131
+
132
+ div.syntaxhighlighter {
133
+ margin-top: 4em !important;
134
+ margin-bottom: 3em !important;
135
+ }
@@ -0,0 +1 @@
1
+ body{margin:0;padding:0;font-family:"Trebuchet MS",Arial,Helvetica,sans-serif;}div.logo{position:relative;height:94px;padding:0;margin-bottom:30px;top:0;background-image:url('./images/logo.jpg');background-repeat:no-repeat;background-color:#292929;}div.nav{position:relative;top:70px;text-align:right;}a.nav span{font-size:11px;position:relative;bottom:2px;}a.nav:visited{text-decoration:none;border:0;color:#aaa;}a.nav,a.nav:link{border:0;text-decoration:none;font-family:Tahoma,"Helvetica Neue","Trebuchet MS",Verdana,Arial,sans-serif;font-size:16px;color:#aaa;margin-right:11px;}a.nav:hover{text-decoration:none;border:0;color:#E0771C;}a.nav:active{text-decoration:none;border:0;color:#E0771C;}div.example-content{margin:30px 50px;}div.example-nav{margin-bottom:30px;}pre.code-block{background:#D8F4DC;border:1px solid #c8c8c8;padding-top:1em;padding-left:3em;padding-bottom:1em;margin-top:1em;margin-bottom:3em;}pre.code{border:1px solid #c8c8c8;padding-top:1em;padding-left:3em;padding-bottom:1em;margin-top:1em;margin-bottom:4em;}div.include{margin-bottom:2em;}p{margin:2em 0;}.jqplot-image-button{margin-bottom:15px;margin-top:15px;}div.jqplot-image-container{display:none;background-color:#fff;border:1px solid #999;display:inline-block;margin-top:25px;}div.jqplot-image-container-header{font-size:1.0em;font-weight:bold;padding:5px 15px;background-color:#eee;}div.jqplot-image-container-content{padding:15px;}a.jqplot-image-container-close{float:right;}div.example-plot{width:500px;height:300px;}.jqplot-table-legend-label{white-space:nowrap;}div.syntaxhighlighter{margin-top:4em!important;margin-bottom:3em!important;}
@@ -0,0 +1,134 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+
6
+ <title>Charts with Fill Between Lines</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="dateAxisRenderer.html">Previous</a> <a href="./">Examples</a> <a href="hiddenPlotsInTabs.html">Next</a></div>
32
+
33
+
34
+ <!-- Example scripts go here -->
35
+
36
+ <style type="text/css" media="screen">
37
+ .jqplot-axis {
38
+ font-size: 0.85em;
39
+ }
40
+ .jqplot-title {
41
+ font-size: 1.1em;
42
+ }
43
+ </style>
44
+
45
+
46
+ <div id="chart1" style="margin-top:20px; margin-left:20px; width:600px; height:400px;"></div>
47
+
48
+ <p>Enter 2 series to fill between:</p>
49
+
50
+ <label for="series1">First Series: </label>
51
+ <input type="text" name="series1" value="1" />
52
+ <label for="series2"> Second Series: </label>
53
+ <input type="text" name="series2" value="3" />
54
+ <button name="changeFill">Change Fill</button>
55
+
56
+ <pre class="code brush:js"></pre>
57
+
58
+
59
+ <script class="code" type="text/javascript" language="javascript">
60
+ $(document).ready(function(){
61
+ var l0 = [6, 11, 10, 13, 11, 7];
62
+ var l1 = [3, 6, 7, 7, 5, 3];
63
+ var l2 = [4, 8, 9, 10, 8, 6];
64
+ var l3 = [9, 13, 14, 16, 17, 19];
65
+ var l4 = [15, 17, 16, 18, 13, 11];
66
+
67
+ var plot1 = $.jqplot("chart1", [l0, l1, l2, l3, l4], {
68
+ title: "Fill between 2 lines",
69
+ axesDefaults: {
70
+ pad: 1.05
71
+ },
72
+ //////
73
+ // Use the fillBetween option to control fill between two
74
+ // lines on a plot.
75
+ //////
76
+ fillBetween: {
77
+ // series1: Required, if missing won't fill.
78
+ series1: 1,
79
+ // series2: Required, if missing won't fill.
80
+ series2: 3,
81
+ // color: Optional, defaults to fillColor of series1.
82
+ color: "rgba(227, 167, 111, 0.7)",
83
+ // baseSeries: Optional. Put fill on a layer below this series
84
+ // index. Defaults to 0 (first series). If an index higher than 0 is
85
+ // used, fill will hide series below it.
86
+ baseSeries: 0,
87
+ // fill: Optional, defaults to true. False to turn off fill.
88
+ fill: true
89
+ },
90
+ seriesDefaults: {
91
+ rendererOptions: {
92
+ //////
93
+ // Turn on line smoothing. By default, a constrained cubic spline
94
+ // interpolation algorithm is used which will not overshoot or
95
+ // undershoot any data points.
96
+ //////
97
+ smooth: true
98
+ }
99
+ }
100
+ });
101
+
102
+ // bind a function to the change button to update the plot's fillBetween series
103
+ // and replot().
104
+ $("button[name=changeFill]").click(function(e) {
105
+ plot1.fillBetween.series1 = parseInt($("input[name=series1]").val());
106
+ plot1.fillBetween.series2 = parseInt($("input[name=series2]").val());
107
+ plot1.replot();
108
+ });
109
+ });
110
+ </script>
111
+
112
+ <!-- End example scripts -->
113
+
114
+ <!-- Don't touch this! -->
115
+
116
+
117
+ <script class="include" type="text/javascript" src="../jquery.jqplot.min.js"></script>
118
+ <script type="text/javascript" src="syntaxhighlighter/scripts/shCore.min.js"></script>
119
+ <script type="text/javascript" src="syntaxhighlighter/scripts/shBrushJScript.min.js"></script>
120
+ <script type="text/javascript" src="syntaxhighlighter/scripts/shBrushXml.min.js"></script>
121
+ <!-- End Don't touch this! -->
122
+
123
+ <!-- Additional plugins go here -->
124
+
125
+ <!-- End additional plugins -->
126
+
127
+
128
+ </div>
129
+ <script type="text/javascript" src="example.min.js"></script>
130
+
131
+ </body>
132
+
133
+
134
+ </html>
@@ -0,0 +1,225 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+
6
+ <title>Hidden Plots</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="fillBetweenLines.html">Previous</a> <a href="./">Examples</a> <a href="kcp_area.html">Next</a></div>
32
+
33
+
34
+ <!-- Example scripts go here -->
35
+
36
+ <style type="text/css">
37
+ .ui-tabs, .ui-accordion {
38
+ width: 690px;
39
+ margin: 2em auto;
40
+ }
41
+ .ui-tabs-nav, .ui-accordion-header {
42
+ font-size: 12px;
43
+ }
44
+
45
+ .ui-tabs-panel, .ui-accordion-content {
46
+ font-size: 14px;
47
+ }
48
+
49
+ .jqplot-target {
50
+ font-size: 18px;
51
+ }
52
+
53
+ ol.description {
54
+ list-style-position: inside;
55
+ font-size:15px;
56
+ margin:1.5em auto;
57
+ padding:0 15px;
58
+ width:600px;
59
+ }
60
+ </style>
61
+
62
+ <p class="description">This page demonstrates placing plots within jQuery UI widgets. Tab 2 and tab 3 contain plots. Using a combination of alternate sizing specification and the jqplot "replot" method the plots are properly displayed when their containers are shown.</p>
63
+
64
+ <p class="description">The alternate sizing specifications for setting plot height and width are needed because a hidden element (or child of a hidden element) has no size. The first example in tab 2 uses custom "data-height" and "data-width" attributes on the plot target element. The second example uses "width" and "height" properties specified on the options object passed into the $.jqplot() function.</p>
65
+
66
+ <p class="description">The default plot size is 300px wide by 400px high. The default setting can be overridden by specifying different values to the $.jqplot.config.defaultHeight and $.jqplot.config.defaultWidth properties. Height and width values are taken in this order of precedence:
67
+ </p>
68
+
69
+ <ol class="description">
70
+ <li>The css properties of the plot target if available (not available with display:none;).</li>
71
+ <li>Options object passed into the $.jqplot() function.</li>
72
+ <li>Custom data-height and data-width attributes on the plot target.</li>
73
+ <li>The config defaults.</li>
74
+ </ol>
75
+
76
+ <div id="tabs">
77
+ <ul>
78
+ <li><a href="#tabs-1">Tab 1</a></li>
79
+ <li><a href="#tabs-2">Tab 2</a></li>
80
+ <li><a href="#tabs-3">Tab 3</a></li>
81
+ </ul>
82
+ <div id="tabs-1">
83
+ Tabs 2 and 3 have plots. Since tabs 2 and 3 are initially inactive, their contents (and the plots) are initially hidden.
84
+ </div>
85
+
86
+ <div id="tabs-2">
87
+ <p>This plot was in an initially hidden container. It's hieght and width are set by the "data-height" and "data-width" properties of the plot container.</p>
88
+ <div id="chart1" data-height="260px" data-width="480px" style="margin-top:20px; margin-left:20px;"></div>
89
+ </div>
90
+
91
+ <div id="tabs-3">
92
+ <p>This plot is in an initially hidden container. It's height and width are set by the 'height' and 'width' properties of the options object passed into the plot constructor.</p>
93
+ <div id="chart2" style="margin-top:20px; margin-left:20px;"></div>
94
+ </div>
95
+
96
+ </div>
97
+
98
+ <p class="description">In the accordion below, section 2 contains a plot. Sizing plots in hidden accordion sections is very similar to sizing in a tab widget. Because of the default animation on accordions, however, the plot will not draw itself until the entire accordion panel is shown.</p>
99
+
100
+ <div id="accordion" style="margin-top:50px">
101
+
102
+ <h3><a href="#">Section 1</a></h3>
103
+ <div>
104
+ Here is section 1 there is no plot. Section 2 has a plot that will display once the section is completely shown.
105
+ </div>
106
+
107
+ <h3><a href="#">Section 2</a></h3>
108
+ <div>
109
+ <p>
110
+ This plot also has it's height and width set with the data-height and data-width attributes. Note, if you want the accordion widget to properly size itself </em>before</em> the plot is shown, you must also specify a css height and width on the plot target.
111
+ </p>
112
+ <div id="chart3" data-height="200" data-width="400" style="width:400px; height: 200px; margin-top: 20px; margin-left: 20px"></div>
113
+ </div>
114
+
115
+ </div>
116
+
117
+ <p class="description">Code for generating the plots follows. It is critical to bind the callback to the UI widgets "show" or "change" method which calls the plots "replot" method. Without this, the plot won't properly redraw itself when it's container becomes visible.</p>
118
+
119
+ <p class="description">
120
+ Note in the ui.index and plot._drawCount properties in the tabsshow callback. ui.index gives the index of the activated tab. plot._drawCount keeps track of how many times the plot was visibly drawn (or redrawn/replotted). Generally, replot only needs to be called the first time the plot is visibly drawn, hence the check for plot._drawCount == 0.
121
+ </p>
122
+
123
+ <pre class="code brush:js"></pre>
124
+
125
+ <script class="code" type="text/javascript">
126
+ $(document).ready(function() {
127
+ $.jqplot.config.enablePlugins = false;
128
+
129
+ var l1 = [18, 36, 14, 11];
130
+ var l2 = [[2, 14], [7, 2], [8,5]];
131
+ var l3 = [4, 7, 9, 2, 11, 5, 9, 13, 8, 7];
132
+ var l4 = [['peech',3], ['cabbage', 2], ['bean', 4], ['orange', 5]];
133
+
134
+ $("#tabs").tabs();
135
+ $("#accordion").accordion();
136
+
137
+ var plot1 = $.jqplot('chart1', [l1, l2, l3], {
138
+ title: "I was hidden",
139
+ lengend:{show:true},
140
+ series:[{},{yaxis:'y2axis'}, {yaxis:'y3axis'}],
141
+ cursor:{show:true, zoom:true},
142
+ axesDefaults:{useSeriesColor:true, rendererOptions: { alignTicks: true}}
143
+ });
144
+
145
+ var plot2 = $.jqplot('chart2', [l4], {
146
+ height: 200,
147
+ width: 300,
148
+ series:[{renderer:$.jqplot.PieRenderer}],
149
+ legend:{show:true}
150
+ });
151
+
152
+ var catOHLC = [[1, 138.7, 139.68, 135.18, 135.4],
153
+ [2, 143.46, 144.66, 139.79, 140.02],
154
+ [3, 140.67, 143.56, 132.88, 142.44],
155
+ [4, 136.01, 139.5, 134.53, 139.48],
156
+ [5, 143.82, 144.56, 136.04, 136.97],
157
+ [6, 136.47, 146.4, 136, 144.67],
158
+ [7, 124.76, 135.9, 124.55, 135.81],
159
+ [8, 123.73, 129.31, 121.57, 122.5]];
160
+
161
+ var ticks = ['Tue', 'Wed', 'Thu', 'Fri', 'Mon', 'Tue', 'Wed', 'Thr'];
162
+
163
+ var plot3 = $.jqplot('chart3',[catOHLC],{
164
+ grid:{ drawGridlines:true},
165
+ title: 'A CandleStick Chart',
166
+ axes: {
167
+ xaxis: {
168
+ renderer:$.jqplot.CategoryAxisRenderer,
169
+ ticks:ticks
170
+ },
171
+ yaxis: {
172
+ tickOptions:{formatString:'$%.2f'}
173
+ }
174
+ },
175
+ series: [{renderer:$.jqplot.OHLCRenderer, rendererOptions:{candleStick:true}}]
176
+ });
177
+
178
+ $('#tabs').bind('tabsshow', function(event, ui) {
179
+ if (ui.index == 1 && plot1._drawCount == 0) {
180
+ plot1.replot();
181
+ }
182
+ else if (ui.index == 2 && plot2._drawCount == 0) {
183
+ plot2.replot();
184
+ }
185
+ });
186
+
187
+ $('#accordion').bind('accordionchange', function(event, ui) {
188
+ var index = $(this).find("h3").index ( ui.newHeader[0] );
189
+ if (index == 1) {
190
+ plot3.replot();
191
+ }
192
+ });
193
+
194
+ });
195
+ </script>
196
+
197
+ <!-- End example scripts -->
198
+
199
+ <!-- Don't touch this! -->
200
+
201
+
202
+ <script class="include" type="text/javascript" src="../jquery.jqplot.min.js"></script>
203
+ <script type="text/javascript" src="syntaxhighlighter/scripts/shCore.min.js"></script>
204
+ <script type="text/javascript" src="syntaxhighlighter/scripts/shBrushJScript.min.js"></script>
205
+ <script type="text/javascript" src="syntaxhighlighter/scripts/shBrushXml.min.js"></script>
206
+ <!-- End Don't touch this! -->
207
+
208
+ <!-- Additional plugins go here -->
209
+ <script class="include" type="text/javascript" src="../plugins/jqplot.cursor.min.js"></script>
210
+ <script class="include" type="text/javascript" src="../plugins/jqplot.pieRenderer.min.js"></script>
211
+ <script class="include" type="text/javascript" src="../plugins/jqplot.ohlcRenderer.min.js"></script>
212
+ <script class="include" type="text/javascript" src="../plugins/jqplot.categoryAxisRenderer.min.js"></script>
213
+ <link class="include" type="text/css" href="jquery-ui/css/ui-lightness/jquery-ui.min.css" rel="Stylesheet" />
214
+ <script class="include" type="text/javascript" src="jquery-ui/js/jquery-ui.min.js"></script>
215
+
216
+ <!-- End additional plugins -->
217
+
218
+
219
+ </div>
220
+ <script type="text/javascript" src="example.min.js"></script>
221
+
222
+ </body>
223
+
224
+
225
+ </html>
Binary file