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,197 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+
6
+ <title>Block Plots</title>
7
+
8
+ <link class="include" rel="stylesheet" type="text/css" href="../jquery.jqplot.min.css" />
9
+ <link rel="stylesheet" type="text/css" href="examples.min.css" />
10
+ <link type="text/css" rel="stylesheet" href="syntaxhighlighter/styles/shCoreDefault.min.css" />
11
+ <link type="text/css" rel="stylesheet" href="syntaxhighlighter/styles/shThemejqPlot.min.css" />
12
+
13
+ <!--[if lt IE 9]><script language="javascript" type="text/javascript" src="../excanvas.js"></script><![endif]-->
14
+ <script class="include" type="text/javascript" src="../jquery.min.js"></script>
15
+
16
+
17
+ </head>
18
+ <body>
19
+ <div class="logo">
20
+ <div class="nav">
21
+ <a class="nav" href="../../../index.php"><span>&gt;</span>Home</a>
22
+ <a class="nav" href="../../../docs/"><span>&gt;</span>Docs</a>
23
+ <a class="nav" href="../../download/"><span>&gt;</span>Download</a>
24
+ <a class="nav" href="../../../info.php"><span>&gt;</span>Info</a>
25
+ <a class="nav" href="../../../donate.php"><span>&gt;</span>Donate</a>
26
+ </div>
27
+ </div>
28
+ <div class="example-content">
29
+
30
+ <div class="example-nav">
31
+ <a href="bezierCurve.html">Previous</a> <a href="./">Examples</a> <a href="bubble-plots.html">Next</a></div>
32
+
33
+
34
+ <!-- Example scripts go here -->
35
+
36
+ <p>Below is an example block plot. This plot also uses the Enhanced Legend Renderer plugin. Clicking on an item in the legend will toggle display of the appropriate series.</p>
37
+
38
+ <div id="chart1" class="plot" style="width:500px;height:300px;margin-bottom:30px;"></div>
39
+
40
+ <p>Blocks can be moved by selecting the series, the point, and an optional duration parameter. If specified, duration will animate the movement. Duration is either a number in milliseconds, or the keywords 'fast' or 'slow'. Higher numbers will cause a slower animation.</p>
41
+ Series: <select id="seriesId">
42
+ <option value="0" selected>First</option>
43
+ <option value="1">Second</option>
44
+ <option value="2">Third</option>
45
+ </select>
46
+ Point: <select id="pointId">
47
+ <option value="0" selected>first</option>
48
+ <option value="1">second</option>
49
+ <option value="2">third</option>
50
+ <option value="3">fourth</option>
51
+ <option value="4">fifth</option>
52
+ <option value="5">six</option>
53
+ </select>
54
+ Duration: <select id="duration">
55
+ <option value="" selected>None</option>
56
+ <option value="150">100</option>
57
+ <option value="fast">fast</option>
58
+ <option value="300">300</option>
59
+ <option value="300">400</option>
60
+ <option value="300">500</option>
61
+ <option value="slow">slow</option>
62
+ <option value="900">700</option>
63
+ <option value="900">800</option>
64
+ <option value="900">900</option>
65
+ </select>
66
+ X: <button id="mxval" type="button" value="-0.5" onclick="move('x', -1);">-1</button> <button id="pxval" type="button" value="-0.5" onclick="move('x', 0.5);">0.5</button>
67
+ Y: <button id="myval" type="button" name="myval" value="-10" onclick="move('y', -30);">-30</button> <button id="pyval" type="button" name="pyval" value="10" onclick="move('y', 15);">15</button>
68
+
69
+ <pre class="code brush:js"></pre>
70
+
71
+
72
+ <p>This second chart is like the first except the "varyBlockColors" renderer option is set to true. This will vary the color of each block in a series separately. This allows displaying a third dimension to the data such as grouping beverage products by producer and by category such as "cola", "tea", "energy drink", etc.</p>
73
+
74
+ <p>Also, the legend has it's "showSwathces" option set to false, since the blocks of each series will be of varying color and won't correspond to one swatch color. This still enables the user to show and hide the series by clicking on a label in the legend.</p>
75
+
76
+ <div id="chart2" class="plot" style="width:500px;height:300px;margin-bottom:30px;"></div>
77
+
78
+
79
+ <script class="code" type="text/javascript">
80
+ $(document).ready(function(){
81
+
82
+ var s1 = [[0.9, 120, 'Vernors'], [1.8, 140, 'Fanta'], [3.2, 90, 'Barqs', {background:'#ddbb33'}],
83
+ [4.1, 140, 'Arizon Iced Tea'], [4.5, 91, 'Red Bull'], [6.8, 17, 'Go Girl']];
84
+ var s2 = [[1.3, 44, 'Pepsi'], [2.1, 170, 'Sierra Mist'], [2.6, 66, 'Moutain Dew'],
85
+ [4, 52, 'Sobe'], [5.4, 16, 'Amp'], [6, 48, 'Aquafina']];
86
+ var s3 = [[1, 59, 'Coca-Cola', {background:'rgb(250, 160, 160)'}], [2, 50, 'Ambasa'],
87
+ [3, 90, 'Mello Yello'], [4, 90, 'Sprite'], [5, 71, 'Squirt'], [5, 155, 'Youki']];
88
+
89
+ var plot1 = $.jqplot('chart1',[s1, s2, s3],{
90
+ seriesDefaults:{
91
+ renderer:$.jqplot.BlockRenderer
92
+ },
93
+ legend:{
94
+ renderer: $.jqplot.EnhancedLegendRenderer,
95
+ show:true
96
+ },
97
+ series: [
98
+ {},
99
+ {rendererOptions: {
100
+ css:{background:'#A1EED6'}
101
+ }},
102
+ {rendererOptions: {
103
+ css:{background:'#D3E4A0'}
104
+ }}
105
+ ],
106
+ axes: {
107
+ xaxis: {
108
+ min:0,
109
+ max: 8
110
+ },
111
+ yaxis: {
112
+ min:0,
113
+ max: 200
114
+ }
115
+ }
116
+ });
117
+ });
118
+ </script>
119
+
120
+ <script class="code" type="text/javascript">
121
+ $(document).ready(function(){
122
+ var s1 = [[0.9, 120, 'Vernors'], [1.8, 140, 'Fanta'], [3.2, 90, 'Barqs'],
123
+ [4.1, 140, 'Arizon Iced Tea'], [4.5, 91, 'Red Bull'], [6.8, 17, 'Go Girl']];
124
+ var s2 = [[1.3, 44, 'Pepsi'], [2.1, 170, 'Sierra Mist'], [2.6, 66, 'Moutain Dew'],
125
+ [4, 52, 'Sobe'], [5.4, 16, 'Amp'], [6, 48, 'Aquafina']];
126
+ var s3 = [[1, 59, 'Coca-Cola'], [2, 50, 'Sprite'], [3, 90, 'Mello Yello'],
127
+ [4, 90, 'Ambasa'], [5, 71, 'Squirt'], [5, 155, 'Youki']];
128
+
129
+
130
+ var plot2 = $.jqplot('chart2',[s1, s2, s3],{
131
+ seriesDefaults:{
132
+ renderer:$.jqplot.BlockRenderer,
133
+ rendererOptions: {
134
+ varyBlockColors: true
135
+ },
136
+ pointLabels:{
137
+ show: false
138
+ }
139
+ },
140
+ legend:{
141
+ renderer: $.jqplot.EnhancedLegendRenderer,
142
+ show:true,
143
+ showSwatches: false
144
+ },
145
+ series: [{label: 'Independent Brands'}, {label: 'Pepsi Brands'}, {label: 'Coke Brands'}],
146
+ axes: {
147
+ xaxis: {
148
+ min:0,
149
+ max: 8
150
+ },
151
+ yaxis: {
152
+ min:0,
153
+ max: 200
154
+ }
155
+ }
156
+ });
157
+
158
+ });
159
+
160
+ function move(dir, val) {
161
+ val = parseFloat(val);
162
+ var sidx = parseInt($('#seriesId').val());
163
+ var pidx = parseInt($('#pointId').val());
164
+ var duration = $('#duration').val();
165
+ var x = plot1.series[sidx].data[pidx][0];
166
+ var y = plot1.series[sidx].data[pidx][1];
167
+ (dir == 'x') ? x += val : y += val;
168
+ plot1.series[sidx].moveBlock(pidx, x, y, duration);
169
+ }
170
+
171
+ </script>
172
+
173
+ <!-- End example scripts -->
174
+
175
+ <!-- Don't touch this! -->
176
+
177
+
178
+ <script class="include" type="text/javascript" src="../jquery.jqplot.min.js"></script>
179
+ <script type="text/javascript" src="syntaxhighlighter/scripts/shCore.min.js"></script>
180
+ <script type="text/javascript" src="syntaxhighlighter/scripts/shBrushJScript.min.js"></script>
181
+ <script type="text/javascript" src="syntaxhighlighter/scripts/shBrushXml.min.js"></script>
182
+ <!-- Additional plugins go here -->
183
+
184
+ <script class="include" type="text/javascript" src="../plugins/jqplot.blockRenderer.min.js"></script>
185
+ <script class="include" type="text/javascript" src="../plugins/jqplot.enhancedLegendRenderer.min.js"></script>
186
+ <script class="include" type="text/javascript" src="../plugins/jqplot.pointLabels.min.js"></script>
187
+
188
+ <!-- End additional plugins -->
189
+
190
+
191
+ </div>
192
+ <script type="text/javascript" src="example.min.js"></script>
193
+
194
+ </body>
195
+
196
+
197
+ </html>
@@ -0,0 +1,213 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+
6
+ <title>Bubble Plots</title>
7
+
8
+ <link class="include" rel="stylesheet" type="text/css" href="../jquery.jqplot.min.css" />
9
+ <link rel="stylesheet" type="text/css" href="examples.min.css" />
10
+ <link type="text/css" rel="stylesheet" href="syntaxhighlighter/styles/shCoreDefault.min.css" />
11
+ <link type="text/css" rel="stylesheet" href="syntaxhighlighter/styles/shThemejqPlot.min.css" />
12
+
13
+ <!--[if lt IE 9]><script language="javascript" type="text/javascript" src="../excanvas.js"></script><![endif]-->
14
+ <script class="include" type="text/javascript" src="../jquery.min.js"></script>
15
+
16
+
17
+ </head>
18
+ <body>
19
+ <div class="logo">
20
+ <div class="nav">
21
+ <a class="nav" href="../../../index.php"><span>&gt;</span>Home</a>
22
+ <a class="nav" href="../../../docs/"><span>&gt;</span>Docs</a>
23
+ <a class="nav" href="../../download/"><span>&gt;</span>Download</a>
24
+ <a class="nav" href="../../../info.php"><span>&gt;</span>Info</a>
25
+ <a class="nav" href="../../../donate.php"><span>&gt;</span>Donate</a>
26
+ </div>
27
+ </div>
28
+ <div class="example-content">
29
+
30
+ <div class="example-nav">
31
+ <a href="blockPlot.html">Previous</a> <a href="./">Examples</a> <a href="bubbleChart.html">Next</a></div>
32
+
33
+
34
+ <!-- Example scripts go here -->
35
+
36
+ <style type="text/css">
37
+
38
+ .note {
39
+ font-size: 0.8em;
40
+ }
41
+
42
+ #tooltip1b {
43
+ font-size: 12px;
44
+ color: rgb(15%, 15%, 15%);
45
+ padding:2px;
46
+ background-color: rgba(95%, 95%, 95%, 0.8);
47
+ }
48
+
49
+ #legend1b {
50
+ font-size: 12px;
51
+ border: 1px solid #cdcdcd;
52
+ border-collapse: collapse;
53
+ }
54
+ #legend1b td, #legend1b th {
55
+ border: 1px solid #cdcdcd;
56
+ padding: 1px 4px;
57
+ }
58
+
59
+
60
+ </style>
61
+
62
+ <p>Bubble charts represent 3 dimensional data. First, a basic bubble chart with the "bubbleGradients: true" option to specify gradient fills. Radial gradients are not supported in IE version before IE 9 and will be automatically disabled.</p>
63
+
64
+ <div id="chart1" style="height:340px; width:460px;"></div>
65
+
66
+ <pre class="code prettyprint brush: js"></pre>
67
+
68
+
69
+ <p>Data is passed in to a bubble chart as a series of [x, y, radius, &lt;label or object&gt;]. The optional fourth element of the data point can either be either a label string or an object having 'label' and/or 'color' properties to assign to the bubble.</p>
70
+
71
+ <p>By default, all bubbles are scaled according to the size of the plot area. The radius value in the data point will be adjusted to fit the bubbles in the chart. If the "autoscaleBubbles" option is set to false, the radius value in the data will be taken as a literal pixel value for the radius of the points.</p>
72
+
73
+ <p>Next are some basic customizations of bubble appearance with the "bubbleAlpha" and "highlightAlpha" options.</p>
74
+
75
+ <div id="chart2" style="height:340px; width:460px;"></div>
76
+
77
+ <pre class="code prettyprint brush: js"></pre>
78
+
79
+
80
+ <p>In the following example, display of a custom toolip and highlighting of a custom table legend is performed by binding to the "jqplotDataHighlight" and "jqplotDataUnhighlight" events. The custom legend table here is dynamically created with a few lines of jQuery (O.K., it could be done in one line) based on the data array of the plot.</p>
81
+
82
+ <div style="position:absolute;z-index:99;display:none;" id="tooltip1b"></div>
83
+
84
+ <table style="margin-left:auto; margin-right:auto;"><tr>
85
+ <td><div id="chart1b" style="width:460px;height:340px;"></div></td>
86
+ <td><div style="height:340px;"><table id="legend1b"><tr><th>Company</th><th>R Value</th></tr></table></div></td>
87
+ </tr></table>
88
+
89
+ <pre class="code prettyprint brush: js"></pre>
90
+
91
+
92
+ <script class="code" type="text/javascript">
93
+ $(document).ready(function(){
94
+
95
+ var arr = [[11, 123, 1236, "Acura"], [45, 92, 1067, "Alfa Romeo"],
96
+ [24, 104, 1176, "AM General"], [50, 23, 610, "Aston Martin Lagonda"],
97
+ [18, 17, 539, "Audi"], [7, 89, 864, "BMW"], [2, 13, 1026, "Bugatti"]];
98
+
99
+ var plot1 = $.jqplot('chart1',[arr],{
100
+ title: 'Bubble Chart with Gradient Fills',
101
+ seriesDefaults:{
102
+ renderer: $.jqplot.BubbleRenderer,
103
+ rendererOptions: {
104
+ bubbleGradients: true
105
+ },
106
+ shadow: true
107
+ }
108
+ });
109
+ });
110
+ </script>
111
+
112
+ <script class="code" type="text/javascript">
113
+ $(document).ready(function(){
114
+
115
+ var arr = [[11, 123, 1236, "Acura"], [45, 92, 1067, "Alfa Romeo"],
116
+ [24, 104, 1176, "AM General"], [50, 23, 610, "Aston Martin Lagonda"],
117
+ [18, 17, 539, "Audi"], [7, 89, 864, "BMW"], [2, 13, 1026, "Bugatti"]];
118
+
119
+ var plot2 = $.jqplot('chart2',[arr],{
120
+ title: 'Transparent Bubbles',
121
+ seriesDefaults:{
122
+ renderer: $.jqplot.BubbleRenderer,
123
+ rendererOptions: {
124
+ bubbleAlpha: 0.6,
125
+ highlightAlpha: 0.8
126
+ },
127
+ shadow: true,
128
+ shadowAlpha: 0.05
129
+ }
130
+ });
131
+ });
132
+ </script>
133
+
134
+ <script class="code" type="text/javascript">
135
+ $(document).ready(function(){
136
+
137
+ var arr = [[11, 123, 1236, "Acura"], [45, 92, 1067, "Alfa Romeo"],
138
+ [24, 104, 1176, "AM General"], [50, 23, 610, "Aston Martin Lagonda"],
139
+ [18, 17, 539, "Audi"], [7, 89, 864, "BMW"], [2, 13, 1026, "Bugatti"]];
140
+
141
+ var plot1b = $.jqplot('chart1b',[arr],{
142
+ title: 'Tooltip and Custom Legend Highlighting',
143
+ seriesDefaults:{
144
+ renderer: $.jqplot.BubbleRenderer,
145
+ rendererOptions: {
146
+ bubbleAlpha: 0.6,
147
+ highlightAlpha: 0.8,
148
+ showLabels: false
149
+ },
150
+ shadow: true,
151
+ shadowAlpha: 0.05
152
+ }
153
+ });
154
+
155
+ // Legend is a simple table in the html.
156
+ // Dynamically populate it with the labels from each data value.
157
+ $.each(arr, function(index, val) {
158
+ $('#legend1b').append('<tr><td>'+val[3]+'</td><td>'+val[2]+'</td></tr>');
159
+ });
160
+
161
+ // Now bind function to the highlight event to show the tooltip
162
+ // and highlight the row in the legend.
163
+ $('#chart1b').bind('jqplotDataHighlight',
164
+ function (ev, seriesIndex, pointIndex, data, radius) {
165
+ var chart_left = $('#chart1b').offset().left,
166
+ chart_top = $('#chart1b').offset().top,
167
+ x = plot1b.axes.xaxis.u2p(data[0]), // convert x axis unita to pixels
168
+ y = plot1b.axes.yaxis.u2p(data[1]); // convert y axis units to pixels
169
+ var color = 'rgb(50%,50%,100%)';
170
+ $('#tooltip1b').css({left:chart_left+x+radius+5, top:chart_top+y});
171
+ $('#tooltip1b').html('<span style="font-size:14px;font-weight:bold;color:' +
172
+ color + ';">' + data[3] + '</span><br />' + 'x: ' + data[0] +
173
+ '<br />' + 'y: ' + data[1] + '<br />' + 'r: ' + data[2]);
174
+ $('#tooltip1b').show();
175
+ $('#legend1b tr').css('background-color', '#ffffff');
176
+ $('#legend1b tr').eq(pointIndex+1).css('background-color', color);
177
+ });
178
+
179
+ // Bind a function to the unhighlight event to clean up after highlighting.
180
+ $('#chart1b').bind('jqplotDataUnhighlight',
181
+ function (ev, seriesIndex, pointIndex, data) {
182
+ $('#tooltip1b').empty();
183
+ $('#tooltip1b').hide();
184
+ $('#legend1b tr').css('background-color', '#ffffff');
185
+ });
186
+ });
187
+ </script>
188
+
189
+ <!-- End example scripts -->
190
+
191
+ <!-- Don't touch this! -->
192
+
193
+
194
+ <script class="include" type="text/javascript" src="../jquery.jqplot.min.js"></script>
195
+ <script type="text/javascript" src="syntaxhighlighter/scripts/shCore.min.js"></script>
196
+ <script type="text/javascript" src="syntaxhighlighter/scripts/shBrushJScript.min.js"></script>
197
+ <script type="text/javascript" src="syntaxhighlighter/scripts/shBrushXml.min.js"></script>
198
+ <!-- End Don't touch this! -->
199
+
200
+ <!-- Additional plugins go here -->
201
+
202
+ <script class="include" language="javascript" type="text/javascript" src="../plugins/jqplot.bubbleRenderer.min.js"></script>
203
+
204
+ <!-- End additional plugins -->
205
+
206
+
207
+ </div>
208
+ <script type="text/javascript" src="example.min.js"></script>
209
+
210
+ </body>
211
+
212
+
213
+ </html>
@@ -0,0 +1,264 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+
6
+ <title>Bubble Charts</title>
7
+
8
+ <link class="include" rel="stylesheet" type="text/css" href="../jquery.jqplot.min.css" />
9
+ <link rel="stylesheet" type="text/css" href="examples.min.css" />
10
+ <link type="text/css" rel="stylesheet" href="syntaxhighlighter/styles/shCoreDefault.min.css" />
11
+ <link type="text/css" rel="stylesheet" href="syntaxhighlighter/styles/shThemejqPlot.min.css" />
12
+
13
+ <!--[if lt IE 9]><script language="javascript" type="text/javascript" src="../excanvas.js"></script><![endif]-->
14
+ <script class="include" type="text/javascript" src="../jquery.min.js"></script>
15
+
16
+
17
+ </head>
18
+ <body>
19
+ <div class="logo">
20
+ <div class="nav">
21
+ <a class="nav" href="../../../index.php"><span>&gt;</span>Home</a>
22
+ <a class="nav" href="../../../docs/"><span>&gt;</span>Docs</a>
23
+ <a class="nav" href="../../download/"><span>&gt;</span>Download</a>
24
+ <a class="nav" href="../../../info.php"><span>&gt;</span>Info</a>
25
+ <a class="nav" href="../../../donate.php"><span>&gt;</span>Donate</a>
26
+ </div>
27
+ </div>
28
+ <div class="example-content">
29
+
30
+ <div class="example-nav">
31
+ <a href="bubble-plots.html">Previous</a> <a href="./">Examples</a> <a href="candlestick-charts.html">Next</a></div>
32
+
33
+
34
+ <!-- Example scripts go here -->
35
+
36
+ <style type="text/css">
37
+ .jqplot-target {
38
+ margin-bottom: 2em;
39
+ }
40
+
41
+ .note {
42
+ font-size: 0.8em;
43
+ }
44
+
45
+ #tooltip1b {
46
+ font-size: 12px;
47
+ color: rgb(15%, 15%, 15%);
48
+ padding:2px;
49
+ background-color: rgba(95%, 95%, 95%, 0.8);
50
+ }
51
+
52
+ #legend1b {
53
+ font-size: 12px;
54
+ border: 1px solid #cdcdcd;
55
+ border-collapse: collapse;
56
+ }
57
+ #legend1b td, #legend1b th {
58
+ border: 1px solid #cdcdcd;
59
+ padding: 1px 4px;
60
+ }
61
+ </style>
62
+
63
+
64
+ <p>Bubble charts represent 3 dimensional data. Data is passed in to a bubble chart as a series of [x, y, radius, &lt;label or object&gt;]. The optional fourth element of the data point can either be either a label string or an object having 'label' and/or 'color' properties to assign to the bubble.</p>
65
+
66
+ <p>By default, all bubbles are scaled according to the size of the plot area. The radius value in the data point will be adjusted to fit the bubbles in the chart. If the "autoscaleBubbles" option is set to false, the radius value in the data will be taken as a literal pixel value for the radius of the points.</p>
67
+
68
+ <p>The below chart show basic customization of bubble appearance with the "bubbleAlpha" and "highlightAlpha" options.</p>
69
+
70
+ <div id="chart1" class="plot" style="width:460px;height:340px;"></div>
71
+ <pre class="code brush:js"></pre>
72
+
73
+ <div style="position:absolute;z-index:99;display:none;" id="tooltip1b"></div>
74
+
75
+ <table><tr>
76
+ <td><div id="chart1b" class="plot" style="width:460px;height:340px;"></div></td>
77
+ <td><div style="height:340px;"><table id="legend1b"><tr><th>Company</th><th>R Value</th></tr></table></div></td>
78
+ </tr></table>
79
+ <pre class="code brush:js"></pre>
80
+
81
+ <p>Below is a basic bubble chart showing usage of the optional label and color properties passed in with the data.</p>
82
+
83
+ <div id="chart1c" class="plot" style="width:460px;height:340px;"></div>
84
+ <pre class="code brush:js"></pre>
85
+
86
+ <p>The next chart uses the "bubbleGradients: true" option to specify gradient fills on the bubbles. Radial gradients are not supported in IE<sup>*</sup> and will be automatically disabled.</p>
87
+
88
+ <div id="chart2" class="plot" style="width:460px;height:340px;"></div>
89
+
90
+ <p class="note"><sup>*</sup>Radial gradients are not supported in IE 7 and IE 8 because they are not supported in the excanvas emulation layer used by jqPlot to render charts in IE 7 and IE 8. jqPlot renders charts using the HTML canvas element which is supported by nearly every browser including IE 9. Excanvas translates the canvas rendering to VML rendering for IE 7 and 8, but unfortunately does not properly handle radial gradients.</p>
91
+
92
+ <pre class="code brush:js"></pre>
93
+
94
+ <p>The following bubble chart shows the "autoscalePointsFactor" and "autoscaleMultiplier" options which can be used to control bubble scaling. The "autoscalePointsFactor" options controls bubble scaling with the number of points on the plot. A negative value will decrease bubble size and number of bubbles increases. The "autoscaleMultiplier" will makes all bubbles larger or smaller for values greater or less than 1.0.</p>
95
+
96
+ <p>This chart also demonstrates some of the highlighting options. Bubble highlighting is controlled with the "highlightMouseOver" and "highlightMouseDown" boolean options. Here the "highlightMouseDown: true" option is set which causes the plot to highlight on mousedown (click). This automatically sets the "highlightMouseOver" option to false.</p>
97
+
98
+ <p>Events are also trigger with plot interaction. Specifically, "jqplotDataHighlight", "jqplotDataUnhighlight", "jqplotDataClick" and "jqplotDataRightClick" events are triggered. Handlers are passed an event object, the series index, the point index, and the bubble data.</p>
99
+
100
+ <div id="chart3" class="plot" style="width:600px;height:400px;"></div>
101
+ <pre class="code brush:js"></pre>
102
+
103
+ <script class="code" language="javascript" type="text/javascript">$(document).ready(function(){
104
+
105
+ var arr = [[11, 123, 1236, "Acura"], [45, 92, 1067, "Alfa Romeo"],
106
+ [24, 104, 1176, "AM General"], [50, 23, 610, "Aston Martin Lagonda"],
107
+ [18, 17, 539, "Audi"], [7, 89, 864, "BMW"], [2, 13, 1026, "Bugatti"]];
108
+
109
+ plot1 = $.jqplot('chart1',[arr],{
110
+ title: 'Transparent Bubbles',
111
+ seriesDefaults:{
112
+ renderer: $.jqplot.BubbleRenderer,
113
+ rendererOptions: {
114
+ bubbleAlpha: 0.6,
115
+ highlightAlpha: 0.8
116
+ },
117
+ shadow: true,
118
+ shadowAlpha: 0.05
119
+ }
120
+ });
121
+ });</script>
122
+
123
+ <script class="code" language="javascript" type="text/javascript">$(document).ready(function(){
124
+
125
+ var arr = [[11, 123, 1236, "Acura"], [45, 92, 1067, "Alfa Romeo"],
126
+ [24, 104, 1176, "AM General"], [50, 23, 610, "Aston Martin Lagonda"],
127
+ [18, 17, 539, "Audi"], [7, 89, 864, "BMW"], [2, 13, 1026, "Bugatti"]];
128
+
129
+ plot1b = $.jqplot('chart1b',[arr],{
130
+ title: 'Tooltip and Custom Legend Highlighting',
131
+ seriesDefaults:{
132
+ renderer: $.jqplot.BubbleRenderer,
133
+ rendererOptions: {
134
+ bubbleAlpha: 0.6,
135
+ highlightAlpha: 0.8,
136
+ showLabels: false
137
+ },
138
+ shadow: true,
139
+ shadowAlpha: 0.05
140
+ }
141
+ });
142
+
143
+ // Legend is a simple table in the html.
144
+ // Now populate it with the labels from each data value.
145
+ $.each(arr, function(index, val) {
146
+ $('#legend1b').append('<tr><td>'+val[3]+'</td><td>'+val[2]+'</td></tr>');
147
+ });
148
+
149
+ // Now bind function to the highlight event to show the tooltip
150
+ // and highlight the row in the legend.
151
+ $('#chart1b').bind('jqplotDataHighlight',
152
+ function (ev, seriesIndex, pointIndex, data, radius) {
153
+ var chart_left = $('#chart1b').offset().left,
154
+ chart_top = $('#chart1b').offset().top,
155
+ x = plot1b.axes.xaxis.u2p(data[0]), // convert x axis unita to pixels on grid
156
+ y = plot1b.axes.yaxis.u2p(data[1]); // convert y axis units to pixels on grid
157
+ var color = 'rgb(50%,50%,100%)';
158
+ $('#tooltip1b').css({left:chart_left+x+radius+5, top:chart_top+y});
159
+ $('#tooltip1b').html('<span style="font-size:14px;font-weight:bold;color:'+color+';">' +
160
+ data[3] + '</span><br />' + 'x: '+data[0] + '<br />' + 'y: ' +
161
+ data[1] + '<br />' + 'r: ' + data[2]);
162
+ $('#tooltip1b').show();
163
+ $('#legend1b tr').css('background-color', '#ffffff');
164
+ $('#legend1b tr').eq(pointIndex+1).css('background-color', color);
165
+ });
166
+
167
+ // Bind a function to the unhighlight event to clean up after highlighting.
168
+ $('#chart1b').bind('jqplotDataUnhighlight',
169
+ function (ev, seriesIndex, pointIndex, data) {
170
+ $('#tooltip1b').empty();
171
+ $('#tooltip1b').hide();
172
+ $('#legend1b tr').css('background-color', '#ffffff');
173
+ });
174
+ });</script>
175
+
176
+ <script class="code" language="javascript" type="text/javascript">$(document).ready(function(){
177
+
178
+ var arr = [[11, 123, 1236, {label:"Acura", color:'sandybrown'}],
179
+ [45, 92, 1067, {label:"Alfa Romeo", color:'skyblue'}],
180
+ [24, 104, 1176, {label:"AM General", color:"salmon"}], [50, 23, 610, {color:"papayawhip"}],
181
+ [18, 17, 539, "Audi"], [7, 89, 864], [2, 13, 1026, "Bugatti"]];
182
+
183
+ plot1c = $.jqplot('chart1c',[arr],{
184
+ title: 'Bubble Data Customizations',
185
+ seriesDefaults:{
186
+ renderer: $.jqplot.BubbleRenderer
187
+ }
188
+ });
189
+
190
+ });</script>
191
+
192
+ <script class="code" language="javascript" type="text/javascript">$(document).ready(function(){
193
+
194
+ var arr = [[11, 123, 1236, "Acura"], [45, 92, 1067, "Alfa Romeo"],
195
+ [24, 104, 1176, "AM General"], [50, 23, 610, "Aston Martin Lagonda"],
196
+ [18, 17, 539, "Audi"], [7, 89, 864, "BMW"], [2, 13, 1026, "Bugatti"]];
197
+
198
+ plot2 = $.jqplot('chart2',[arr],{
199
+ title: 'Bubble Gradient Fills*',
200
+ seriesDefaults:{
201
+ renderer: $.jqplot.BubbleRenderer,
202
+ rendererOptions: {
203
+ bubbleGradients: true
204
+ },
205
+ shadow: true
206
+ }
207
+ });
208
+
209
+ });</script>
210
+
211
+ <script class="code" language="javascript" type="text/javascript">$(document).ready(function(){
212
+
213
+ var arr = [[44, 66, 897, "Acura"], [25, 40, 1119, "Alfa Romeo"], [2, 33, 1197, "AM General"],
214
+ [4, 132, 896, "Aston Martin Lagonda"], [2, 129, 314, "Audi"], [14, 47, 612, "BMW"],
215
+ [45, 112, 719, "Bugatti"], [11, 38, 785, "Buick"], [15, 39, 367, "Cadillac"],
216
+ [6, 133, 726, "Chevrolet"], [48, 84, 1082, "Citroen"], [40, 18, 1047, "DaimlerChrysler Corporation"],
217
+ [24, 107, 1065, "Daewoo Motor Co."], [27, 92, 792, "Delorean Motor Company"], [1, 78, 803, "Dodge"],
218
+ [5, 149, 320, "Ferrari"], [11, 127, 497, "Fiat"], [14, 18, 805, "Ford Motor Company"],
219
+ [9, 101, 394, "General Motors"], [16, 57, 338, "GMC"], [19, 89, 977, "Holden"],
220
+ [35, 78, 464, "Honda"], [18, 130, 364, "Hummer"], [37, 20, 699, "Hyundai"],
221
+ [33, 140, 457, "Infiniti"], [12, 122, 533, "Isuzu"], [25, 67, 767, "Jaguar Cars"],
222
+ [0, 7, 481, "Jeep"], [38, 36, 611, "Jensen Motors"], [43, 91, 943, "Kia"], [45, 21, 569, "Laforza"]];
223
+
224
+ plot3 = $.jqplot('chart3',[arr],{
225
+ title: 'Bubble Auto Scaling Options',
226
+ seriesDefaults:{
227
+ renderer: $.jqplot.BubbleRenderer,
228
+ rendererOptions: {
229
+ autoscalePointsFactor: -0.15,
230
+ autoscaleMultiplier: 0.85,
231
+ highlightMouseDown: true,
232
+ bubbleAlpha: 0.7
233
+ },
234
+ shadow: true,
235
+ shadowAlpha: 0.05
236
+ }
237
+ });
238
+
239
+ });</script>
240
+
241
+
242
+ <!-- End example scripts -->
243
+
244
+ <!-- Don't touch this! -->
245
+
246
+
247
+ <script class="include" type="text/javascript" src="../jquery.jqplot.min.js"></script>
248
+ <script type="text/javascript" src="syntaxhighlighter/scripts/shCore.min.js"></script>
249
+ <script type="text/javascript" src="syntaxhighlighter/scripts/shBrushJScript.min.js"></script>
250
+ <script type="text/javascript" src="syntaxhighlighter/scripts/shBrushXml.min.js"></script>
251
+ <!-- Additional plugins go here -->
252
+
253
+ <script class="include" type="text/javascript" src="../plugins/jqplot.bubbleRenderer.min.js"></script>
254
+
255
+ <!-- End additional plugins -->
256
+
257
+
258
+ </div>
259
+ <script type="text/javascript" src="example.min.js"></script>
260
+
261
+ </body>
262
+
263
+
264
+ </html>