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,610 @@
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
+ // class: $.jqplot.MekkoAxisRenderer
32
+ // An axis renderer for a Mekko chart.
33
+ // Should be used with a Mekko chart where the mekkoRenderer is used on the series.
34
+ // Displays the Y axis as a range from 0 to 1 (0 to 100%) and the x axis with a tick
35
+ // for each series scaled to the sum of all the y values.
36
+ $.jqplot.MekkoAxisRenderer = function() {
37
+ };
38
+
39
+ // called with scope of axis object.
40
+ $.jqplot.MekkoAxisRenderer.prototype.init = function(options){
41
+ // prop: tickMode
42
+ // How to space the ticks on the axis.
43
+ // 'bar' will place a tick at the width of each bar.
44
+ // This is the default for the x axis.
45
+ // 'even' will place ticks at even intervals. This is
46
+ // the default for x2 axis and y axis. y axis cannot be changed.
47
+ this.tickMode;
48
+ // prop: barLabelRenderer
49
+ // renderer to use to draw labels under each bar.
50
+ this.barLabelRenderer = $.jqplot.AxisLabelRenderer;
51
+ // prop: barLabels
52
+ // array of labels to put under each bar.
53
+ this.barLabels = this.barLabels || [];
54
+ // prop: barLabelOptions
55
+ // options object to pass to the bar label renderer.
56
+ this.barLabelOptions = {};
57
+ this.tickOptions = $.extend(true, {showGridline:false}, this.tickOptions);
58
+ this._barLabels = [];
59
+ $.extend(true, this, options);
60
+ if (this.name == 'yaxis') {
61
+ this.tickOptions.formatString = this.tickOptions.formatString || "%d\%";
62
+ }
63
+ var db = this._dataBounds;
64
+ db.min = 0;
65
+ // for y axes, scale always go from 0 to 1 (0 to 100%)
66
+ if (this.name == 'yaxis' || this.name == 'y2axis') {
67
+ db.max = 100;
68
+ this.tickMode = 'even';
69
+ }
70
+ // For x axes, scale goes from 0 to sum of all y values.
71
+ else if (this.name == 'xaxis'){
72
+ this.tickMode = (this.tickMode == null) ? 'bar' : this.tickMode;
73
+ for (var i=0; i<this._series.length; i++) {
74
+ db.max += this._series[i]._sumy;
75
+ }
76
+ }
77
+ else if (this.name == 'x2axis'){
78
+ this.tickMode = (this.tickMode == null) ? 'even' : this.tickMode;
79
+ for (var i=0; i<this._series.length; i++) {
80
+ db.max += this._series[i]._sumy;
81
+ }
82
+ }
83
+ };
84
+
85
+ // called with scope of axis
86
+ $.jqplot.MekkoAxisRenderer.prototype.draw = function(ctx, plot) {
87
+ if (this.show) {
88
+ // populate the axis label and value properties.
89
+ // createTicks is a method on the renderer, but
90
+ // call it within the scope of the axis.
91
+ this.renderer.createTicks.call(this);
92
+ // fill a div with axes labels in the right direction.
93
+ // Need to pregenerate each axis to get it's bounds and
94
+ // position it and the labels correctly on the plot.
95
+ var dim=0;
96
+ var temp;
97
+
98
+ var elem = document.createElement('div');
99
+ this._elem = $(elem);
100
+ this._elem.addClass('jqplot-axis jqplot-'+this.name);
101
+ this._elem.css('position', 'absolute');
102
+ elem = null;
103
+
104
+ if (this.name == 'xaxis' || this.name == 'x2axis') {
105
+ this._elem.width(this._plotDimensions.width);
106
+ }
107
+ else {
108
+ this._elem.height(this._plotDimensions.height);
109
+ }
110
+
111
+ // draw the axis label
112
+ // create a _label object.
113
+ this.labelOptions.axis = this.name;
114
+ this._label = new this.labelRenderer(this.labelOptions);
115
+ if (this._label.show) {
116
+ this._elem.append(this._label.draw(ctx));
117
+ }
118
+
119
+ var t, tick, elem;
120
+ if (this.showTicks) {
121
+ t = this._ticks;
122
+ for (var i=0; i<t.length; i++) {
123
+ tick = t[i];
124
+ if (tick.showLabel && (!tick.isMinorTick || this.showMinorTicks)) {
125
+ this._elem.append(tick.draw(ctx));
126
+ }
127
+ }
128
+ }
129
+
130
+ // draw the series labels
131
+ for (i=0; i<this.barLabels.length; i++) {
132
+ this.barLabelOptions.axis = this.name;
133
+ this.barLabelOptions.label = this.barLabels[i];
134
+ this._barLabels.push(new this.barLabelRenderer(this.barLabelOptions));
135
+ if (this.tickMode != 'bar') {
136
+ this._barLabels[i].show = false;
137
+ }
138
+ if (this._barLabels[i].show) {
139
+ var elem = this._barLabels[i].draw(ctx, plot);
140
+ elem.removeClass('jqplot-'+this.name+'-label');
141
+ elem.addClass('jqplot-'+this.name+'-tick');
142
+ elem.addClass('jqplot-mekko-barLabel');
143
+ elem.appendTo(this._elem);
144
+ elem = null;
145
+ }
146
+ }
147
+
148
+ }
149
+ return this._elem;
150
+ };
151
+
152
+ // called with scope of an axis
153
+ $.jqplot.MekkoAxisRenderer.prototype.reset = function() {
154
+ this.min = this._min;
155
+ this.max = this._max;
156
+ this.tickInterval = this._tickInterval;
157
+ this.numberTicks = this._numberTicks;
158
+ // this._ticks = this.__ticks;
159
+ };
160
+
161
+ // called with scope of axis
162
+ $.jqplot.MekkoAxisRenderer.prototype.set = function() {
163
+ var dim = 0;
164
+ var temp;
165
+ var w = 0;
166
+ var h = 0;
167
+ var lshow = (this._label == null) ? false : this._label.show;
168
+ if (this.show && this.showTicks) {
169
+ var t = this._ticks;
170
+ for (var i=0; i<t.length; i++) {
171
+ var tick = t[i];
172
+ if (tick.showLabel && (!tick.isMinorTick || this.showMinorTicks)) {
173
+ if (this.name == 'xaxis' || this.name == 'x2axis') {
174
+ temp = tick._elem.outerHeight(true);
175
+ }
176
+ else {
177
+ temp = tick._elem.outerWidth(true);
178
+ }
179
+ if (temp > dim) {
180
+ dim = temp;
181
+ }
182
+ }
183
+ }
184
+
185
+ if (lshow) {
186
+ w = this._label._elem.outerWidth(true);
187
+ h = this._label._elem.outerHeight(true);
188
+ }
189
+ if (this.name == 'xaxis') {
190
+ dim = dim + h;
191
+ this._elem.css({'height':dim+'px', left:'0px', bottom:'0px'});
192
+ }
193
+ else if (this.name == 'x2axis') {
194
+ dim = dim + h;
195
+ this._elem.css({'height':dim+'px', left:'0px', top:'0px'});
196
+ }
197
+ else if (this.name == 'yaxis') {
198
+ dim = dim + w;
199
+ this._elem.css({'width':dim+'px', left:'0px', top:'0px'});
200
+ if (lshow && this._label.constructor == $.jqplot.AxisLabelRenderer) {
201
+ this._label._elem.css('width', w+'px');
202
+ }
203
+ }
204
+ else {
205
+ dim = dim + w;
206
+ this._elem.css({'width':dim+'px', right:'0px', top:'0px'});
207
+ if (lshow && this._label.constructor == $.jqplot.AxisLabelRenderer) {
208
+ this._label._elem.css('width', w+'px');
209
+ }
210
+ }
211
+ }
212
+ };
213
+
214
+ // called with scope of axis
215
+ $.jqplot.MekkoAxisRenderer.prototype.createTicks = function() {
216
+ // we're are operating on an axis here
217
+ var ticks = this._ticks;
218
+ var userTicks = this.ticks;
219
+ var name = this.name;
220
+ // databounds were set on axis initialization.
221
+ var db = this._dataBounds;
222
+ var dim, interval;
223
+ var min, max;
224
+ var pos1, pos2;
225
+ var t, tt, i, j;
226
+
227
+ // if we already have ticks, use them.
228
+ // ticks must be in order of increasing value.
229
+
230
+ if (userTicks.length) {
231
+ // ticks could be 1D or 2D array of [val, val, ,,,] or [[val, label], [val, label], ...] or mixed
232
+ for (i=0; i<userTicks.length; i++){
233
+ var ut = userTicks[i];
234
+ var t = new this.tickRenderer(this.tickOptions);
235
+ if (ut.constructor == Array) {
236
+ t.value = ut[0];
237
+ t.label = ut[1];
238
+ if (!this.showTicks) {
239
+ t.showLabel = false;
240
+ t.showMark = false;
241
+ }
242
+ else if (!this.showTickMarks) {
243
+ t.showMark = false;
244
+ }
245
+ t.setTick(ut[0], this.name);
246
+ this._ticks.push(t);
247
+ }
248
+
249
+ else {
250
+ t.value = ut;
251
+ if (!this.showTicks) {
252
+ t.showLabel = false;
253
+ t.showMark = false;
254
+ }
255
+ else if (!this.showTickMarks) {
256
+ t.showMark = false;
257
+ }
258
+ t.setTick(ut, this.name);
259
+ this._ticks.push(t);
260
+ }
261
+ }
262
+ this.numberTicks = userTicks.length;
263
+ this.min = this._ticks[0].value;
264
+ this.max = this._ticks[this.numberTicks-1].value;
265
+ this.tickInterval = (this.max - this.min) / (this.numberTicks - 1);
266
+ }
267
+
268
+ // we don't have any ticks yet, let's make some!
269
+ else {
270
+ if (name == 'xaxis' || name == 'x2axis') {
271
+ dim = this._plotDimensions.width;
272
+ }
273
+ else {
274
+ dim = this._plotDimensions.height;
275
+ }
276
+
277
+ // if min, max and number of ticks specified, user can't specify interval.
278
+ if (this.min != null && this.max != null && this.numberTicks != null) {
279
+ this.tickInterval = null;
280
+ }
281
+
282
+ min = (this.min != null) ? this.min : db.min;
283
+ max = (this.max != null) ? this.max : db.max;
284
+
285
+ // if min and max are same, space them out a bit.+
286
+ if (min == max) {
287
+ var adj = 0.05;
288
+ if (min > 0) {
289
+ adj = Math.max(Math.log(min)/Math.LN10, 0.05);
290
+ }
291
+ min -= adj;
292
+ max += adj;
293
+ }
294
+
295
+ var range = max - min;
296
+ var rmin, rmax;
297
+ var temp, prev, curr;
298
+ var ynumticks = [3,5,6,11,21];
299
+
300
+ // yaxis divide ticks in nice intervals from 0 to 1.
301
+ if (this.name == 'yaxis' || this.name == 'y2axis') {
302
+ this.min = 0;
303
+ this.max = 100;
304
+ // user didn't specify number of ticks.
305
+ if (!this.numberTicks){
306
+ if (this.tickInterval) {
307
+ this.numberTicks = 3 + Math.ceil(range / this.tickInterval);
308
+ }
309
+ else {
310
+ temp = 2 + Math.ceil((dim-(this.tickSpacing-1))/this.tickSpacing);
311
+ for (i=0; i<ynumticks.length; i++) {
312
+ curr = temp/ynumticks[i];
313
+ if (curr == 1) {
314
+ this.numberTicks = ynumticks[i];
315
+ break;
316
+ }
317
+ else if (curr > 1) {
318
+ prev = curr;
319
+ continue;
320
+ }
321
+ else if (curr < 1) {
322
+ // was prev or is curr closer to one?
323
+ if (Math.abs(prev - 1) < Math.abs(curr - 1)) {
324
+ this.numberTicks = ynumticks[i-1];
325
+ break;
326
+ }
327
+ else {
328
+ this.numberTicks = ynumticks[i];
329
+ break;
330
+ }
331
+ }
332
+ else if (i == ynumticks.length -1) {
333
+ this.numberTicks = ynumticks[i];
334
+ }
335
+ }
336
+ this.tickInterval = range / (this.numberTicks - 1);
337
+ }
338
+ }
339
+
340
+ // user did specify number of ticks.
341
+ else {
342
+ this.tickInterval = range / (this.numberTicks - 1);
343
+ }
344
+
345
+ for (var i=0; i<this.numberTicks; i++){
346
+ tt = this.min + i * this.tickInterval;
347
+ t = new this.tickRenderer(this.tickOptions);
348
+ // var t = new $.jqplot.AxisTickRenderer(this.tickOptions);
349
+ if (!this.showTicks) {
350
+ t.showLabel = false;
351
+ t.showMark = false;
352
+ }
353
+ else if (!this.showTickMarks) {
354
+ t.showMark = false;
355
+ }
356
+ t.setTick(tt, this.name);
357
+ this._ticks.push(t);
358
+ }
359
+ }
360
+
361
+ // for x axes, have number ot ticks equal to number of series and ticks placed
362
+ // at sum of y values for each series.
363
+ else if (this.tickMode == 'bar') {
364
+ this.min = 0;
365
+ this.numberTicks = this._series.length + 1;
366
+ t = new this.tickRenderer(this.tickOptions);
367
+ if (!this.showTicks) {
368
+ t.showLabel = false;
369
+ t.showMark = false;
370
+ }
371
+ else if (!this.showTickMarks) {
372
+ t.showMark = false;
373
+ }
374
+ t.setTick(0, this.name);
375
+ this._ticks.push(t);
376
+
377
+ temp = 0;
378
+
379
+ for (i=1; i<this.numberTicks; i++){
380
+ temp += this._series[i-1]._sumy;
381
+ t = new this.tickRenderer(this.tickOptions);
382
+ if (!this.showTicks) {
383
+ t.showLabel = false;
384
+ t.showMark = false;
385
+ }
386
+ else if (!this.showTickMarks) {
387
+ t.showMark = false;
388
+ }
389
+ t.setTick(temp, this.name);
390
+ this._ticks.push(t);
391
+ }
392
+ this.max = this.max || temp;
393
+
394
+ // if user specified a max and it is greater than sum, add a tick
395
+ if (this.max > temp) {
396
+ t = new this.tickRenderer(this.tickOptions);
397
+ if (!this.showTicks) {
398
+ t.showLabel = false;
399
+ t.showMark = false;
400
+ }
401
+ else if (!this.showTickMarks) {
402
+ t.showMark = false;
403
+ }
404
+ t.setTick(this.max, this.name);
405
+ this._ticks.push(t);
406
+
407
+ }
408
+ }
409
+
410
+ else if (this.tickMode == 'even') {
411
+ this.min = 0;
412
+ this.max = this.max || db.max;
413
+ // get a desired number of ticks
414
+ var nt = 2 + Math.ceil((dim-(this.tickSpacing-1))/this.tickSpacing);
415
+ range = this.max - this.min;
416
+ this.numberTicks = nt;
417
+ this.tickInterval = range / (this.numberTicks - 1);
418
+
419
+ for (i=0; i<this.numberTicks; i++){
420
+ tt = this.min + i * this.tickInterval;
421
+ t = new this.tickRenderer(this.tickOptions);
422
+ // var t = new $.jqplot.AxisTickRenderer(this.tickOptions);
423
+ if (!this.showTicks) {
424
+ t.showLabel = false;
425
+ t.showMark = false;
426
+ }
427
+ else if (!this.showTickMarks) {
428
+ t.showMark = false;
429
+ }
430
+ t.setTick(tt, this.name);
431
+ this._ticks.push(t);
432
+ }
433
+
434
+ }
435
+ }
436
+ };
437
+
438
+ // called with scope of axis
439
+ $.jqplot.MekkoAxisRenderer.prototype.pack = function(pos, offsets) {
440
+ var ticks = this._ticks;
441
+ var max = this.max;
442
+ var min = this.min;
443
+ var offmax = offsets.max;
444
+ var offmin = offsets.min;
445
+ var lshow = (this._label == null) ? false : this._label.show;
446
+
447
+ for (var p in pos) {
448
+ this._elem.css(p, pos[p]);
449
+ }
450
+
451
+ this._offsets = offsets;
452
+ // pixellength will be + for x axes and - for y axes becasue pixels always measured from top left.
453
+ var pixellength = offmax - offmin;
454
+ var unitlength = max - min;
455
+
456
+ // point to unit and unit to point conversions references to Plot DOM element top left corner.
457
+ this.p2u = function(p){
458
+ return (p - offmin) * unitlength / pixellength + min;
459
+ };
460
+
461
+ this.u2p = function(u){
462
+ return (u - min) * pixellength / unitlength + offmin;
463
+ };
464
+
465
+ if (this.name == 'xaxis' || this.name == 'x2axis'){
466
+ this.series_u2p = function(u){
467
+ return (u - min) * pixellength / unitlength;
468
+ };
469
+ this.series_p2u = function(p){
470
+ return p * unitlength / pixellength + min;
471
+ };
472
+ }
473
+
474
+ else {
475
+ this.series_u2p = function(u){
476
+ return (u - max) * pixellength / unitlength;
477
+ };
478
+ this.series_p2u = function(p){
479
+ return p * unitlength / pixellength + max;
480
+ };
481
+ }
482
+
483
+ if (this.show) {
484
+ if (this.name == 'xaxis' || this.name == 'x2axis') {
485
+ for (var i=0; i<ticks.length; i++) {
486
+ var t = ticks[i];
487
+ if (t.show && t.showLabel) {
488
+ var shim;
489
+
490
+ if (t.constructor == $.jqplot.CanvasAxisTickRenderer && t.angle) {
491
+ // will need to adjust auto positioning based on which axis this is.
492
+ var temp = (this.name == 'xaxis') ? 1 : -1;
493
+ switch (t.labelPosition) {
494
+ case 'auto':
495
+ // position at end
496
+ if (temp * t.angle < 0) {
497
+ shim = -t.getWidth() + t._textRenderer.height * Math.sin(-t._textRenderer.angle) / 2;
498
+ }
499
+ // position at start
500
+ else {
501
+ shim = -t._textRenderer.height * Math.sin(t._textRenderer.angle) / 2;
502
+ }
503
+ break;
504
+ case 'end':
505
+ shim = -t.getWidth() + t._textRenderer.height * Math.sin(-t._textRenderer.angle) / 2;
506
+ break;
507
+ case 'start':
508
+ shim = -t._textRenderer.height * Math.sin(t._textRenderer.angle) / 2;
509
+ break;
510
+ case 'middle':
511
+ shim = -t.getWidth()/2 + t._textRenderer.height * Math.sin(-t._textRenderer.angle) / 2;
512
+ break;
513
+ default:
514
+ shim = -t.getWidth()/2 + t._textRenderer.height * Math.sin(-t._textRenderer.angle) / 2;
515
+ break;
516
+ }
517
+ }
518
+ else {
519
+ shim = -t.getWidth()/2;
520
+ }
521
+ var val = this.u2p(t.value) + shim + 'px';
522
+ t._elem.css('left', val);
523
+ t.pack();
524
+ }
525
+ }
526
+ var w;
527
+ if (lshow) {
528
+ w = this._label._elem.outerWidth(true);
529
+ this._label._elem.css('left', offmin + pixellength/2 - w/2 + 'px');
530
+ if (this.name == 'xaxis') {
531
+ this._label._elem.css('bottom', '0px');
532
+ }
533
+ else {
534
+ this._label._elem.css('top', '0px');
535
+ }
536
+ this._label.pack();
537
+ }
538
+ // now show the labels under the bars.
539
+ var b, l, r;
540
+ for (var i=0; i<this.barLabels.length; i++) {
541
+ b = this._barLabels[i];
542
+ if (b.show) {
543
+ w = b.getWidth();
544
+ l = this._ticks[i].getLeft() + this._ticks[i].getWidth();
545
+ r = this._ticks[i+1].getLeft();
546
+ b._elem.css('left', (r+l-w)/2+'px');
547
+ b._elem.css('top', this._ticks[i]._elem.css('top'));
548
+ b.pack();
549
+ }
550
+ }
551
+ }
552
+ else {
553
+ for (var i=0; i<ticks.length; i++) {
554
+ var t = ticks[i];
555
+ if (t.show && t.showLabel) {
556
+ var shim;
557
+ if (t.constructor == $.jqplot.CanvasAxisTickRenderer && t.angle) {
558
+ // will need to adjust auto positioning based on which axis this is.
559
+ var temp = (this.name == 'yaxis') ? 1 : -1;
560
+ switch (t.labelPosition) {
561
+ case 'auto':
562
+ // position at end
563
+ case 'end':
564
+ if (temp * t.angle < 0) {
565
+ shim = -t._textRenderer.height * Math.cos(-t._textRenderer.angle) / 2;
566
+ }
567
+ else {
568
+ shim = -t.getHeight() + t._textRenderer.height * Math.cos(t._textRenderer.angle) / 2;
569
+ }
570
+ break;
571
+ case 'start':
572
+ if (t.angle > 0) {
573
+ shim = -t._textRenderer.height * Math.cos(-t._textRenderer.angle) / 2;
574
+ }
575
+ else {
576
+ shim = -t.getHeight() + t._textRenderer.height * Math.cos(t._textRenderer.angle) / 2;
577
+ }
578
+ break;
579
+ case 'middle':
580
+ shim = -t.getHeight()/2;
581
+ break;
582
+ default:
583
+ shim = -t.getHeight()/2;
584
+ break;
585
+ }
586
+ }
587
+ else {
588
+ shim = -t.getHeight()/2;
589
+ }
590
+
591
+ var val = this.u2p(t.value) + shim + 'px';
592
+ t._elem.css('top', val);
593
+ t.pack();
594
+ }
595
+ }
596
+ if (lshow) {
597
+ var h = this._label._elem.outerHeight(true);
598
+ this._label._elem.css('top', offmax - pixellength/2 - h/2 + 'px');
599
+ if (this.name == 'yaxis') {
600
+ this._label._elem.css('left', '0px');
601
+ }
602
+ else {
603
+ this._label._elem.css('right', '0px');
604
+ }
605
+ this._label.pack();
606
+ }
607
+ }
608
+ }
609
+ };
610
+ })(jQuery);
@@ -0,0 +1,57 @@
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
+ * included jsDate library by Chris Leonello:
30
+ *
31
+ * Copyright (c) 2010-2011 Chris Leonello
32
+ *
33
+ * jsDate is currently available for use in all personal or commercial projects
34
+ * under both the MIT and GPL version 2.0 licenses. This means that you can
35
+ * choose the license that best suits your project and use it accordingly.
36
+ *
37
+ * jsDate borrows many concepts and ideas from the Date Instance
38
+ * Methods by Ken Snyder along with some parts of Ken's actual code.
39
+ *
40
+ * Ken's origianl Date Instance Methods and copyright notice:
41
+ *
42
+ * Ken Snyder (ken d snyder at gmail dot com)
43
+ * 2008-09-10
44
+ * version 2.0.2 (http://kendsnyder.com/sandbox/date/)
45
+ * Creative Commons Attribution License 3.0 (http://creativecommons.org/licenses/by/3.0/)
46
+ *
47
+ * jqplotToImage function based on Larry Siden's export-jqplot-to-png.js.
48
+ * Larry has generously given permission to adapt his code for inclusion
49
+ * into jqPlot.
50
+ *
51
+ * Larry's original code can be found here:
52
+ *
53
+ * https://github.com/lsiden/export-jqplot-to-png
54
+ *
55
+ *
56
+ */
57
+ (function(a){a.jqplot.MekkoAxisRenderer=function(){};a.jqplot.MekkoAxisRenderer.prototype.init=function(c){this.tickMode;this.barLabelRenderer=a.jqplot.AxisLabelRenderer;this.barLabels=this.barLabels||[];this.barLabelOptions={};this.tickOptions=a.extend(true,{showGridline:false},this.tickOptions);this._barLabels=[];a.extend(true,this,c);if(this.name=="yaxis"){this.tickOptions.formatString=this.tickOptions.formatString||"%d%"}var b=this._dataBounds;b.min=0;if(this.name=="yaxis"||this.name=="y2axis"){b.max=100;this.tickMode="even"}else{if(this.name=="xaxis"){this.tickMode=(this.tickMode==null)?"bar":this.tickMode;for(var d=0;d<this._series.length;d++){b.max+=this._series[d]._sumy}}else{if(this.name=="x2axis"){this.tickMode=(this.tickMode==null)?"even":this.tickMode;for(var d=0;d<this._series.length;d++){b.max+=this._series[d]._sumy}}}}};a.jqplot.MekkoAxisRenderer.prototype.draw=function(b,j){if(this.show){this.renderer.createTicks.call(this);var h=0;var c;var g=document.createElement("div");this._elem=a(g);this._elem.addClass("jqplot-axis jqplot-"+this.name);this._elem.css("position","absolute");g=null;if(this.name=="xaxis"||this.name=="x2axis"){this._elem.width(this._plotDimensions.width)}else{this._elem.height(this._plotDimensions.height)}this.labelOptions.axis=this.name;this._label=new this.labelRenderer(this.labelOptions);if(this._label.show){this._elem.append(this._label.draw(b))}var f,e,g;if(this.showTicks){f=this._ticks;for(var d=0;d<f.length;d++){e=f[d];if(e.showLabel&&(!e.isMinorTick||this.showMinorTicks)){this._elem.append(e.draw(b))}}}for(d=0;d<this.barLabels.length;d++){this.barLabelOptions.axis=this.name;this.barLabelOptions.label=this.barLabels[d];this._barLabels.push(new this.barLabelRenderer(this.barLabelOptions));if(this.tickMode!="bar"){this._barLabels[d].show=false}if(this._barLabels[d].show){var g=this._barLabels[d].draw(b,j);g.removeClass("jqplot-"+this.name+"-label");g.addClass("jqplot-"+this.name+"-tick");g.addClass("jqplot-mekko-barLabel");g.appendTo(this._elem);g=null}}}return this._elem};a.jqplot.MekkoAxisRenderer.prototype.reset=function(){this.min=this._min;this.max=this._max;this.tickInterval=this._tickInterval;this.numberTicks=this._numberTicks};a.jqplot.MekkoAxisRenderer.prototype.set=function(){var k=0;var d;var c=0;var j=0;var b=(this._label==null)?false:this._label.show;if(this.show&&this.showTicks){var g=this._ticks;for(var f=0;f<g.length;f++){var e=g[f];if(e.showLabel&&(!e.isMinorTick||this.showMinorTicks)){if(this.name=="xaxis"||this.name=="x2axis"){d=e._elem.outerHeight(true)}else{d=e._elem.outerWidth(true)}if(d>k){k=d}}}if(b){c=this._label._elem.outerWidth(true);j=this._label._elem.outerHeight(true)}if(this.name=="xaxis"){k=k+j;this._elem.css({height:k+"px",left:"0px",bottom:"0px"})}else{if(this.name=="x2axis"){k=k+j;this._elem.css({height:k+"px",left:"0px",top:"0px"})}else{if(this.name=="yaxis"){k=k+c;this._elem.css({width:k+"px",left:"0px",top:"0px"});if(b&&this._label.constructor==a.jqplot.AxisLabelRenderer){this._label._elem.css("width",c+"px")}}else{k=k+c;this._elem.css({width:k+"px",right:"0px",top:"0px"});if(b&&this._label.constructor==a.jqplot.AxisLabelRenderer){this._label._elem.css("width",c+"px")}}}}}};a.jqplot.MekkoAxisRenderer.prototype.createTicks=function(){var z=this._ticks;var w=this.ticks;var B=this.name;var y=this._dataBounds;var p,x;var n,r;var d,c;var h,b,s,q;if(w.length){for(s=0;s<w.length;s++){var e=w[s];var h=new this.tickRenderer(this.tickOptions);if(e.constructor==Array){h.value=e[0];h.label=e[1];if(!this.showTicks){h.showLabel=false;h.showMark=false}else{if(!this.showTickMarks){h.showMark=false}}h.setTick(e[0],this.name);this._ticks.push(h)}else{h.value=e;if(!this.showTicks){h.showLabel=false;h.showMark=false}else{if(!this.showTickMarks){h.showMark=false}}h.setTick(e,this.name);this._ticks.push(h)}}this.numberTicks=w.length;this.min=this._ticks[0].value;this.max=this._ticks[this.numberTicks-1].value;this.tickInterval=(this.max-this.min)/(this.numberTicks-1)}else{if(B=="xaxis"||B=="x2axis"){p=this._plotDimensions.width}else{p=this._plotDimensions.height}if(this.min!=null&&this.max!=null&&this.numberTicks!=null){this.tickInterval=null}n=(this.min!=null)?this.min:y.min;r=(this.max!=null)?this.max:y.max;if(n==r){var g=0.05;if(n>0){g=Math.max(Math.log(n)/Math.LN10,0.05)}n-=g;r+=g}var k=r-n;var m,o;var v,l,u;var f=[3,5,6,11,21];if(this.name=="yaxis"||this.name=="y2axis"){this.min=0;this.max=100;if(!this.numberTicks){if(this.tickInterval){this.numberTicks=3+Math.ceil(k/this.tickInterval)}else{v=2+Math.ceil((p-(this.tickSpacing-1))/this.tickSpacing);for(s=0;s<f.length;s++){u=v/f[s];if(u==1){this.numberTicks=f[s];break}else{if(u>1){l=u;continue}else{if(u<1){if(Math.abs(l-1)<Math.abs(u-1)){this.numberTicks=f[s-1];break}else{this.numberTicks=f[s];break}}else{if(s==f.length-1){this.numberTicks=f[s]}}}}}this.tickInterval=k/(this.numberTicks-1)}}else{this.tickInterval=k/(this.numberTicks-1)}for(var s=0;s<this.numberTicks;s++){b=this.min+s*this.tickInterval;h=new this.tickRenderer(this.tickOptions);if(!this.showTicks){h.showLabel=false;h.showMark=false}else{if(!this.showTickMarks){h.showMark=false}}h.setTick(b,this.name);this._ticks.push(h)}}else{if(this.tickMode=="bar"){this.min=0;this.numberTicks=this._series.length+1;h=new this.tickRenderer(this.tickOptions);if(!this.showTicks){h.showLabel=false;h.showMark=false}else{if(!this.showTickMarks){h.showMark=false}}h.setTick(0,this.name);this._ticks.push(h);v=0;for(s=1;s<this.numberTicks;s++){v+=this._series[s-1]._sumy;h=new this.tickRenderer(this.tickOptions);if(!this.showTicks){h.showLabel=false;h.showMark=false}else{if(!this.showTickMarks){h.showMark=false}}h.setTick(v,this.name);this._ticks.push(h)}this.max=this.max||v;if(this.max>v){h=new this.tickRenderer(this.tickOptions);if(!this.showTicks){h.showLabel=false;h.showMark=false}else{if(!this.showTickMarks){h.showMark=false}}h.setTick(this.max,this.name);this._ticks.push(h)}}else{if(this.tickMode=="even"){this.min=0;this.max=this.max||y.max;var A=2+Math.ceil((p-(this.tickSpacing-1))/this.tickSpacing);k=this.max-this.min;this.numberTicks=A;this.tickInterval=k/(this.numberTicks-1);for(s=0;s<this.numberTicks;s++){b=this.min+s*this.tickInterval;h=new this.tickRenderer(this.tickOptions);if(!this.showTicks){h.showLabel=false;h.showMark=false}else{if(!this.showTickMarks){h.showMark=false}}h.setTick(b,this.name);this._ticks.push(h)}}}}}};a.jqplot.MekkoAxisRenderer.prototype.pack=function(e,d){var C=this._ticks;var x=this.max;var v=this.min;var m=d.max;var j=d.min;var o=(this._label==null)?false:this._label.show;for(var s in e){this._elem.css(s,e[s])}this._offsets=d;var f=m-j;var g=x-v;this.p2u=function(b){return(b-j)*g/f+v};this.u2p=function(b){return(b-v)*f/g+j};if(this.name=="xaxis"||this.name=="x2axis"){this.series_u2p=function(b){return(b-v)*f/g};this.series_p2u=function(b){return b*g/f+v}}else{this.series_u2p=function(b){return(b-x)*f/g};this.series_p2u=function(b){return b*g/f+x}}if(this.show){if(this.name=="xaxis"||this.name=="x2axis"){for(var y=0;y<C.length;y++){var n=C[y];if(n.show&&n.showLabel){var c;if(n.constructor==a.jqplot.CanvasAxisTickRenderer&&n.angle){var A=(this.name=="xaxis")?1:-1;switch(n.labelPosition){case"auto":if(A*n.angle<0){c=-n.getWidth()+n._textRenderer.height*Math.sin(-n._textRenderer.angle)/2}else{c=-n._textRenderer.height*Math.sin(n._textRenderer.angle)/2}break;case"end":c=-n.getWidth()+n._textRenderer.height*Math.sin(-n._textRenderer.angle)/2;break;case"start":c=-n._textRenderer.height*Math.sin(n._textRenderer.angle)/2;break;case"middle":c=-n.getWidth()/2+n._textRenderer.height*Math.sin(-n._textRenderer.angle)/2;break;default:c=-n.getWidth()/2+n._textRenderer.height*Math.sin(-n._textRenderer.angle)/2;break}}else{c=-n.getWidth()/2}var D=this.u2p(n.value)+c+"px";n._elem.css("left",D);n.pack()}}var k;if(o){k=this._label._elem.outerWidth(true);this._label._elem.css("left",j+f/2-k/2+"px");if(this.name=="xaxis"){this._label._elem.css("bottom","0px")}else{this._label._elem.css("top","0px")}this._label.pack()}var B,u,q;for(var y=0;y<this.barLabels.length;y++){B=this._barLabels[y];if(B.show){k=B.getWidth();u=this._ticks[y].getLeft()+this._ticks[y].getWidth();q=this._ticks[y+1].getLeft();B._elem.css("left",(q+u-k)/2+"px");B._elem.css("top",this._ticks[y]._elem.css("top"));B.pack()}}}else{for(var y=0;y<C.length;y++){var n=C[y];if(n.show&&n.showLabel){var c;if(n.constructor==a.jqplot.CanvasAxisTickRenderer&&n.angle){var A=(this.name=="yaxis")?1:-1;switch(n.labelPosition){case"auto":case"end":if(A*n.angle<0){c=-n._textRenderer.height*Math.cos(-n._textRenderer.angle)/2}else{c=-n.getHeight()+n._textRenderer.height*Math.cos(n._textRenderer.angle)/2}break;case"start":if(n.angle>0){c=-n._textRenderer.height*Math.cos(-n._textRenderer.angle)/2}else{c=-n.getHeight()+n._textRenderer.height*Math.cos(n._textRenderer.angle)/2}break;case"middle":c=-n.getHeight()/2;break;default:c=-n.getHeight()/2;break}}else{c=-n.getHeight()/2}var D=this.u2p(n.value)+c+"px";n._elem.css("top",D);n.pack()}}if(o){var z=this._label._elem.outerHeight(true);this._label._elem.css("top",m-f/2-z/2+"px");if(this.name=="yaxis"){this._label._elem.css("left","0px")}else{this._label._elem.css("right","0px")}this._label.pack()}}}}})(jQuery);