alchemy 1.0.2 → 8.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (232) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +24 -17
  3. data/README.md +538 -4
  4. data/lib/alchemy.rb +3 -6
  5. metadata +61 -266
  6. data/Rakefile +0 -21
  7. data/app/assets/fonts/alchemy/LiberationSans-Bold-webfont.eot +0 -0
  8. data/app/assets/fonts/alchemy/LiberationSans-Bold-webfont.svg +0 -154
  9. data/app/assets/fonts/alchemy/LiberationSans-Bold-webfont.ttf +0 -0
  10. data/app/assets/fonts/alchemy/LiberationSans-Bold-webfont.woff +0 -0
  11. data/app/assets/fonts/alchemy/LiberationSans-BoldItalic-webfont.eot +0 -0
  12. data/app/assets/fonts/alchemy/LiberationSans-BoldItalic-webfont.svg +0 -154
  13. data/app/assets/fonts/alchemy/LiberationSans-BoldItalic-webfont.ttf +0 -0
  14. data/app/assets/fonts/alchemy/LiberationSans-BoldItalic-webfont.woff +0 -0
  15. data/app/assets/fonts/alchemy/LiberationSans-Italic-webfont.eot +0 -0
  16. data/app/assets/fonts/alchemy/LiberationSans-Italic-webfont.svg +0 -154
  17. data/app/assets/fonts/alchemy/LiberationSans-Italic-webfont.ttf +0 -0
  18. data/app/assets/fonts/alchemy/LiberationSans-Italic-webfont.woff +0 -0
  19. data/app/assets/fonts/alchemy/LiberationSans-Regular-webfont.eot +0 -0
  20. data/app/assets/fonts/alchemy/LiberationSans-Regular-webfont.svg +0 -154
  21. data/app/assets/fonts/alchemy/LiberationSans-Regular-webfont.ttf +0 -0
  22. data/app/assets/fonts/alchemy/LiberationSans-Regular-webfont.woff +0 -0
  23. data/app/assets/fonts/alchemy/Red Hat Liberation License.txt +0 -78
  24. data/app/assets/fonts/alchemy/overpass_bold-web.eot +0 -0
  25. data/app/assets/fonts/alchemy/overpass_bold-web.svg +0 -470
  26. data/app/assets/fonts/alchemy/overpass_bold-web.ttf +0 -0
  27. data/app/assets/fonts/alchemy/overpass_bold-web.woff +0 -0
  28. data/app/assets/fonts/alchemy/overpass_regular-web.eot +0 -0
  29. data/app/assets/fonts/alchemy/overpass_regular-web.svg +0 -470
  30. data/app/assets/fonts/alchemy/overpass_regular-web.ttf +0 -0
  31. data/app/assets/fonts/alchemy/overpass_regular-web.woff +0 -0
  32. data/app/assets/images/alchemy/icons/action-icons.png +0 -0
  33. data/app/assets/images/alchemy/icons/arrow_icon.png +0 -0
  34. data/app/assets/images/alchemy/icons/chosen-sprite.png +0 -0
  35. data/app/assets/images/alchemy/icons/error_icon.png +0 -0
  36. data/app/assets/images/alchemy/icons/objects.png +0 -0
  37. data/app/assets/images/alchemy/icons/spinner.gif +0 -0
  38. data/app/assets/images/alchemy/icons/spinner_head.gif +0 -0
  39. data/app/assets/images/alchemy/icons/success_icon.png +0 -0
  40. data/app/assets/images/alchemy/icons/warning_icon.png +0 -0
  41. data/app/assets/javascripts/alchemy/flash_messages.js +0 -12
  42. data/app/assets/javascripts/alchemy/forms.js +0 -25
  43. data/app/assets/javascripts/alchemy/i18n.js +0 -36
  44. data/app/assets/javascripts/alchemy/login.js +0 -130
  45. data/app/assets/javascripts/alchemy/password.js +0 -99
  46. data/app/assets/stylesheets/alchemy/components/_chosen.scss +0 -423
  47. data/app/assets/stylesheets/alchemy/components/_content.scss +0 -58
  48. data/app/assets/stylesheets/alchemy/components/_helpers.scss +0 -38
  49. data/app/assets/stylesheets/alchemy/components/_media.scss +0 -49
  50. data/app/assets/stylesheets/alchemy/components/_media_object.scss +0 -22
  51. data/app/assets/stylesheets/alchemy/components/_normalize.scss +0 -448
  52. data/app/assets/stylesheets/alchemy/components/_shared.scss +0 -18
  53. data/app/assets/stylesheets/alchemy/components/buttons/_buttons.scss +0 -241
  54. data/app/assets/stylesheets/alchemy/components/buttons/_buttons_vars.scss +0 -10
  55. data/app/assets/stylesheets/alchemy/components/flash_messages/_flash_messages.scss +0 -93
  56. data/app/assets/stylesheets/alchemy/components/flash_messages/_flash_messages_vars.scss +0 -3
  57. data/app/assets/stylesheets/alchemy/components/fonts/_liberation.scss +0 -44
  58. data/app/assets/stylesheets/alchemy/components/fonts/_overpass.scss +0 -24
  59. data/app/assets/stylesheets/alchemy/components/footer/_footer.scss +0 -53
  60. data/app/assets/stylesheets/alchemy/components/footer/_footer_vars.scss +0 -4
  61. data/app/assets/stylesheets/alchemy/components/forms/_forms.scss +0 -536
  62. data/app/assets/stylesheets/alchemy/components/forms/_forms_ie.scss +0 -45
  63. data/app/assets/stylesheets/alchemy/components/forms/_forms_mixins.scss +0 -18
  64. data/app/assets/stylesheets/alchemy/components/forms/_forms_responsive.scss +0 -161
  65. data/app/assets/stylesheets/alchemy/components/forms/_forms_vars.scss +0 -25
  66. data/app/assets/stylesheets/alchemy/components/header/_header.scss +0 -214
  67. data/app/assets/stylesheets/alchemy/components/header/_header_vars.scss +0 -11
  68. data/app/assets/stylesheets/alchemy/components/login/_login.scss +0 -169
  69. data/app/assets/stylesheets/alchemy/components/login/_login_mixins.scss +0 -7
  70. data/app/assets/stylesheets/alchemy/components/login/_login_vars.scss +0 -19
  71. data/app/assets/stylesheets/alchemy/components/sprites/_sprites.scss +0 -110
  72. data/app/assets/stylesheets/alchemy/components/sprites/_sprites_mixins.scss +0 -9
  73. data/app/assets/stylesheets/alchemy/components/text/_text.scss +0 -30
  74. data/app/assets/stylesheets/alchemy/components/text/_text_vars.scss +0 -1
  75. data/app/assets/stylesheets/alchemy/composites/content_elements.scss +0 -6
  76. data/app/assets/stylesheets/alchemy/composites/login.scss +0 -9
  77. data/app/assets/stylesheets/alchemy/composites/shell.scss +0 -4
  78. data/app/assets/stylesheets/alchemy/partials/_base.scss +0 -8
  79. data/app/assets/stylesheets/alchemy/partials/_colors.scss +0 -99
  80. data/app/assets/stylesheets/alchemy/partials/_mixins.scss +0 -24
  81. data/app/assets/stylesheets/alchemy/partials/_vars.scss +0 -31
  82. data/app/helpers/alchemy/gettext_translations.rb +0 -28
  83. data/app/helpers/alchemy/layout_helper.rb +0 -19
  84. data/app/helpers/alchemy/rails_translations.rb +0 -21
  85. data/app/helpers/alchemy/translation_helper.rb +0 -19
  86. data/app/views/alchemy/layouts/_change_password_layout.html.haml +0 -20
  87. data/app/views/alchemy/layouts/_common_i18n.haml +0 -4
  88. data/app/views/alchemy/layouts/_header_layout.haml +0 -13
  89. data/app/views/alchemy/layouts/_login_layout.html.haml +0 -58
  90. data/app/views/alchemy/layouts/_user_session_layout.haml +0 -17
  91. data/app/views/alchemy/layouts/base.html.haml +0 -20
  92. data/app/views/alchemy/layouts/shell_layout.haml +0 -10
  93. data/lib/alchemy/version.rb +0 -3
  94. data/test/alchemy_test.rb +0 -7
  95. data/test/test_helper.rb +0 -9
  96. data/vendor/assets/javascripts/alchemy/html5shiv.js +0 -298
  97. data/vendor/assets/javascripts/alchemy/jquery/jquery-1.6.2.js +0 -8981
  98. data/vendor/assets/javascripts/alchemy/jquery/plugins/chosen.jquery.js +0 -1003
  99. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/API.txt +0 -1201
  100. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/FAQ.txt +0 -76
  101. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/LICENSE.txt +0 -22
  102. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/Makefile +0 -9
  103. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/NEWS.txt +0 -508
  104. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/PLUGINS.txt +0 -137
  105. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/README.txt +0 -90
  106. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/ajax.html +0 -143
  107. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/annotating.html +0 -75
  108. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/arrow-down.gif +0 -0
  109. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/arrow-left.gif +0 -0
  110. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/arrow-right.gif +0 -0
  111. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/arrow-up.gif +0 -0
  112. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/basic.html +0 -38
  113. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/data-eu-gdp-growth-1.json +0 -4
  114. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/data-eu-gdp-growth-2.json +0 -4
  115. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/data-eu-gdp-growth-3.json +0 -4
  116. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/data-eu-gdp-growth-4.json +0 -4
  117. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/data-eu-gdp-growth-5.json +0 -4
  118. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/data-eu-gdp-growth.json +0 -4
  119. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/data-japan-gdp-growth.json +0 -4
  120. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/data-usa-gdp-growth.json +0 -4
  121. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/graph-types.html +0 -75
  122. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/hs-2004-27-a-large_web.jpg +0 -0
  123. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/image.html +0 -45
  124. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/index.html +0 -44
  125. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/interacting-axes.html +0 -97
  126. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/interacting.html +0 -93
  127. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/layout.css +0 -6
  128. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/multiple-axes.html +0 -60
  129. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/navigate.html +0 -118
  130. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/percentiles.html +0 -57
  131. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/pie.html +0 -756
  132. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/realtime.html +0 -83
  133. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/resize.html +0 -61
  134. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/selection.html +0 -114
  135. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/setting-options.html +0 -61
  136. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/stacking.html +0 -77
  137. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/symbols.html +0 -49
  138. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/thresholding.html +0 -54
  139. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/time.html +0 -71
  140. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/tracking.html +0 -95
  141. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/turning-series.html +0 -98
  142. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/visitors.html +0 -90
  143. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/examples/zooming.html +0 -98
  144. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/excanvas.js +0 -1427
  145. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/excanvas.min.js +0 -1
  146. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.colorhelpers.js +0 -179
  147. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.colorhelpers.min.js +0 -1
  148. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.crosshair.js +0 -167
  149. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.crosshair.min.js +0 -1
  150. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.fillbetween.js +0 -183
  151. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.fillbetween.min.js +0 -1
  152. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.image.js +0 -238
  153. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.image.min.js +0 -1
  154. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.js +0 -2599
  155. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.min.js +0 -6
  156. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.navigate.js +0 -336
  157. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.navigate.min.js +0 -1
  158. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.pie.js +0 -750
  159. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.pie.min.js +0 -1
  160. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.resize.js +0 -60
  161. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.resize.min.js +0 -1
  162. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.selection.js +0 -344
  163. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.selection.min.js +0 -1
  164. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.stack.js +0 -184
  165. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.stack.min.js +0 -1
  166. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.symbol.js +0 -70
  167. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.symbol.min.js +0 -1
  168. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.threshold.js +0 -103
  169. data/vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.threshold.min.js +0 -1
  170. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery-svg/blank.svg +0 -3
  171. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery-svg/custom_test.js +0 -67
  172. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery-svg/jquery.svg.css +0 -9
  173. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery-svg/jquery.svg.js +0 -1101
  174. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery-svg/jquery.svg.min.js +0 -7
  175. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery-svg/jquery.svg.pack.js +0 -7
  176. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery-svg/jquery.svgfilter.js +0 -396
  177. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery-svg/jquery.svgfilter.min.js +0 -7
  178. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery-svg/jquery.svgfilter.pack.js +0 -7
  179. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery-svg/jquery.svggraph.js +0 -1337
  180. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery-svg/jquery.svggraph.min.js +0 -7
  181. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery-svg/jquery.svggraph.pack.js +0 -7
  182. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery-svg/lion.svg +0 -161
  183. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery-svg/test.js +0 -714
  184. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.ajaxfileupload.js +0 -205
  185. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.ba-bbq.js +0 -1137
  186. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.ba-resize.js +0 -246
  187. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.cookie.js +0 -92
  188. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.easing.1.3.js +0 -205
  189. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.fancyqueries.js +0 -106
  190. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.flash.js +0 -288
  191. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.form.js +0 -964
  192. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.hoverIntent.js +0 -106
  193. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.jeditable.ajaxupload.js +0 -62
  194. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.jeditable.js +0 -556
  195. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.jnotify.js +0 -210
  196. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.jscrollpane.js +0 -1390
  197. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.jscrollpane.min.js +0 -11
  198. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.linkHover.js +0 -89
  199. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.loadmask.min.js +0 -10
  200. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.mousewheel.js +0 -78
  201. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.multiselect.filter.js +0 -176
  202. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.multiselect.js +0 -668
  203. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.pack.js +0 -11
  204. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.periodicalupdater.js +0 -175
  205. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.sortElements.js +0 -75
  206. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.sparkline.min.js +0 -94
  207. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.text-overflow.js +0 -60
  208. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.timepickr.js +0 -214
  209. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.timers.js +0 -142
  210. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.tipsy.js +0 -358
  211. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.treeTable.js +0 -226
  212. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.trunk8.js +0 -203
  213. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.ui.multiselect.js +0 -338
  214. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.ui.totop.js +0 -58
  215. data/vendor/assets/javascripts/alchemy/jquery/plugins/jquery.uitablefilter.js +0 -95
  216. data/vendor/assets/javascripts/alchemy/jquery/plugins/ui.spinner.js +0 -683
  217. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/css/custom-theme/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  218. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/css/custom-theme/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  219. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/css/custom-theme/images/ui-bg_highlight-hard_75_dadada_1x100.png +0 -0
  220. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/css/custom-theme/images/ui-bg_highlight-hard_75_e6e6e6_1x100.png +0 -0
  221. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/css/custom-theme/images/ui-bg_highlight-hard_95_ffffff_1x100.png +0 -0
  222. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/css/custom-theme/images/ui-bg_highlight-soft_80_e0e0e0_1x100.png +0 -0
  223. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/css/custom-theme/images/ui-bg_inset-hard_65_ffffff_1x100.png +0 -0
  224. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/css/custom-theme/images/ui-bg_inset-soft_95_fef1ec_1x100.png +0 -0
  225. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/css/custom-theme/images/ui-icons_8f8f8f_256x240.png +0 -0
  226. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/css/custom-theme/images/ui-icons_97baed_256x240.png +0 -0
  227. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/css/custom-theme/images/ui-icons_cd0a0a_256x240.png +0 -0
  228. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/css/custom-theme/jquery-ui-1.8.11.custom.css +0 -573
  229. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/js/jquery-1.5.1.min.js +0 -16
  230. data/vendor/assets/javascripts/alchemy/jquery-ui-1.8.11.custom/js/jquery-ui-1.8.11.custom.min.js +0 -783
  231. data/vendor/assets/javascripts/alchemy/rails.js +0 -331
  232. data/vendor/assets/javascripts/alchemy/underscore-1.3.1.js +0 -999
@@ -1,137 +0,0 @@
1
- Writing plugins
2
- ---------------
3
-
4
- All you need to do to make a new plugin is creating an init function
5
- and a set of options (if needed), stuffing it into an object and
6
- putting it in the $.plot.plugins array. For example:
7
-
8
- function myCoolPluginInit(plot) {
9
- plot.coolstring = "Hello!";
10
- };
11
-
12
- $.plot.plugins.push({ init: myCoolPluginInit, options: { ... } });
13
-
14
- // if $.plot is called, it will return a plot object with the
15
- // attribute "coolstring"
16
-
17
- Now, given that the plugin might run in many different places, it's
18
- a good idea to avoid leaking names. The usual trick here is wrap the
19
- above lines in an anonymous function which is called immediately, like
20
- this: (function () { inner code ... })(). To make it even more robust
21
- in case $ is not bound to jQuery but some other Javascript library, we
22
- can write it as
23
-
24
- (function ($) {
25
- // plugin definition
26
- // ...
27
- })(jQuery);
28
-
29
- There's a complete example below, but you should also check out the
30
- plugins bundled with Flot.
31
-
32
-
33
- Complete example
34
- ----------------
35
-
36
- Here is a simple debug plugin which alerts each of the series in the
37
- plot. It has a single option that control whether it is enabled and
38
- how much info to output:
39
-
40
- (function ($) {
41
- function init(plot) {
42
- var debugLevel = 1;
43
-
44
- function checkDebugEnabled(plot, options) {
45
- if (options.debug) {
46
- debugLevel = options.debug;
47
-
48
- plot.hooks.processDatapoints.push(alertSeries);
49
- }
50
- }
51
-
52
- function alertSeries(plot, series, datapoints) {
53
- var msg = "series " + series.label;
54
- if (debugLevel > 1)
55
- msg += " with " + series.data.length + " points";
56
- alert(msg);
57
- }
58
-
59
- plot.hooks.processOptions.push(checkDebugEnabled);
60
- }
61
-
62
- var options = { debug: 0 };
63
-
64
- $.plot.plugins.push({
65
- init: init,
66
- options: options,
67
- name: "simpledebug",
68
- version: "0.1"
69
- });
70
- })(jQuery);
71
-
72
- We also define "name" and "version". It's not used by Flot, but might
73
- be helpful for other plugins in resolving dependencies.
74
-
75
- Put the above in a file named "jquery.flot.debug.js", include it in an
76
- HTML page and then it can be used with:
77
-
78
- $.plot($("#placeholder"), [...], { debug: 2 });
79
-
80
- This simple plugin illustrates a couple of points:
81
-
82
- - It uses the anonymous function trick to avoid name pollution.
83
- - It can be enabled/disabled through an option.
84
- - Variables in the init function can be used to store plot-specific
85
- state between the hooks.
86
-
87
- The two last points are important because there may be multiple plots
88
- on the same page, and you'd want to make sure they are not mixed up.
89
-
90
-
91
- Shutting down a plugin
92
- ----------------------
93
-
94
- Each plot object has a shutdown hook which is run when plot.shutdown()
95
- is called. This usually mostly happens in case another plot is made on
96
- top of an existing one.
97
-
98
- The purpose of the hook is to give you a chance to unbind any event
99
- handlers you've registered and remove any extra DOM things you've
100
- inserted.
101
-
102
- The problem with event handlers is that you can have registered a
103
- handler which is run in some point in the future, e.g. with
104
- setTimeout(). Meanwhile, the plot may have been shutdown and removed,
105
- but because your event handler is still referencing it, it can't be
106
- garbage collected yet, and worse, if your handler eventually runs, it
107
- may overwrite stuff on a completely different plot.
108
-
109
-
110
- Some hints on the options
111
- -------------------------
112
-
113
- Plugins should always support appropriate options to enable/disable
114
- them because the plugin user may have several plots on the same page
115
- where only one should use the plugin. In most cases it's probably a
116
- good idea if the plugin is turned off rather than on per default, just
117
- like most of the powerful features in Flot.
118
-
119
- If the plugin needs options that are specific to each series, like the
120
- points or lines options in core Flot, you can put them in "series" in
121
- the options object, e.g.
122
-
123
- var options = {
124
- series: {
125
- downsample: {
126
- algorithm: null,
127
- maxpoints: 1000
128
- }
129
- }
130
- }
131
-
132
- Then they will be copied by Flot into each series, providing default
133
- values in case none are specified.
134
-
135
- Think hard and long about naming the options. These names are going to
136
- be public API, and code is going to depend on them if the plugin is
137
- successful.
@@ -1,90 +0,0 @@
1
- About
2
- -----
3
-
4
- Flot is a Javascript plotting library for jQuery. Read more at the
5
- website:
6
-
7
- http://code.google.com/p/flot/
8
-
9
- Take a look at the examples linked from above, they should give a good
10
- impression of what Flot can do and the source code of the examples is
11
- probably the fastest way to learn how to use Flot.
12
-
13
-
14
- Installation
15
- ------------
16
-
17
- Just include the Javascript file after you've included jQuery.
18
-
19
- Generally, all browsers that support the HTML5 canvas tag are
20
- supported.
21
-
22
- For support for Internet Explorer < 9, you can use Excanvas, a canvas
23
- emulator; this is used in the examples bundled with Flot. You just
24
- include the excanvas script like this:
25
-
26
- <!--[if lte IE 8]><script language="javascript" type="text/javascript" src="excanvas.min.js"></script><![endif]-->
27
-
28
- If it's not working on your development IE 6.0, check that it has
29
- support for VML which Excanvas is relying on. It appears that some
30
- stripped down versions used for test environments on virtual machines
31
- lack the VML support.
32
-
33
- You can also try using Flashcanvas (see
34
- http://code.google.com/p/flashcanvas/), which uses Flash to do the
35
- emulation. Although Flash can be a bit slower to load than VML, if
36
- you've got a lot of points, the Flash version can be much faster
37
- overall. Flot contains some wrapper code for activating Excanvas which
38
- Flashcanvas is compatible with.
39
-
40
- You need at least jQuery 1.2.6, but try at least 1.3.2 for interactive
41
- charts because of performance improvements in event handling.
42
-
43
-
44
- Basic usage
45
- -----------
46
-
47
- Create a placeholder div to put the graph in:
48
-
49
- <div id="placeholder"></div>
50
-
51
- You need to set the width and height of this div, otherwise the plot
52
- library doesn't know how to scale the graph. You can do it inline like
53
- this:
54
-
55
- <div id="placeholder" style="width:600px;height:300px"></div>
56
-
57
- You can also do it with an external stylesheet. Make sure that the
58
- placeholder isn't within something with a display:none CSS property -
59
- in that case, Flot has trouble measuring label dimensions which
60
- results in garbled looks and might have trouble measuring the
61
- placeholder dimensions which is fatal (it'll throw an exception).
62
-
63
- Then when the div is ready in the DOM, which is usually on document
64
- ready, run the plot function:
65
-
66
- $.plot($("#placeholder"), data, options);
67
-
68
- Here, data is an array of data series and options is an object with
69
- settings if you want to customize the plot. Take a look at the
70
- examples for some ideas of what to put in or look at the reference
71
- in the file "API.txt". Here's a quick example that'll draw a line from
72
- (0, 0) to (1, 1):
73
-
74
- $.plot($("#placeholder"), [ [[0, 0], [1, 1]] ], { yaxis: { max: 1 } });
75
-
76
- The plot function immediately draws the chart and then returns a plot
77
- object with a couple of methods.
78
-
79
-
80
- What's with the name?
81
- ---------------------
82
-
83
- First: it's pronounced with a short o, like "plot". Not like "flawed".
84
-
85
- So "Flot" rhymes with "plot".
86
-
87
- And if you look up "flot" in a Danish-to-English dictionary, some up
88
- the words that come up are "good-looking", "attractive", "stylish",
89
- "smart", "impressive", "extravagant". One of the main goals with Flot
90
- is pretty looks.
@@ -1,143 +0,0 @@
1
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2
- <html>
3
- <head>
4
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5
- <title>Flot Examples</title>
6
- <link href="layout.css" rel="stylesheet" type="text/css">
7
- <!--[if lte IE 8]><script language="javascript" type="text/javascript" src="../excanvas.min.js"></script><![endif]-->
8
- <script language="javascript" type="text/javascript" src="../jquery.js"></script>
9
- <script language="javascript" type="text/javascript" src="../jquery.flot.js"></script>
10
- </head>
11
- <body>
12
- <h1>Flot Examples</h1>
13
-
14
- <div id="placeholder" style="width:600px;height:300px;"></div>
15
-
16
- <p>Example of loading data dynamically with AJAX. Percentage change in GDP (source: <a href="http://epp.eurostat.ec.europa.eu/tgm/table.do?tab=table&init=1&plugin=1&language=en&pcode=tsieb020">Eurostat</a>). Click the buttons below.</p>
17
-
18
- <p>The data is fetched over HTTP, in this case directly from text
19
- files. Usually the URL would point to some web server handler
20
- (e.g. a PHP page or Java/.NET/Python/Ruby on Rails handler) that
21
- extracts it from a database and serializes it to JSON.</p>
22
-
23
- <p>
24
- <input class="fetchSeries" type="button" value="First dataset"> -
25
- <a href="data-eu-gdp-growth.json">data</a> -
26
- <span></span>
27
- </p>
28
-
29
- <p>
30
- <input class="fetchSeries" type="button" value="Second dataset"> -
31
- <a href="data-japan-gdp-growth.json">data</a> -
32
- <span></span>
33
- </p>
34
-
35
- <p>
36
- <input class="fetchSeries" type="button" value="Third dataset"> -
37
- <a href="data-usa-gdp-growth.json">data</a> -
38
- <span></span>
39
- </p>
40
-
41
- <p>If you combine AJAX with setTimeout, you can poll the server
42
- for new data.</p>
43
-
44
- <p>
45
- <input class="dataUpdate" type="button" value="Poll for data">
46
- </p>
47
-
48
- <script type="text/javascript">
49
- $(function () {
50
- var options = {
51
- lines: { show: true },
52
- points: { show: true },
53
- xaxis: { tickDecimals: 0, tickSize: 1 }
54
- };
55
- var data = [];
56
- var placeholder = $("#placeholder");
57
-
58
- $.plot(placeholder, data, options);
59
-
60
-
61
- // fetch one series, adding to what we got
62
- var alreadyFetched = {};
63
-
64
- $("input.fetchSeries").click(function () {
65
- var button = $(this);
66
-
67
- // find the URL in the link right next to us
68
- var dataurl = button.siblings('a').attr('href');
69
-
70
- // then fetch the data with jQuery
71
- function onDataReceived(series) {
72
- // extract the first coordinate pair so you can see that
73
- // data is now an ordinary Javascript object
74
- var firstcoordinate = '(' + series.data[0][0] + ', ' + series.data[0][1] + ')';
75
-
76
- button.siblings('span').text('Fetched ' + series.label + ', first point: ' + firstcoordinate);
77
-
78
- // let's add it to our current data
79
- if (!alreadyFetched[series.label]) {
80
- alreadyFetched[series.label] = true;
81
- data.push(series);
82
- }
83
-
84
- // and plot all we got
85
- $.plot(placeholder, data, options);
86
- }
87
-
88
- $.ajax({
89
- url: dataurl,
90
- method: 'GET',
91
- dataType: 'json',
92
- success: onDataReceived
93
- });
94
- });
95
-
96
-
97
- // initiate a recurring data update
98
- $("input.dataUpdate").click(function () {
99
- // reset data
100
- data = [];
101
- alreadyFetched = {};
102
-
103
- $.plot(placeholder, data, options);
104
-
105
- var iteration = 0;
106
-
107
- function fetchData() {
108
- ++iteration;
109
-
110
- function onDataReceived(series) {
111
- // we get all the data in one go, if we only got partial
112
- // data, we could merge it with what we already got
113
- data = [ series ];
114
-
115
- $.plot($("#placeholder"), data, options);
116
- }
117
-
118
- $.ajax({
119
- // usually, we'll just call the same URL, a script
120
- // connected to a database, but in this case we only
121
- // have static example files so we need to modify the
122
- // URL
123
- url: "data-eu-gdp-growth-" + iteration + ".json",
124
- method: 'GET',
125
- dataType: 'json',
126
- success: onDataReceived
127
- });
128
-
129
- if (iteration < 5)
130
- setTimeout(fetchData, 1000);
131
- else {
132
- data = [];
133
- alreadyFetched = {};
134
- }
135
- }
136
-
137
- setTimeout(fetchData, 1000);
138
- });
139
- });
140
- </script>
141
-
142
- </body>
143
- </html>
@@ -1,75 +0,0 @@
1
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2
- <html>
3
- <head>
4
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5
- <title>Flot Examples</title>
6
- <link href="layout.css" rel="stylesheet" type="text/css">
7
- <!--[if lte IE 8]><script language="javascript" type="text/javascript" src="../excanvas.min.js"></script><![endif]-->
8
- <script language="javascript" type="text/javascript" src="../jquery.js"></script>
9
- <script language="javascript" type="text/javascript" src="../jquery.flot.js"></script>
10
- </head>
11
- <body>
12
- <h1>Flot Examples</h1>
13
-
14
- <div id="placeholder" style="width:600px;height:300px;"></div>
15
-
16
- <p>Flot has support for simple background decorations such as
17
- lines and rectangles. They can be useful for marking up certain
18
- areas. You can easily add any HTML you need with standard DOM
19
- manipulation, e.g. for labels. For drawing custom shapes there is
20
- also direct access to the canvas.</p>
21
-
22
- <script type="text/javascript">
23
- $(function () {
24
- // generate a dataset
25
- var d1 = [];
26
- for (var i = 0; i < 20; ++i)
27
- d1.push([i, Math.sin(i)]);
28
-
29
- var data = [{ data: d1, label: "Pressure", color: "#333" }];
30
-
31
- // setup background areas
32
- var markings = [
33
- { color: '#f6f6f6', yaxis: { from: 1 } },
34
- { color: '#f6f6f6', yaxis: { to: -1 } },
35
- { color: '#000', lineWidth: 1, xaxis: { from: 2, to: 2 } },
36
- { color: '#000', lineWidth: 1, xaxis: { from: 8, to: 8 } }
37
- ];
38
-
39
- var placeholder = $("#placeholder");
40
-
41
- // plot it
42
- var plot = $.plot(placeholder, data, {
43
- bars: { show: true, barWidth: 0.5, fill: 0.9 },
44
- xaxis: { ticks: [], autoscaleMargin: 0.02 },
45
- yaxis: { min: -2, max: 2 },
46
- grid: { markings: markings }
47
- });
48
-
49
- // add labels
50
- var o;
51
-
52
- o = plot.pointOffset({ x: 2, y: -1.2});
53
- // we just append it to the placeholder which Flot already uses
54
- // for positioning
55
- placeholder.append('<div style="position:absolute;left:' + (o.left + 4) + 'px;top:' + o.top + 'px;color:#666;font-size:smaller">Warming up</div>');
56
-
57
- o = plot.pointOffset({ x: 8, y: -1.2});
58
- placeholder.append('<div style="position:absolute;left:' + (o.left + 4) + 'px;top:' + o.top + 'px;color:#666;font-size:smaller">Actual measurements</div>');
59
-
60
- // draw a little arrow on top of the last label to demonstrate
61
- // canvas drawing
62
- var ctx = plot.getCanvas().getContext("2d");
63
- ctx.beginPath();
64
- o.left += 4;
65
- ctx.moveTo(o.left, o.top);
66
- ctx.lineTo(o.left, o.top - 10);
67
- ctx.lineTo(o.left + 10, o.top - 5);
68
- ctx.lineTo(o.left, o.top);
69
- ctx.fillStyle = "#000";
70
- ctx.fill();
71
- });
72
- </script>
73
-
74
- </body>
75
- </html>
@@ -1,38 +0,0 @@
1
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2
- <html>
3
- <head>
4
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5
- <title>Flot Examples</title>
6
- <link href="layout.css" rel="stylesheet" type="text/css">
7
- <!--[if lte IE 8]><script language="javascript" type="text/javascript" src="../excanvas.min.js"></script><![endif]-->
8
- <script language="javascript" type="text/javascript" src="../jquery.js"></script>
9
- <script language="javascript" type="text/javascript" src="../jquery.flot.js"></script>
10
- </head>
11
- <body>
12
- <h1>Flot Examples</h1>
13
-
14
- <div id="placeholder" style="width:600px;height:300px;"></div>
15
-
16
- <p>Simple example. You don't need to specify much to get an
17
- attractive look. Put in a placeholder, make sure you set its
18
- dimensions (otherwise the plot library will barf) and call the
19
- plot function with the data. The axes are automatically
20
- scaled.</p>
21
-
22
- <script type="text/javascript">
23
- $(function () {
24
- var d1 = [];
25
- for (var i = 0; i < 14; i += 0.5)
26
- d1.push([i, Math.sin(i)]);
27
-
28
- var d2 = [[0, 3], [4, 8], [8, 5], [9, 13]];
29
-
30
- // a null signifies separate line segments
31
- var d3 = [[0, 12], [7, 12], null, [7, 2.5], [12, 2.5]];
32
-
33
- $.plot($("#placeholder"), [ d1, d2, d3 ]);
34
- });
35
- </script>
36
-
37
- </body>
38
- </html>
@@ -1,4 +0,0 @@
1
- {
2
- "label": "Europe (EU27)",
3
- "data": [[1999, 3.0], [2000, 3.9]]
4
- }
@@ -1,4 +0,0 @@
1
- {
2
- "label": "Europe (EU27)",
3
- "data": [[1999, 3.0], [2000, 3.9], [2001, 2.0], [2002, 1.2]]
4
- }
@@ -1,4 +0,0 @@
1
- {
2
- "label": "Europe (EU27)",
3
- "data": [[1999, 3.0], [2000, 3.9], [2001, 2.0], [2002, 1.2], [2003, 1.3], [2004, 2.5]]
4
- }
@@ -1,4 +0,0 @@
1
- {
2
- "label": "Europe (EU27)",
3
- "data": [[1999, 3.0], [2000, 3.9], [2001, 2.0], [2002, 1.2], [2003, 1.3], [2004, 2.5], [2005, 2.0], [2006, 3.1]]
4
- }
@@ -1,4 +0,0 @@
1
- {
2
- "label": "Europe (EU27)",
3
- "data": [[1999, 3.0], [2000, 3.9], [2001, 2.0], [2002, 1.2], [2003, 1.3], [2004, 2.5], [2005, 2.0], [2006, 3.1], [2007, 2.9], [2008, 0.9]]
4
- }
@@ -1,4 +0,0 @@
1
- {
2
- "label": "Europe (EU27)",
3
- "data": [[1999, 3.0], [2000, 3.9], [2001, 2.0], [2002, 1.2], [2003, 1.3], [2004, 2.5], [2005, 2.0], [2006, 3.1], [2007, 2.9], [2008, 0.9]]
4
- }
@@ -1,4 +0,0 @@
1
- {
2
- "label": "Japan",
3
- "data": [[1999, -0.1], [2000, 2.9], [2001, 0.2], [2002, 0.3], [2003, 1.4], [2004, 2.7], [2005, 1.9], [2006, 2.0], [2007, 2.3], [2008, -0.7]]
4
- }
@@ -1,4 +0,0 @@
1
- {
2
- "label": "USA",
3
- "data": [[1999, 4.4], [2000, 3.7], [2001, 0.8], [2002, 1.6], [2003, 2.5], [2004, 3.6], [2005, 2.9], [2006, 2.8], [2007, 2.0], [2008, 1.1]]
4
- }
@@ -1,75 +0,0 @@
1
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2
- <html>
3
- <head>
4
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5
- <title>Flot Examples</title>
6
- <link href="layout.css" rel="stylesheet" type="text/css">
7
- <!--[if lte IE 8]><script language="javascript" type="text/javascript" src="../excanvas.min.js"></script><![endif]-->
8
- <script language="javascript" type="text/javascript" src="../jquery.js"></script>
9
- <script language="javascript" type="text/javascript" src="../jquery.flot.js"></script>
10
- </head>
11
- <body>
12
- <h1>Flot Examples</h1>
13
-
14
- <div id="placeholder" style="width:600px;height:300px"></div>
15
-
16
- <p>Flot supports lines, points, filled areas, bars and any
17
- combinations of these, in the same plot and even on the same data
18
- series.</p>
19
-
20
- <script type="text/javascript">
21
- $(function () {
22
- var d1 = [];
23
- for (var i = 0; i < 14; i += 0.5)
24
- d1.push([i, Math.sin(i)]);
25
-
26
- var d2 = [[0, 3], [4, 8], [8, 5], [9, 13]];
27
-
28
- var d3 = [];
29
- for (var i = 0; i < 14; i += 0.5)
30
- d3.push([i, Math.cos(i)]);
31
-
32
- var d4 = [];
33
- for (var i = 0; i < 14; i += 0.1)
34
- d4.push([i, Math.sqrt(i * 10)]);
35
-
36
- var d5 = [];
37
- for (var i = 0; i < 14; i += 0.5)
38
- d5.push([i, Math.sqrt(i)]);
39
-
40
- var d6 = [];
41
- for (var i = 0; i < 14; i += 0.5 + Math.random())
42
- d6.push([i, Math.sqrt(2*i + Math.sin(i) + 5)]);
43
-
44
- $.plot($("#placeholder"), [
45
- {
46
- data: d1,
47
- lines: { show: true, fill: true }
48
- },
49
- {
50
- data: d2,
51
- bars: { show: true }
52
- },
53
- {
54
- data: d3,
55
- points: { show: true }
56
- },
57
- {
58
- data: d4,
59
- lines: { show: true }
60
- },
61
- {
62
- data: d5,
63
- lines: { show: true },
64
- points: { show: true }
65
- },
66
- {
67
- data: d6,
68
- lines: { show: true, steps: true }
69
- }
70
- ]);
71
- });
72
- </script>
73
-
74
- </body>
75
- </html>
@@ -1,45 +0,0 @@
1
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2
- <html>
3
- <head>
4
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5
- <title>Flot Examples</title>
6
- <link href="layout.css" rel="stylesheet" type="text/css">
7
- <!--[if lte IE 8]><script language="javascript" type="text/javascript" src="../excanvas.min.js"></script><![endif]-->
8
- <script language="javascript" type="text/javascript" src="../jquery.js"></script>
9
- <script language="javascript" type="text/javascript" src="../jquery.flot.js"></script>
10
- <script language="javascript" type="text/javascript" src="../jquery.flot.image.js"></script>
11
- </head>
12
- <body>
13
- <h1>Flot Examples</h1>
14
-
15
- <div id="placeholder" style="width:400px;height:400px;"></div>
16
-
17
- <p>The Cat's Eye Nebula (<a href="http://hubblesite.org/gallery/album/nebula/pr2004027a/">picture from Hubble</a>).</p>
18
-
19
- <p>With the image plugin, you can plot images. This is for example
20
- useful for getting ticks on complex prerendered visualizations.
21
- Instead of inputting data points, you put in the images and where
22
- their two opposite corners are supposed to be in plot space.</p>
23
-
24
- <p>Images represent a little further complication because you need
25
- to make sure they are loaded before you can use them (Flot skips
26
- incomplete images). The plugin comes with a couple of helpers
27
- for doing that.</p>
28
-
29
- <script type="text/javascript">
30
- $(function () {
31
- var data = [ [ ["hs-2004-27-a-large_web.jpg", -10, -10, 10, 10] ] ];
32
- var options = {
33
- series: { images: { show: true } },
34
- xaxis: { min: -8, max: 4 },
35
- yaxis: { min: -8, max: 4 }
36
- };
37
-
38
- $.plot.image.loadDataImages(data, options, function () {
39
- $.plot($("#placeholder"), data, options);
40
- });
41
- });
42
- </script>
43
-
44
- </body>
45
- </html>