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,636 @@
1
+ /**
2
+ * jqPlot
3
+ * Pure JavaScript plotting plugin using jQuery
4
+ *
5
+ * Version: 1.0.0b2_r1012
6
+ *
7
+ * Copyright (c) 2009-2011 Chris Leonello
8
+ * jqPlot is currently available for use in all personal or commercial projects
9
+ * under both the MIT (http://www.opensource.org/licenses/mit-license.php) and GPL
10
+ * version 2.0 (http://www.gnu.org/licenses/gpl-2.0.html) licenses. This means that you can
11
+ * choose the license that best suits your project and use it accordingly.
12
+ *
13
+ * Although not required, the author would appreciate an email letting him
14
+ * know of any substantial use of jqPlot. You can reach the author at:
15
+ * chris at jqplot dot com or see http://www.jqplot.com/info.php .
16
+ *
17
+ * If you are feeling kind and generous, consider supporting the project by
18
+ * making a donation at: http://www.jqplot.com/donate.php .
19
+ *
20
+ * sprintf functions contained in jqplot.sprintf.js by Ash Searle:
21
+ *
22
+ * version 2007.04.27
23
+ * author Ash Searle
24
+ * http://hexmen.com/blog/2007/03/printf-sprintf/
25
+ * http://hexmen.com/js/sprintf.js
26
+ * The author (Ash Searle) has placed this code in the public domain:
27
+ * "This code is unrestricted: you are free to use it however you like."
28
+ *
29
+ */
30
+ (function($) {
31
+ /**
32
+ * class: $.jqplot.CategoryAxisRenderer
33
+ * A plugin for jqPlot to render a category style axis, with equal pixel spacing between y data values of a series.
34
+ *
35
+ * To use this renderer, include the plugin in your source
36
+ * > <script type="text/javascript" language="javascript" src="plugins/jqplot.categoryAxisRenderer.js"></script>
37
+ *
38
+ * and supply the appropriate options to your plot
39
+ *
40
+ * > {axes:{xaxis:{renderer:$.jqplot.CategoryAxisRenderer}}}
41
+ **/
42
+ $.jqplot.CategoryAxisRenderer = function(options) {
43
+ $.jqplot.LinearAxisRenderer.call(this);
44
+ // prop: sortMergedLabels
45
+ // True to sort tick labels when labels are created by merging
46
+ // x axis values from multiple series. That is, say you have
47
+ // two series like:
48
+ // > line1 = [[2006, 4], [2008, 9], [2009, 16]];
49
+ // > line2 = [[2006, 3], [2007, 7], [2008, 6]];
50
+ // If no label array is specified, tick labels will be collected
51
+ // from the x values of the series. With sortMergedLabels
52
+ // set to true, tick labels will be:
53
+ // > [2006, 2007, 2008, 2009]
54
+ // With sortMergedLabels set to false, tick labels will be:
55
+ // > [2006, 2008, 2009, 2007]
56
+ //
57
+ // Note, this property is specified on the renderOptions for the
58
+ // axes when creating a plot:
59
+ // > axes:{xaxis:{renderer:$.jqplot.CategoryAxisRenderer, rendererOptions:{sortMergedLabels:true}}}
60
+ this.sortMergedLabels = false;
61
+ };
62
+
63
+ $.jqplot.CategoryAxisRenderer.prototype = new $.jqplot.LinearAxisRenderer();
64
+ $.jqplot.CategoryAxisRenderer.prototype.constructor = $.jqplot.CategoryAxisRenderer;
65
+
66
+ $.jqplot.CategoryAxisRenderer.prototype.init = function(options){
67
+ this.groups = 1;
68
+ this.groupLabels = [];
69
+ this._groupLabels = [];
70
+ this._grouped = false;
71
+ this._barsPerGroup = null;
72
+ // prop: tickRenderer
73
+ // A class of a rendering engine for creating the ticks labels displayed on the plot,
74
+ // See <$.jqplot.AxisTickRenderer>.
75
+ // this.tickRenderer = $.jqplot.AxisTickRenderer;
76
+ // this.labelRenderer = $.jqplot.AxisLabelRenderer;
77
+ $.extend(true, this, {tickOptions:{formatString:'%d'}}, options);
78
+ var db = this._dataBounds;
79
+ // Go through all the series attached to this axis and find
80
+ // the min/max bounds for this axis.
81
+ for (var i=0; i<this._series.length; i++) {
82
+ var s = this._series[i];
83
+ if (s.groups) {
84
+ this.groups = s.groups;
85
+ }
86
+ var d = s.data;
87
+
88
+ for (var j=0; j<d.length; j++) {
89
+ if (this.name == 'xaxis' || this.name == 'x2axis') {
90
+ if (d[j][0] < db.min || db.min == null) {
91
+ db.min = d[j][0];
92
+ }
93
+ if (d[j][0] > db.max || db.max == null) {
94
+ db.max = d[j][0];
95
+ }
96
+ }
97
+ else {
98
+ if (d[j][1] < db.min || db.min == null) {
99
+ db.min = d[j][1];
100
+ }
101
+ if (d[j][1] > db.max || db.max == null) {
102
+ db.max = d[j][1];
103
+ }
104
+ }
105
+ }
106
+ }
107
+
108
+ if (this.groupLabels.length) {
109
+ this.groups = this.groupLabels.length;
110
+ }
111
+ };
112
+
113
+
114
+ $.jqplot.CategoryAxisRenderer.prototype.createTicks = function() {
115
+ // we're are operating on an axis here
116
+ var ticks = this._ticks;
117
+ var userTicks = this.ticks;
118
+ var name = this.name;
119
+ // databounds were set on axis initialization.
120
+ var db = this._dataBounds;
121
+ var dim, interval;
122
+ var min, max;
123
+ var pos1, pos2;
124
+ var tt, i;
125
+
126
+ // if we already have ticks, use them.
127
+ if (userTicks.length) {
128
+ // adjust with blanks if we have groups
129
+ if (this.groups > 1 && !this._grouped) {
130
+ var l = userTicks.length;
131
+ var skip = parseInt(l/this.groups, 10);
132
+ var count = 0;
133
+ for (var i=skip; i<l; i+=skip) {
134
+ userTicks.splice(i+count, 0, ' ');
135
+ count++;
136
+ }
137
+ this._grouped = true;
138
+ }
139
+ this.min = 0.5;
140
+ this.max = userTicks.length + 0.5;
141
+ var range = this.max - this.min;
142
+ this.numberTicks = 2*userTicks.length + 1;
143
+ for (i=0; i<userTicks.length; i++){
144
+ tt = this.min + 2 * i * range / (this.numberTicks-1);
145
+ // need a marker before and after the tick
146
+ var t = new this.tickRenderer(this.tickOptions);
147
+ t.showLabel = false;
148
+ // t.showMark = true;
149
+ t.setTick(tt, this.name);
150
+ this._ticks.push(t);
151
+ var t = new this.tickRenderer(this.tickOptions);
152
+ t.label = userTicks[i];
153
+ // t.showLabel = true;
154
+ t.showMark = false;
155
+ t.showGridline = false;
156
+ t.setTick(tt+0.5, this.name);
157
+ this._ticks.push(t);
158
+ }
159
+ // now add the last tick at the end
160
+ var t = new this.tickRenderer(this.tickOptions);
161
+ t.showLabel = false;
162
+ // t.showMark = true;
163
+ t.setTick(tt+1, this.name);
164
+ this._ticks.push(t);
165
+ }
166
+
167
+ // we don't have any ticks yet, let's make some!
168
+ else {
169
+ if (name == 'xaxis' || name == 'x2axis') {
170
+ dim = this._plotDimensions.width;
171
+ }
172
+ else {
173
+ dim = this._plotDimensions.height;
174
+ }
175
+
176
+ // if min, max and number of ticks specified, user can't specify interval.
177
+ if (this.min != null && this.max != null && this.numberTicks != null) {
178
+ this.tickInterval = null;
179
+ }
180
+
181
+ // if max, min, and interval specified and interval won't fit, ignore interval.
182
+ if (this.min != null && this.max != null && this.tickInterval != null) {
183
+ if (parseInt((this.max-this.min)/this.tickInterval, 10) != (this.max-this.min)/this.tickInterval) {
184
+ this.tickInterval = null;
185
+ }
186
+ }
187
+
188
+ // find out how many categories are in the lines and collect labels
189
+ var labels = [];
190
+ var numcats = 0;
191
+ var min = 0.5;
192
+ var max, val;
193
+ var isMerged = false;
194
+ for (var i=0; i<this._series.length; i++) {
195
+ var s = this._series[i];
196
+ for (var j=0; j<s.data.length; j++) {
197
+ if (this.name == 'xaxis' || this.name == 'x2axis') {
198
+ val = s.data[j][0];
199
+ }
200
+ else {
201
+ val = s.data[j][1];
202
+ }
203
+ if ($.inArray(val, labels) == -1) {
204
+ isMerged = true;
205
+ numcats += 1;
206
+ labels.push(val);
207
+ }
208
+ }
209
+ }
210
+
211
+ if (isMerged && this.sortMergedLabels) {
212
+ labels.sort(function(a,b) { return a - b; });
213
+ }
214
+
215
+ // keep a reference to these tick labels to use for redrawing plot (see bug #57)
216
+ this.ticks = labels;
217
+
218
+ // now bin the data values to the right lables.
219
+ for (var i=0; i<this._series.length; i++) {
220
+ var s = this._series[i];
221
+ for (var j=0; j<s.data.length; j++) {
222
+ if (this.name == 'xaxis' || this.name == 'x2axis') {
223
+ val = s.data[j][0];
224
+ }
225
+ else {
226
+ val = s.data[j][1];
227
+ }
228
+ // for category axis, force the values into category bins.
229
+ // we should have the value in the label array now.
230
+ var idx = $.inArray(val, labels)+1;
231
+ if (this.name == 'xaxis' || this.name == 'x2axis') {
232
+ s.data[j][0] = idx;
233
+ }
234
+ else {
235
+ s.data[j][1] = idx;
236
+ }
237
+ }
238
+ }
239
+
240
+ // adjust with blanks if we have groups
241
+ if (this.groups > 1 && !this._grouped) {
242
+ var l = labels.length;
243
+ var skip = parseInt(l/this.groups, 10);
244
+ var count = 0;
245
+ for (var i=skip; i<l; i+=skip+1) {
246
+ labels[i] = ' ';
247
+ }
248
+ this._grouped = true;
249
+ }
250
+
251
+ max = numcats + 0.5;
252
+ if (this.numberTicks == null) {
253
+ this.numberTicks = 2*numcats + 1;
254
+ }
255
+
256
+ var range = max - min;
257
+ this.min = min;
258
+ this.max = max;
259
+ var track = 0;
260
+
261
+ // todo: adjust this so more ticks displayed.
262
+ var maxVisibleTicks = parseInt(3+dim/10, 10);
263
+ var skip = parseInt(numcats/maxVisibleTicks, 10);
264
+
265
+ if (this.tickInterval == null) {
266
+
267
+ this.tickInterval = range / (this.numberTicks-1);
268
+
269
+ }
270
+ // if tickInterval is specified, we will ignore any computed maximum.
271
+ for (var i=0; i<this.numberTicks; i++){
272
+ tt = this.min + i * this.tickInterval;
273
+ var t = new this.tickRenderer(this.tickOptions);
274
+ // if even tick, it isn't a category, it's a divider
275
+ if (i/2 == parseInt(i/2, 10)) {
276
+ t.showLabel = false;
277
+ t.showMark = true;
278
+ }
279
+ else {
280
+ if (skip>0 && track<skip) {
281
+ t.showLabel = false;
282
+ track += 1;
283
+ }
284
+ else {
285
+ t.showLabel = true;
286
+ track = 0;
287
+ }
288
+ t.label = t.formatter(t.formatString, labels[(i-1)/2]);
289
+ t.showMark = false;
290
+ t.showGridline = false;
291
+ }
292
+ t.setTick(tt, this.name);
293
+ this._ticks.push(t);
294
+ }
295
+ }
296
+
297
+ };
298
+
299
+ // called with scope of axis
300
+ $.jqplot.CategoryAxisRenderer.prototype.draw = function(ctx, plot) {
301
+ if (this.show) {
302
+ // populate the axis label and value properties.
303
+ // createTicks is a method on the renderer, but
304
+ // call it within the scope of the axis.
305
+ this.renderer.createTicks.call(this);
306
+ // fill a div with axes labels in the right direction.
307
+ // Need to pregenerate each axis to get it's bounds and
308
+ // position it and the labels correctly on the plot.
309
+ var dim=0;
310
+ var temp;
311
+ // Added for theming.
312
+ if (this._elem) {
313
+ // this._elem.empty();
314
+ // Memory Leaks patch
315
+ this._elem.emptyForce();
316
+ }
317
+
318
+ this._elem = this._elem || $('<div class="jqplot-axis jqplot-'+this.name+'" style="position:absolute;"></div>');
319
+
320
+ if (this.name == 'xaxis' || this.name == 'x2axis') {
321
+ this._elem.width(this._plotDimensions.width);
322
+ }
323
+ else {
324
+ this._elem.height(this._plotDimensions.height);
325
+ }
326
+
327
+ // create a _label object.
328
+ this.labelOptions.axis = this.name;
329
+ this._label = new this.labelRenderer(this.labelOptions);
330
+ if (this._label.show) {
331
+ var elem = this._label.draw(ctx, plot);
332
+ elem.appendTo(this._elem);
333
+ }
334
+
335
+ var t = this._ticks;
336
+ for (var i=0; i<t.length; i++) {
337
+ var tick = t[i];
338
+ if (tick.showLabel && (!tick.isMinorTick || this.showMinorTicks)) {
339
+ var elem = tick.draw(ctx, plot);
340
+ elem.appendTo(this._elem);
341
+ }
342
+ }
343
+
344
+ this._groupLabels = [];
345
+ // now make group labels
346
+ for (var i=0; i<this.groupLabels.length; i++)
347
+ {
348
+ var elem = $('<div style="position:absolute;" class="jqplot-'+this.name+'-groupLabel"></div>');
349
+ elem.html(this.groupLabels[i]);
350
+ this._groupLabels.push(elem);
351
+ elem.appendTo(this._elem);
352
+ }
353
+ }
354
+ return this._elem;
355
+ };
356
+
357
+ // called with scope of axis
358
+ $.jqplot.CategoryAxisRenderer.prototype.set = function() {
359
+ var dim = 0;
360
+ var temp;
361
+ var w = 0;
362
+ var h = 0;
363
+ var lshow = (this._label == null) ? false : this._label.show;
364
+ if (this.show) {
365
+ var t = this._ticks;
366
+ for (var i=0; i<t.length; i++) {
367
+ var tick = t[i];
368
+ if (tick.showLabel && (!tick.isMinorTick || this.showMinorTicks)) {
369
+ if (this.name == 'xaxis' || this.name == 'x2axis') {
370
+ temp = tick._elem.outerHeight(true);
371
+ }
372
+ else {
373
+ temp = tick._elem.outerWidth(true);
374
+ }
375
+ if (temp > dim) {
376
+ dim = temp;
377
+ }
378
+ }
379
+ }
380
+
381
+ var dim2 = 0;
382
+ for (var i=0; i<this._groupLabels.length; i++) {
383
+ var l = this._groupLabels[i];
384
+ if (this.name == 'xaxis' || this.name == 'x2axis') {
385
+ temp = l.outerHeight(true);
386
+ }
387
+ else {
388
+ temp = l.outerWidth(true);
389
+ }
390
+ if (temp > dim2) {
391
+ dim2 = temp;
392
+ }
393
+ }
394
+
395
+ if (lshow) {
396
+ w = this._label._elem.outerWidth(true);
397
+ h = this._label._elem.outerHeight(true);
398
+ }
399
+ if (this.name == 'xaxis') {
400
+ dim += dim2 + h;
401
+ this._elem.css({'height':dim+'px', left:'0px', bottom:'0px'});
402
+ }
403
+ else if (this.name == 'x2axis') {
404
+ dim += dim2 + h;
405
+ this._elem.css({'height':dim+'px', left:'0px', top:'0px'});
406
+ }
407
+ else if (this.name == 'yaxis') {
408
+ dim += dim2 + w;
409
+ this._elem.css({'width':dim+'px', left:'0px', top:'0px'});
410
+ if (lshow && this._label.constructor == $.jqplot.AxisLabelRenderer) {
411
+ this._label._elem.css('width', w+'px');
412
+ }
413
+ }
414
+ else {
415
+ dim += dim2 + w;
416
+ this._elem.css({'width':dim+'px', right:'0px', top:'0px'});
417
+ if (lshow && this._label.constructor == $.jqplot.AxisLabelRenderer) {
418
+ this._label._elem.css('width', w+'px');
419
+ }
420
+ }
421
+ }
422
+ };
423
+
424
+ // called with scope of axis
425
+ $.jqplot.CategoryAxisRenderer.prototype.pack = function(pos, offsets) {
426
+ var ticks = this._ticks;
427
+ var max = this.max;
428
+ var min = this.min;
429
+ var offmax = offsets.max;
430
+ var offmin = offsets.min;
431
+ var lshow = (this._label == null) ? false : this._label.show;
432
+ var i;
433
+
434
+ for (var p in pos) {
435
+ this._elem.css(p, pos[p]);
436
+ }
437
+
438
+ this._offsets = offsets;
439
+ // pixellength will be + for x axes and - for y axes becasue pixels always measured from top left.
440
+ var pixellength = offmax - offmin;
441
+ var unitlength = max - min;
442
+
443
+ // point to unit and unit to point conversions references to Plot DOM element top left corner.
444
+ this.p2u = function(p){
445
+ return (p - offmin) * unitlength / pixellength + min;
446
+ };
447
+
448
+ this.u2p = function(u){
449
+ return (u - min) * pixellength / unitlength + offmin;
450
+ };
451
+
452
+ if (this.name == 'xaxis' || this.name == 'x2axis'){
453
+ this.series_u2p = function(u){
454
+ return (u - min) * pixellength / unitlength;
455
+ };
456
+ this.series_p2u = function(p){
457
+ return p * unitlength / pixellength + min;
458
+ };
459
+ }
460
+
461
+ else {
462
+ this.series_u2p = function(u){
463
+ return (u - max) * pixellength / unitlength;
464
+ };
465
+ this.series_p2u = function(p){
466
+ return p * unitlength / pixellength + max;
467
+ };
468
+ }
469
+
470
+ if (this.show) {
471
+ if (this.name == 'xaxis' || this.name == 'x2axis') {
472
+ for (i=0; i<ticks.length; i++) {
473
+ var t = ticks[i];
474
+ if (t.show && t.showLabel) {
475
+ var shim;
476
+
477
+ if (t.constructor == $.jqplot.CanvasAxisTickRenderer && t.angle) {
478
+ // will need to adjust auto positioning based on which axis this is.
479
+ var temp = (this.name == 'xaxis') ? 1 : -1;
480
+ switch (t.labelPosition) {
481
+ case 'auto':
482
+ // position at end
483
+ if (temp * t.angle < 0) {
484
+ shim = -t.getWidth() + t._textRenderer.height * Math.sin(-t._textRenderer.angle) / 2;
485
+ }
486
+ // position at start
487
+ else {
488
+ shim = -t._textRenderer.height * Math.sin(t._textRenderer.angle) / 2;
489
+ }
490
+ break;
491
+ case 'end':
492
+ shim = -t.getWidth() + t._textRenderer.height * Math.sin(-t._textRenderer.angle) / 2;
493
+ break;
494
+ case 'start':
495
+ shim = -t._textRenderer.height * Math.sin(t._textRenderer.angle) / 2;
496
+ break;
497
+ case 'middle':
498
+ shim = -t.getWidth()/2 + t._textRenderer.height * Math.sin(-t._textRenderer.angle) / 2;
499
+ break;
500
+ default:
501
+ shim = -t.getWidth()/2 + t._textRenderer.height * Math.sin(-t._textRenderer.angle) / 2;
502
+ break;
503
+ }
504
+ }
505
+ else {
506
+ shim = -t.getWidth()/2;
507
+ }
508
+ var val = this.u2p(t.value) + shim + 'px';
509
+ t._elem.css('left', val);
510
+ t.pack();
511
+ }
512
+ }
513
+
514
+ var labeledge=['bottom', 0];
515
+ if (lshow) {
516
+ var w = this._label._elem.outerWidth(true);
517
+ this._label._elem.css('left', offmin + pixellength/2 - w/2 + 'px');
518
+ if (this.name == 'xaxis') {
519
+ this._label._elem.css('bottom', '0px');
520
+ labeledge = ['bottom', this._label._elem.outerHeight(true)];
521
+ }
522
+ else {
523
+ this._label._elem.css('top', '0px');
524
+ labeledge = ['top', this._label._elem.outerHeight(true)];
525
+ }
526
+ this._label.pack();
527
+ }
528
+
529
+ // draw the group labels
530
+ var step = parseInt(this._ticks.length/this.groups, 10);
531
+ for (i=0; i<this._groupLabels.length; i++) {
532
+ var mid = 0;
533
+ var count = 0;
534
+ for (var j=i*step; j<=(i+1)*step; j++) {
535
+ if (this._ticks[j]._elem && this._ticks[j].label != " ") {
536
+ var t = this._ticks[j]._elem;
537
+ var p = t.position();
538
+ mid += p.left + t.outerWidth(true)/2;
539
+ count++;
540
+ }
541
+ }
542
+ mid = mid/count;
543
+ this._groupLabels[i].css({'left':(mid - this._groupLabels[i].outerWidth(true)/2)});
544
+ this._groupLabels[i].css(labeledge[0], labeledge[1]);
545
+ }
546
+ }
547
+ else {
548
+ for (i=0; i<ticks.length; i++) {
549
+ var t = ticks[i];
550
+ if (t.show && t.showLabel) {
551
+ var shim;
552
+ if (t.constructor == $.jqplot.CanvasAxisTickRenderer && t.angle) {
553
+ // will need to adjust auto positioning based on which axis this is.
554
+ var temp = (this.name == 'yaxis') ? 1 : -1;
555
+ switch (t.labelPosition) {
556
+ case 'auto':
557
+ // position at end
558
+ case 'end':
559
+ if (temp * t.angle < 0) {
560
+ shim = -t._textRenderer.height * Math.cos(-t._textRenderer.angle) / 2;
561
+ }
562
+ else {
563
+ shim = -t.getHeight() + t._textRenderer.height * Math.cos(t._textRenderer.angle) / 2;
564
+ }
565
+ break;
566
+ case 'start':
567
+ if (t.angle > 0) {
568
+ shim = -t._textRenderer.height * Math.cos(-t._textRenderer.angle) / 2;
569
+ }
570
+ else {
571
+ shim = -t.getHeight() + t._textRenderer.height * Math.cos(t._textRenderer.angle) / 2;
572
+ }
573
+ break;
574
+ case 'middle':
575
+ // if (t.angle > 0) {
576
+ // shim = -t.getHeight()/2 + t._textRenderer.height * Math.sin(-t._textRenderer.angle) / 2;
577
+ // }
578
+ // else {
579
+ // shim = -t.getHeight()/2 - t._textRenderer.height * Math.sin(t._textRenderer.angle) / 2;
580
+ // }
581
+ shim = -t.getHeight()/2;
582
+ break;
583
+ default:
584
+ shim = -t.getHeight()/2;
585
+ break;
586
+ }
587
+ }
588
+ else {
589
+ shim = -t.getHeight()/2;
590
+ }
591
+
592
+ var val = this.u2p(t.value) + shim + 'px';
593
+ t._elem.css('top', val);
594
+ t.pack();
595
+ }
596
+ }
597
+
598
+ var labeledge=['left', 0];
599
+ if (lshow) {
600
+ var h = this._label._elem.outerHeight(true);
601
+ this._label._elem.css('top', offmax - pixellength/2 - h/2 + 'px');
602
+ if (this.name == 'yaxis') {
603
+ this._label._elem.css('left', '0px');
604
+ labeledge = ['left', this._label._elem.outerWidth(true)];
605
+ }
606
+ else {
607
+ this._label._elem.css('right', '0px');
608
+ labeledge = ['right', this._label._elem.outerWidth(true)];
609
+ }
610
+ this._label.pack();
611
+ }
612
+
613
+ // draw the group labels, position top here, do left after label position.
614
+ var step = parseInt(this._ticks.length/this.groups, 10);
615
+ for (i=0; i<this._groupLabels.length; i++) {
616
+ var mid = 0;
617
+ var count = 0;
618
+ for (var j=i*step; j<=(i+1)*step; j++) {
619
+ if (this._ticks[j]._elem && this._ticks[j].label != " ") {
620
+ var t = this._ticks[j]._elem;
621
+ var p = t.position();
622
+ mid += p.top + t.outerHeight()/2;
623
+ count++;
624
+ }
625
+ }
626
+ mid = mid/count;
627
+ this._groupLabels[i].css({'top':mid - this._groupLabels[i].outerHeight()/2});
628
+ this._groupLabels[i].css(labeledge[0], labeledge[1]);
629
+
630
+ }
631
+ }
632
+ }
633
+ };
634
+
635
+
636
+ })(jQuery);