old_sql 1.16.0 → 1.17.0

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 (273) hide show
  1. data/README.md +24 -13
  2. data/app/controllers/old_sql/report_controller.rb +3 -17
  3. data/app/views/layouts/old_sql/chart.html.erb +11 -0
  4. data/app/views/old_sql/report/chart.html.erb +8 -25
  5. data/lib/generators/old_sql/templates/user_design_template.csv +2 -3
  6. data/lib/generators/old_sql/templates/user_old_sql_demo_chart_design.yml +18 -9
  7. data/lib/old_sql/report_design/chart.rb +2 -2
  8. data/lib/old_sql/report_design/chart_item.rb +4 -4
  9. data/lib/old_sql/report_design/chart_parser.rb +2 -2
  10. data/public/javascripts/old_sql/chart.js +33 -0
  11. metadata +5 -265
  12. data/public/javascripts/old_sql/MochiKit-1.4.2/Changes +0 -362
  13. data/public/javascripts/old_sql/MochiKit-1.4.2/LICENSE.txt +0 -69
  14. data/public/javascripts/old_sql/MochiKit-1.4.2/MANIFEST +0 -179
  15. data/public/javascripts/old_sql/MochiKit-1.4.2/META.json +0 -17
  16. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Async.html +0 -814
  17. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Base.html +0 -1703
  18. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Color.html +0 -755
  19. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/DOM.html +0 -1197
  20. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/DateTime.html +0 -168
  21. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/DragAndDrop.html +0 -187
  22. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Format.html +0 -300
  23. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Iter.html +0 -524
  24. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Logging.html +0 -420
  25. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/LoggingPane.html +0 -142
  26. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Position.html +0 -38
  27. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Selector.html +0 -240
  28. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Signal.html +0 -508
  29. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Sortable.html +0 -244
  30. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Style.html +0 -385
  31. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/VersionHistory.html +0 -384
  32. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Visual.html +0 -1161
  33. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/index.html +0 -447
  34. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/js/toc.js +0 -113
  35. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Async.rst +0 -767
  36. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Base.rst +0 -1445
  37. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Color.rst +0 -651
  38. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/DOM.rst +0 -1143
  39. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/DateTime.rst +0 -145
  40. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/DragAndDrop.rst +0 -197
  41. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Format.rst +0 -258
  42. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Iter.rst +0 -454
  43. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Logging.rst +0 -348
  44. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/LoggingPane.rst +0 -128
  45. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Position.rst +0 -26
  46. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Selector.rst +0 -203
  47. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Signal.rst +0 -498
  48. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Sortable.rst +0 -186
  49. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Style.rst +0 -353
  50. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/VersionHistory.rst +0 -362
  51. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Visual.rst +0 -895
  52. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/index.rst +0 -83
  53. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/ajax_tables/ajax_tables.css +0 -69
  54. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/ajax_tables/ajax_tables.js +0 -401
  55. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/ajax_tables/domains.json +0 -10
  56. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/ajax_tables/domains.xml +0 -40
  57. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/ajax_tables/index.html +0 -96
  58. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/color_wheel/color_wheel.css +0 -4
  59. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/color_wheel/color_wheel.js +0 -95
  60. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/color_wheel/index.html +0 -31
  61. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/dnd_sortable.css +0 -23
  62. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/dropmarker.png +0 -0
  63. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/icon.png +0 -0
  64. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/index.html +0 -54
  65. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable2_test.html +0 -150
  66. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable3_test.html +0 -42
  67. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable4_test.html +0 -90
  68. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable5_test.html +0 -29
  69. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable_test.html +0 -38
  70. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable_tree_test.html +0 -189
  71. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/draggable/draggable.css +0 -28
  72. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/draggable/draggable.js +0 -73
  73. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/draggable/index.html +0 -38
  74. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_bigslide.html +0 -36
  75. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_blind.html +0 -65
  76. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_blindslide.html +0 -31
  77. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_combi.css +0 -18
  78. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_fadeappear.html +0 -61
  79. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_grow_shrink.html +0 -38
  80. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_onload.html +0 -67
  81. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_queue.html +0 -67
  82. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_queue_limit.html +0 -30
  83. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_scroll.html +0 -483
  84. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_slide.html +0 -62
  85. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/full.html +0 -71
  86. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/icon.png +0 -0
  87. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/index.html +0 -150
  88. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/interpreter/index.html +0 -88
  89. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/interpreter/interpreter.css +0 -54
  90. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/interpreter/interpreter.js +0 -373
  91. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/key_events/index.html +0 -78
  92. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/key_events/key_events.css +0 -5
  93. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/key_events/key_events.js +0 -85
  94. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/logging_pane/index.html +0 -46
  95. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/logging_pane/logging_pane.css +0 -78
  96. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/logging_pane/logging_pane.js +0 -11
  97. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mochiregexp/index.html +0 -74
  98. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mochiregexp/mochiregexp.css +0 -73
  99. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mochiregexp/mochiregexp.js +0 -125
  100. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mouse_events/index.html +0 -88
  101. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mouse_events/mouse_events.css +0 -17
  102. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mouse_events/mouse_events.js +0 -59
  103. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/rounded_corners/index.html +0 -28
  104. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/rounded_corners/rounded_corners.css +0 -3
  105. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/rounded_corners/rounded_corners.js +0 -19
  106. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_boxes.html +0 -45
  107. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_full.html +0 -119
  108. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_ghost.html +0 -40
  109. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_hoverclass.html +0 -43
  110. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_scroll.html +0 -91
  111. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_snap.html +0 -54
  112. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/index.html +0 -93
  113. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/simple_dnd.css +0 -64
  114. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/sortable_tables/index.html +0 -71
  115. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/sortable_tables/sortable_tables.css +0 -66
  116. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/sortable_tables/sortable_tables.js +0 -203
  117. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/SyntaxHighlighter.css +0 -177
  118. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/Tests.html +0 -339
  119. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushCSharp.js +0 -30
  120. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushDelphi.js +0 -31
  121. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushJScript.js +0 -22
  122. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushPhp.js +0 -23
  123. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushPython.js +0 -71
  124. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushSql.js +0 -40
  125. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushVb.js +0 -29
  126. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushXml.js +0 -61
  127. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shCore.js +0 -622
  128. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/view-source.css +0 -1
  129. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/view-source.html +0 -19
  130. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/view-source.js +0 -70
  131. data/public/javascripts/old_sql/MochiKit-1.4.2/include/_img/bg_docheader.gif +0 -0
  132. data/public/javascripts/old_sql/MochiKit-1.4.2/include/_img/g_bullet.gif +0 -0
  133. data/public/javascripts/old_sql/MochiKit-1.4.2/include/_img/g_logo_doc.gif +0 -0
  134. data/public/javascripts/old_sql/MochiKit-1.4.2/include/css/documentation.css +0 -130
  135. data/public/javascripts/old_sql/MochiKit-1.4.2/include/css/general.css +0 -48
  136. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Async.js +0 -682
  137. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Base.js +0 -1489
  138. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Color.js +0 -863
  139. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/DOM.js +0 -1256
  140. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/DateTime.js +0 -222
  141. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/DragAndDrop.js +0 -793
  142. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Format.js +0 -304
  143. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Iter.js +0 -844
  144. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Logging.js +0 -315
  145. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/LoggingPane.js +0 -353
  146. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/MochiKit.js +0 -188
  147. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/MockDOM.js +0 -115
  148. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Position.js +0 -236
  149. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Selector.js +0 -415
  150. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Signal.js +0 -897
  151. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Sortable.js +0 -589
  152. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Style.js +0 -594
  153. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Test.js +0 -162
  154. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Visual.js +0 -2026
  155. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/__package__.js +0 -18
  156. data/public/javascripts/old_sql/MochiKit-1.4.2/packed/MochiKit/MochiKit.js +0 -7829
  157. data/public/javascripts/old_sql/MochiKit-1.4.2/packed/MochiKit/__package__.js +0 -6
  158. data/public/javascripts/old_sql/MochiKit-1.4.2/packed/MochiKit/customize.html +0 -251
  159. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/FakeJSAN.js +0 -40
  160. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/SimpleTest/SimpleTest.js +0 -381
  161. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/SimpleTest/TestRunner.js +0 -159
  162. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/SimpleTest/test.css +0 -28
  163. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/cli.js +0 -6
  164. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/index.html +0 -25
  165. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/standalone.js +0 -16
  166. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Base.js +0 -577
  167. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Color.js +0 -137
  168. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_DateTime.js +0 -52
  169. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_DragAndDrop.js +0 -30
  170. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Format.js +0 -89
  171. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Iter.js +0 -186
  172. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Logging.js +0 -88
  173. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Async.html +0 -408
  174. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Async.json +0 -1
  175. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Base.html +0 -34
  176. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Color.html +0 -84
  177. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-DOM-Safari.html +0 -48
  178. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-DOM.html +0 -363
  179. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-DateTime.html +0 -39
  180. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-DragAndDrop.html +0 -54
  181. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Format.html +0 -39
  182. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Iter.html +0 -38
  183. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-JSAN.html +0 -32
  184. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Logging.html +0 -40
  185. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-MochiKit.html +0 -18
  186. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Selector.html +0 -295
  187. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Signal.html +0 -43
  188. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Style.html +0 -223
  189. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Visual.html +0 -197
  190. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Signal.js +0 -481
  191. data/public/javascripts/old_sql/plotkit-0.9.1/COPYING +0 -28
  192. data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/Base.js +0 -406
  193. data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/Canvas.js +0 -683
  194. data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/EasyPlot.js +0 -161
  195. data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/Layout.js +0 -756
  196. data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/PlotKit.js +0 -151
  197. data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/PlotKit_Packed.js +0 -2177
  198. data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/SVG.js +0 -705
  199. data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/SweetCanvas.js +0 -348
  200. data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/SweetSVG.js +0 -247
  201. data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/dummy.svg +0 -9
  202. data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/excanvas.js +0 -723
  203. data/public/javascripts/old_sql/plotkit-0.9.1/README +0 -1
  204. data/public/javascripts/old_sql/plotkit-0.9.1/doc/MochiKitAdditions.html +0 -2
  205. data/public/javascripts/old_sql/plotkit-0.9.1/doc/MochiKitAdditions.txt +0 -2
  206. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Base.html +0 -302
  207. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Base.txt +0 -139
  208. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Canvas.html +0 -172
  209. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Canvas.txt +0 -81
  210. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.EasyPlot.html +0 -155
  211. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.EasyPlot.txt +0 -50
  212. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Layout.html +0 -428
  213. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Layout.txt +0 -330
  214. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.QuickStart.html +0 -368
  215. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.QuickStart.txt +0 -256
  216. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Renderer.html +0 -436
  217. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Renderer.txt +0 -299
  218. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SVG.html +0 -159
  219. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SVG.txt +0 -64
  220. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SweetCanvas.html +0 -131
  221. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SweetCanvas.txt +0 -34
  222. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SweetSVG.html +0 -131
  223. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SweetSVG.txt +0 -34
  224. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.html +0 -334
  225. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.txt +0 -151
  226. data/public/javascripts/old_sql/plotkit-0.9.1/doc/SVGCanvasCompat.html +0 -304
  227. data/public/javascripts/old_sql/plotkit-0.9.1/doc/SVGCanvasCompat.txt +0 -144
  228. data/public/javascripts/old_sql/plotkit-0.9.1/doc/barsample.png +0 -0
  229. data/public/javascripts/old_sql/plotkit-0.9.1/doc/black.png +0 -0
  230. data/public/javascripts/old_sql/plotkit-0.9.1/doc/blue.png +0 -0
  231. data/public/javascripts/old_sql/plotkit-0.9.1/doc/cyan.png +0 -0
  232. data/public/javascripts/old_sql/plotkit-0.9.1/doc/doc.css +0 -62
  233. data/public/javascripts/old_sql/plotkit-0.9.1/doc/generate.py +0 -37
  234. data/public/javascripts/old_sql/plotkit-0.9.1/doc/green.png +0 -0
  235. data/public/javascripts/old_sql/plotkit-0.9.1/doc/orange.png +0 -0
  236. data/public/javascripts/old_sql/plotkit-0.9.1/doc/piesample.png +0 -0
  237. data/public/javascripts/old_sql/plotkit-0.9.1/doc/purple.png +0 -0
  238. data/public/javascripts/old_sql/plotkit-0.9.1/doc/red.png +0 -0
  239. data/public/javascripts/old_sql/plotkit-0.9.1/scripts/custom_rhino.jar +0 -0
  240. data/public/javascripts/old_sql/plotkit-0.9.1/scripts/pack.py +0 -58
  241. data/public/javascripts/old_sql/plotkit-0.9.1/tests/axis.html +0 -31
  242. data/public/javascripts/old_sql/plotkit-0.9.1/tests/basic.html +0 -25
  243. data/public/javascripts/old_sql/plotkit-0.9.1/tests/basic.js +0 -143
  244. data/public/javascripts/old_sql/plotkit-0.9.1/tests/debug.html +0 -56
  245. data/public/javascripts/old_sql/plotkit-0.9.1/tests/demo-svg.html +0 -58
  246. data/public/javascripts/old_sql/plotkit-0.9.1/tests/demo-svg.js +0 -133
  247. data/public/javascripts/old_sql/plotkit-0.9.1/tests/demo.html +0 -57
  248. data/public/javascripts/old_sql/plotkit-0.9.1/tests/demo.js +0 -136
  249. data/public/javascripts/old_sql/plotkit-0.9.1/tests/dynamic.html +0 -161
  250. data/public/javascripts/old_sql/plotkit-0.9.1/tests/img/firefox.png +0 -0
  251. data/public/javascripts/old_sql/plotkit-0.9.1/tests/img/konqueror.png +0 -0
  252. data/public/javascripts/old_sql/plotkit-0.9.1/tests/img/mozilla.ico +0 -0
  253. data/public/javascripts/old_sql/plotkit-0.9.1/tests/img/msie.gif +0 -0
  254. data/public/javascripts/old_sql/plotkit-0.9.1/tests/img/opera.ico +0 -0
  255. data/public/javascripts/old_sql/plotkit-0.9.1/tests/img/safari.gif +0 -0
  256. data/public/javascripts/old_sql/plotkit-0.9.1/tests/labels-img.html +0 -38
  257. data/public/javascripts/old_sql/plotkit-0.9.1/tests/labels.html +0 -43
  258. data/public/javascripts/old_sql/plotkit-0.9.1/tests/prototype_compat.html +0 -28
  259. data/public/javascripts/old_sql/plotkit-0.9.1/tests/quickstart-easy.html +0 -29
  260. data/public/javascripts/old_sql/plotkit-0.9.1/tests/quickstart-horiz.html +0 -53
  261. data/public/javascripts/old_sql/plotkit-0.9.1/tests/quickstart-neg.html +0 -29
  262. data/public/javascripts/old_sql/plotkit-0.9.1/tests/quickstart-svg.html +0 -61
  263. data/public/javascripts/old_sql/plotkit-0.9.1/tests/quickstart.html +0 -57
  264. data/public/javascripts/old_sql/plotkit-0.9.1/tests/sample.txt +0 -6
  265. data/public/javascripts/old_sql/plotkit-0.9.1/tests/svg-sweet.html +0 -29
  266. data/public/javascripts/old_sql/plotkit-0.9.1/tests/svg-sweet.js +0 -141
  267. data/public/javascripts/old_sql/plotkit-0.9.1/tests/svg.html +0 -26
  268. data/public/javascripts/old_sql/plotkit-0.9.1/tests/svg.js +0 -147
  269. data/public/javascripts/old_sql/plotkit-0.9.1/tests/sweet.html +0 -24
  270. data/public/javascripts/old_sql/plotkit-0.9.1/tests/sweet.js +0 -89
  271. data/public/javascripts/old_sql/plotkit-0.9.1/tests/tests.css +0 -66
  272. data/public/javascripts/old_sql/plotkit-0.9.1/tests/testsvg.html +0 -20
  273. data/public/javascripts/old_sql/plotkit-0.9.1/tests/testsvg.js +0 -31
@@ -1,428 +0,0 @@
1
-
2
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
- <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en" >
4
- <head>
5
- <title>PlotKit.Layout | liquidx</title>
6
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
7
- <link href="http://media.liquidx.net/css/x_general.css" media="screen" rel="Stylesheet" type="text/css" />
8
- <link href="http://media.liquidx.net/css/x_header.css" media="screen" rel="Stylesheet" type="text/css" />
9
- <link href="http://media.liquidx.net/css/x_layout.css" media="screen" rel="Stylesheet" type="text/css" />
10
- <link href="http://media.liquidx.net/css/x_blocks.css" media="screen" rel="Stylesheet" type="text/css" />
11
- <link rel="icon" href="/favicon.png" type="image/x-png">
12
- <link rel="shortcut icon" href="/favicon.png" type="image/x-png">
13
- <!--[if lt IE 7.]>
14
- <script defer type="text/javascript" src="http://media.liquidx.net/js/pngfix.js"></script>
15
- <![endif]-->
16
-
17
- <link href="doc.css" media="screen" rel="stylesheet" type="text/css" />
18
-
19
- </head>
20
-
21
- <body>
22
- <div id="header">
23
- <div id="logo"><a href="http://www.liquidx.net/"><img src="http://media.liquidx.net/imgx/logo.png" width="256" height="128" alt="liquidx.net" /></a></div>
24
- <div id="menu-hack">
25
- <div id="menu-l"><img src="http://media.liquidx.net/imgx/menu_l.png" width="17" height="28" alt="menu cap" /></div><div id="menu-r"><img src="http://media.liquidx.net/imgx/menu_r.png" width="17" height="28" alt="menu cap" /></div>
26
- <div id="menu-main">
27
- <ul id="menu" class="code">
28
- <li class="tab" id="blog"><a href="http://www.liquidx.net/" title="blog/home">blog</a></li>
29
- <li class="tab" id="code"><a href="http://www.liquidx.net/code/" title="software i have written">software</a></li>
30
- <li class="tab" id="dev"><a href="http://projects.liquidx.net/" title="source code for my open source projects">dev</a></li>
31
- <li class="tab" id="photos"><a href="http://al.tse.id.au/gallery/" title="photos and videos">photos</a></li>
32
- <li class="tab" id="research"><a href="http://al.tse.id.au/research/" title="research profile">research</a></li>
33
- <li class="tab" id="links"><a href="http://www.liquidx.net/links/" title="my bookmarks">linkblog</a></li>
34
- <li class="tab" id="stats"><a href="http://stats.liquidx.net/" title="stats for various parts of my website">stats</a></li>
35
- <li class="tab" id="status"><a href="http://www.liquidx.net/status/" title="weather report for alastair">status</a></li>
36
- <li class="tab" id="about"><a href="http://al.tse.id.au/" title="about alastair tse">aboutme</a></li>
37
- </ul>
38
- </div>
39
- </div>
40
- <div id="quickbuttons">
41
- <span class="quickbutton"><a href="http://www.liquidx.net/albumartwidget/"><img src="http://media.liquidx.net/imgx/quick_widget.png" alt="album art widget" /></a></span>
42
- <span class="quickbutton"><a href="http://www.liquidx.net/plotkit/"><img src="http://media.liquidx.net/imgx/quick_plotkit.png" alt="plotkit" /></a></span>
43
- <span class="quickbutton"><a href="http://www.liquidx.net/fruity/"><img src="http://media.liquidx.net/imgx/quick_fruity.png" alt="fruity" /></a></span>
44
- </div>
45
-
46
- </div>
47
-
48
- <div id="body">
49
- <div class="page doc api">
50
-
51
- <p> <a href="PlotKit.html">PlotKit Home</a> | <a href="PlotKit.Base.html">&lt;&lt;</a> | <a href="PlotKit.Renderer.html">&gt;&gt;</a>
52
- </p>
53
-
54
- <h1> PlotKit Layout</h1>
55
- <p>PlotKit Layout is the core of the plotting engine. It deals exclusively with laying objects out on a virtual canvas that has the dimension of 1.0 x 1.0.
56
- </p>
57
- <p>The layout engine abstracts away all the complex layout problems with plotting charts and presents a list of objects that need to rendered rather than mixing this with the rendering logic.
58
- </p>
59
- <p>PlotKit Layout also is responsible for simple chart state querying so renderers can implement basic event support for objects on the canvas.
60
- </p>
61
-
62
- <h1> Constructor</h1>
63
- <p> <code>new Layout(style, options);</code>
64
- </p>
65
- <p>Layout takes the following arguments:
66
- </p>
67
- <p> <strong>style</strong> which can be <code>bar</code>, <code>line</code> or <code>pie</code> which represnts the style of the graph that is desired.
68
- </p>
69
- <p> <strong>options</strong> is a dictionary/associative array of layout options. Unrecognised keys are ignored. The following options are supported:
70
- </p>
71
-
72
- <h1> Layout Options</h1>
73
-
74
- <h2> Bar and Line Chart layout options</h2>
75
- <table cellpadding="0" cellspacing="0">
76
- <thead>
77
- <tr><td>Option name</td><td>Description</td><td>Type</td><td>Default</td></tr>
78
- </thead>
79
- <tbody>
80
- <tr>
81
- <th>barWidthFillFraction</th>
82
- <td>Amount of space the total amount of bars should consume per X value.</td>
83
- <td>Real number</td>
84
- <td>0.75</td>
85
- </tr>
86
- <tr>
87
- <th>barOrientation</th>
88
- <td>Orientation of a bar chart. <b>(PlotKit 0.9+ only)</b></td>
89
- <td>String ("vertical", "horizontal")</td>
90
- <td>vertical</td>
91
- </tr>
92
-
93
- <tr>
94
- <th>xAxis</th>
95
- <td>Minimum and Maximum values on the X axis.</td>
96
- <td>Array of 2 Real numbers. (eg. [0.0, 10.0])</td>
97
- <td>null</td>
98
- </tr>
99
- <tr>
100
- <th>xNumberOfTicks</th>
101
- <td>Used when automatically calculating axis ticks. This denotes the number of ticks there should be in the graph.</td>
102
- <td>integer</td>
103
- <td>10</td>
104
- </tr>
105
- <tr>
106
- <th>xOriginIsZero</th>
107
- <td>Should graph have X axis origin at 0</td>
108
- <td>boolean</td>
109
- <td>true</td>
110
- </tr>
111
- <tr>
112
- <th>xTickPrecision</th>
113
- <td>The number of decimal places we should round to for tick values.</td>
114
- <td>integer</td>
115
- <td>1</td>
116
- </tr>
117
- <tr>
118
- <th>xTicks</th>
119
- <td>X values at which ticks should be drawn. Automatically calculated if not defined using the parameters `xNumberOfTicks` and ``xTickPrecision``.</td>
120
- <td>Array of {label: "somelabel", v:value}.</td>
121
- <td>null</td>
122
- </tr>
123
-
124
- <tr>
125
- <th>yAxis</th>
126
- <td>Minimum and Maximum values on the Y axis.</td>
127
- <td>Array of 2 Real numbers. (eg. [0.0, 10.0])</td>
128
- <td>null</td>
129
- </tr>
130
- <tr>
131
- <th>yNumberOfTicks</th>
132
- <td>Used when automatically calculating axis ticks. This denotes the number of ticks there should be in the graph.</td>
133
- <td>integer</td>
134
- <td>5</td>
135
- </tr>
136
- <tr>
137
- <th>yOriginIsZero</th>
138
- <td>Should graph have Y axis origin at 0</td>
139
- <td>true</td>
140
- </tr>
141
- <tr>
142
- <th>yTickPrecision</th>
143
- <td>The number of decimal places we should round to for tick values.</td>
144
- <td>integer</td>
145
- <td>1</td>
146
- </tr>
147
- <tr>
148
- <th>yTicks</th>
149
- <td>Y values at which ticks should be drawn. Automatically calculated if not defined using the parameters ``yNumberOfTicks`` and ``yTickPrecision``.</td>
150
- <td>Array of {label: "somelabel", v:value}.</td>
151
- <td>null</td>
152
- </tr>
153
- </tbody>
154
- </table>
155
-
156
-
157
- <h2> Pie Chart Layout Options</h2>
158
- <table>
159
- <thead>
160
- <tr><td>Option name</td><td>Description</td><td>Type</td><td>Default</td></tr>
161
- </thead>
162
- <tbody>
163
- <tr>
164
- <th>pieRadius</th>
165
- <td>Radius of the circle to be drawn.</td>
166
- <td>Real number</td>
167
- <td>0.4</td>
168
- </tr>
169
- </tbody>
170
- </table>
171
-
172
-
173
- <h1> Layout Properties</h1>
174
- <p>There are some properties you can access, either because you are using a layout inside a renderer or if you would like additional information. Under normal operations, you will not need to, or should modify these parameters.
175
- </p>
176
- <table cellpadding="0" cellspacing="0">
177
- <thead>
178
- <tr><td>Property</td><td>Type</td><td>Description</td></tr>
179
- </thead>
180
- <tbody>
181
- <tr>
182
- <th>style</th>
183
- <td>String</td>
184
- <td>This denotes the type of chart this layout is using. Valid values are ``bar``, ``line`` or ``pie``. Renderers will use this to determine which parameter (``bars``, ``points`` or ``slices``) to access in order to get draw the chart.</td>
185
- </tr>
186
- <tr>
187
- <th>bars</th>
188
- <td>Array of Bar.</td>
189
- <td>This is a list of rectangles with values that the renderer should plot. This will only be valid after ``evaluate()`` has run. The properties of ``bar`` is described here. This is only valid if style is ``bar``. This array is sorted by dataset and then x-values.</td>
190
- </tr>
191
- <tr>
192
- <th>points</th>
193
- <td>Array of Point.</td>
194
- <td>This is a list of points with values that the renderer should plot. This will only be valid after ``evaluate()`` has run. The properties of ``bar`` is described here. This is only valid if style is ``line``. This array is sorted by dataset and then x-values.</td>
195
- </tr>
196
- <tr>
197
- <th>slices</th>
198
- <td>Array of Slice.</td>
199
- <td>This is a list of pie slices with values that the renderer should plot. This will only be valid after ``evaluate()`` has run. The properties of ``bar`` is described here. This is only valid if style is ``pie``.</td>
200
- </tr>
201
- <tr>
202
- <th>xticks</th>
203
- <td>Array of Tick.</td>
204
- <td>For style in ``bar`` or ``line``, these are the ticks on the X axis. A ``tick`` is represented as a two element array with the first element representing the x position of the tick and the second element representing the string value of the label at that position.</td>
205
- </tr>
206
- <tr>
207
- <th>yticks</th>
208
- <td>Array of Tick.</td>
209
- <td>For style in ``bar`` or ``line``, these are the ticks on the Y axis. A ``tick`` is represented as a two element array with the first element representing the y position of the tick and the second element representing the string value of the label at that position.</td>
210
- </tr>
211
- <tr>
212
- <th>datasets</th>
213
- <td>Associative Array of datasets</td>
214
- <td>This should normally only be used to find the number of datasets by performing ``keys(layout.datasets)``. If you are looking at this in a renderer, then the layout engine needs to be extended.</td>
215
- </tr>
216
- </tbody>
217
- </table>
218
-
219
-
220
- <h1> Layout Types</h1>
221
- <p>Here are the definition of the types that you will encounter if you access the properties of the Layout object, specifically <code>bars</code>, <code>points</code> and <code>slices</code>. If you are not writing a renderer, you do not need to know this.
222
- </p>
223
-
224
- <h2> Bar Type</h2>
225
- <p>Represents a bar that the renderer will draw. It contains the following properties.
226
- </p>
227
- <table cellpadding="0" cellspacing="0">
228
- <thead>
229
- <tr><td>Property</td><td>Type</td><td>Description</td></tr>
230
- </thead>
231
- <tbody>
232
- <tr>
233
- <th>x, y</th>
234
- <td>float</td>
235
- <td>top left position of the bar between 0.0 and 1.0.</td>
236
- </tr>
237
- <tr>
238
- <th>w, h</th>
239
- <td>float</td>
240
- <td>width and height of the bar from (``x``, ``y``) between 0.0 and 1.0.</td>
241
- </tr>
242
- <tr>
243
- <th>xval, yval</th>
244
- <td>float</td>
245
- <td>The actual x value and y value this bar represents.</td>
246
- </tr>
247
- <tr>
248
- <th>name</th>
249
- <td>string</td>
250
- <td>Name of the dataset which this bar belongs to.</td>
251
- </tr>
252
- </tbody>
253
- </table>
254
-
255
-
256
- <h2> Point Type</h2>
257
- <p>This represents a point on a line chart.
258
- </p>
259
- <table cellpadding="0" cellspacing="0">
260
- <thead>
261
- <tr><td>Property</td><td>Type</td><td>Description</td></tr>
262
- </thead>
263
- <tbody>
264
- <tr>
265
- <th>x, y</th>
266
- <td>float</td>
267
- <td>top left position of the point between 0.0 and 1.0.</td>
268
- </tr>
269
- <tr>
270
- <th>xval, yval</th>
271
- <td>float</td>
272
- <td>The actual x value and y value this bar represents.</td>
273
- </tr>
274
- <tr>
275
- <th>name</th>
276
- <td>string</td>
277
- <td>Name of the dataset which this bar belongs to.</td>
278
- </tr>
279
- </tbody>
280
- </table>
281
-
282
-
283
- <h2> Slice Type</h2>
284
- <p>This represents a pie slice in a pie chart.
285
- </p>
286
- <table>
287
- <thead>
288
- <tr><td>Property</td><td>Type</td><td>Description</td></tr>
289
- </thead>
290
- <tbody>
291
- <tr>
292
- <th>fraction</th>
293
- <td>float</td>
294
- <td>The fractional value this slice represents. This number is between 0.0 and 1.0</td>
295
- </tr>
296
- <tr>
297
- <th>xval, yval</th>
298
- <td>float</td>
299
- <td>The x and y values of this slice.</td>
300
- </tr>
301
- <tr>
302
- <th>startAngle</th>
303
- <td>float</td>
304
- <td>This is the angle of the start of the slice, in radians.</td>
305
- </tr>
306
- <tr>
307
- <th>endAngle</th>
308
- <td>float</td>
309
- <td>This is the angle of the end of the slice, in radians.</td>
310
- </tr>
311
- </tbody>
312
- </table>
313
-
314
-
315
- <h1> Layout Methods</h1>
316
- <ul>
317
- <li>
318
- <code>addDataset(name, values)</code>
319
- </li>
320
- </ul>
321
- <p> Adds a dataset to the layout engine and assigns it with <code>name</code>. <code>values</code> is an array of <code>\[x, y\]</code> values.
322
- </p>
323
- <ul>
324
- <li>
325
- <code>removeDataset(name)</code>
326
- </li>
327
- </ul>
328
- <p> Removes a dataset from the layout engine. In order for the new data to take effect, you must run <code>evaluate()</code>.
329
- </p>
330
- <ul>
331
- <li>
332
- <code>addDatasetFromTable(name, tableElement, xcol = 0, ycol = 1, labelCol = -1)</code>
333
- </li>
334
- </ul>
335
- <p> Handy function to read values off a table. <code>name</code> is the name to give to the dataset just like in <code>addDataset()</code>, <code>tableElement</code> is the table which contains the values. Optionally, the user may specify to extract alternative columns using <code>xcol</code> and <code>ycol</code>.
336
- </p>
337
- <p> <strong>New in 0.9.1:</strong> If <code>labelCol</code> is specified to a value greater than -1, it will take the contents of that column as the xTick labels.
338
- </p>
339
- <ul>
340
- <li>
341
- <code>evaluate()</code>
342
- </li>
343
- </ul>
344
- <p> Performs the evaluation of the layout. It is not done automatically, and you <strong>must</strong> execute this before passing the layout to a renderer.
345
- </p>
346
- <ul>
347
- <li>
348
- hitTest(x, y)
349
- </li>
350
- </ul>
351
- <p> Used by renderers to see if a virtual canvas position corresponds to any data. The return value varies per style. For <code>bar</code> charts, it will return the Bar type if it is a hit, or null if not. For <code>line</code> charts, it will return a value if the point is underneath the highest curve, otherwise null <strong>(TODO: expand this or change implementation)</strong>. For <code>pie</code> charts, it will return the Slice object that is at the point, otherwise null.
352
- </p>
353
- <p> <strong>Note that the specification of this function is subject to change</strong>.
354
- </p>
355
-
356
- <h1> Layout Notes</h1>
357
-
358
- <h2> Pie Chart Data and Ticks Restrictions</h2>
359
- <p>Note that you can only use one dataset for pie charts. Only the y value of the dataset will be used, but the x value must be unique and set as it will correspond to the xTicks that are given.
360
- </p>
361
- <p>Labels for pie charts will only use xTicks.
362
- </p>
363
-
364
- <h1> Layout Examples</h1>
365
-
366
-
367
- </div>
368
- </div>
369
-
370
-
371
-
372
-
373
- <div id="footer">
374
- <div class="block">
375
- <h3>Syndication Feeds:</h3>
376
- <p>
377
- <ul class="tiny">
378
- <li><a href="http://www.liquidx.net/blog/feed/atom/" class="feed" title="feed for all posts on liquidx.net"><img src="http://media.liquidx.net/imgx/feed.gif" class="feed" alt="feed" />Atom Feed for the Blog Entries</a></li>
379
- <li><a href="http://www.liquidx.net/blog/feed/rss/" class="feed" title="feed for all posts on liquidx.net"><img src="http://media.liquidx.net/imgx/feed.gif" class="feed" alt="feed" />RSS Feed for the Blog Entries</a></li>
380
- <li><a href="http://www.liquidx.net/comments/feed/atom/" class="feed" title="feed for all posts on liquidx.net"><img src="http://media.liquidx.net/imgx/feed.gif" class="feed" alt="feed" />Feed for All Comments</a></li>
381
- <li><a href="http://www.liquidx.net/links/feed/atom/" class="feed" title="feed for all bookmarked links"><img src="http://media.liquidx.net/imgx/feed.gif" class="feed" alt="feed" />Feed for Links</a></li>
382
- </ul>
383
- </p>
384
- </div>
385
- <div class="block">
386
- <h3>About this site:</h3>
387
- <p>Content on this site is licensed under <a href="http://creativecommons.org/licenses/by/2.5/">CC By Attribution</a> unless otherwise specified.
388
- Copyright (c) 2002-2006, <a href="http://al.tse.id.au/">Alastair Tse</a>.</p>
389
- <p>For more information, see <a href="http://al.tse.id.au/">al.tse.id.au</a>.</p>
390
- <p><script type="text/javascript" src="http://technorati.com/embed/itwctkzez.js"></script></p>
391
- </div>
392
- <div class="block">
393
- <h3>Is Made Possible By:</h3>
394
- <p>
395
- <dl>
396
- <dt><a href="http://ecto.kung-foo.tv/" class="clean">ecto</a>. </dt>
397
- <dd>Blogging client for Mac</dd>
398
- <dt><a href="http://djangoproject.com/" class="clean">Django</a>. </dt>
399
- <dd>Python Web Framework</dd>
400
- <dt><a href="http://www.lighttpd.net/" class="clean">lighttpd</a>. </dt>
401
- <dd>Really Fast Web Server</dd>
402
- <dt><a href="http://www.saddi.com/software/flup/" class="clean">flup</a>. </dt>
403
- <dd>FastCGI for Python</dd>
404
- </dl>
405
- </p>
406
- </div>
407
- <div class="block">
408
- <h3>Search My Sites:</h3>
409
- <p>
410
- <div style='margin: 10px; text-align: center; width: 160px;'><form action='http://www.rollyo.com/search.html' ><fieldset style='margin: 0; padding: 4px 0 0 0; height: 60px; border: none; background: url(http://rollyo.com/remote/togo-bg4.png) no-repeat top left;'><div style="position: absolute; float:left; z-index:99; width: 46px; height: 50px;"><a href="http://rollyo.com"><img style="border: none;" height="50" width="46" src="http://rollyo.com/remote/x.gif"></a></div> <input type='text' size='30' style='float: left; width: 90px; margin: 2px 0 0 48px; padding: 0; font-size: 12px;' name='q' value='Search...' onclick='this.value="";' /><br /> <select name='sid' style='float: left; width: 78px; height: 15px; margin: 12px 0 0 46px; font-size: 7pt; padding: 0;'><option value='106081' selected='selected'>liquidx</option><option value='web'>Search The Web</option></select><input type='image' src='http://rollyo.com/remote/btn-togo.png' alt='Go' style='margin: 12px 0 0 3px; float: left;' /><input type='hidden' name='togo-v' value='1' /></fieldset></form></div>
411
- </p>
412
- </div>
413
-
414
-
415
- <div class="clear">&nbsp;</div>
416
-
417
- </div>
418
-
419
-
420
-
421
- <script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
422
- <script type="text/javascript">
423
- _uacct = "UA-58117-1";
424
- urchinTracker();
425
- </script>
426
-
427
- </body>
428
- </html>
@@ -1,330 +0,0 @@
1
- {% extends "basex.html" %}
2
- {% load markup %}
3
- {% block pageid %}code{% endblock %}
4
- {% block headers %}
5
- <link href="doc.css" media="screen" rel="stylesheet" type="text/css" />
6
- {% endblock %}
7
- {% block title %}PlotKit.Layout{% endblock %}
8
-
9
- {% block content %}
10
- <div class="page doc api">
11
- {% filter markdown %}
12
- [PlotKit Home](PlotKit.html) | [<<](PlotKit.Base.html) | [>>](PlotKit.Renderer.html)
13
-
14
- PlotKit Layout
15
- ==============
16
-
17
- PlotKit Layout is the core of the plotting engine. It deals exclusively with laying objects out on a virtual canvas that has the dimension of 1.0 x 1.0.
18
-
19
- The layout engine abstracts away all the complex layout problems with plotting charts and presents a list of objects that need to rendered rather than mixing this with the rendering logic.
20
-
21
- PlotKit Layout also is responsible for simple chart state querying so renderers can implement basic event support for objects on the canvas.
22
-
23
- Constructor
24
- ===========
25
-
26
- `new Layout(style, options);`
27
-
28
- Layout takes the following arguments:
29
-
30
- __style__ which can be `bar`, `line` or `pie` which represnts the style of the graph that is desired.
31
-
32
- __options__ is a dictionary/associative array of layout options. Unrecognised keys are ignored. The following options are supported:
33
-
34
- Layout Options
35
- ==============
36
-
37
- Bar and Line Chart layout options
38
- ---------------------------------
39
-
40
- <table cellpadding="0" cellspacing="0">
41
- <thead>
42
- <tr><td>Option name</td><td>Description</td><td>Type</td><td>Default</td></tr>
43
- </thead>
44
- <tbody>
45
- <tr>
46
- <th>barWidthFillFraction</th>
47
- <td>Amount of space the total amount of bars should consume per X value.</td>
48
- <td>Real number</td>
49
- <td>0.75</td>
50
- </tr>
51
- <tr>
52
- <th>barOrientation</th>
53
- <td>Orientation of a bar chart. <b>(PlotKit 0.9+ only)</b></td>
54
- <td>String ("vertical", "horizontal")</td>
55
- <td>vertical</td>
56
- </tr>
57
-
58
- <tr>
59
- <th>xAxis</th>
60
- <td>Minimum and Maximum values on the X axis.</td>
61
- <td>Array of 2 Real numbers. (eg. [0.0, 10.0])</td>
62
- <td>null</td>
63
- </tr>
64
- <tr>
65
- <th>xNumberOfTicks</th>
66
- <td>Used when automatically calculating axis ticks. This denotes the number of ticks there should be in the graph.</td>
67
- <td>integer</td>
68
- <td>10</td>
69
- </tr>
70
- <tr>
71
- <th>xOriginIsZero</th>
72
- <td>Should graph have X axis origin at 0</td>
73
- <td>boolean</td>
74
- <td>true</td>
75
- </tr>
76
- <tr>
77
- <th>xTickPrecision</th>
78
- <td>The number of decimal places we should round to for tick values.</td>
79
- <td>integer</td>
80
- <td>1</td>
81
- </tr>
82
- <tr>
83
- <th>xTicks</th>
84
- <td>X values at which ticks should be drawn. Automatically calculated if not defined using the parameters `xNumberOfTicks` and ``xTickPrecision``.</td>
85
- <td>Array of {label: "somelabel", v:value}.</td>
86
- <td>null</td>
87
- </tr>
88
-
89
- <tr>
90
- <th>yAxis</th>
91
- <td>Minimum and Maximum values on the Y axis.</td>
92
- <td>Array of 2 Real numbers. (eg. [0.0, 10.0])</td>
93
- <td>null</td>
94
- </tr>
95
- <tr>
96
- <th>yNumberOfTicks</th>
97
- <td>Used when automatically calculating axis ticks. This denotes the number of ticks there should be in the graph.</td>
98
- <td>integer</td>
99
- <td>5</td>
100
- </tr>
101
- <tr>
102
- <th>yOriginIsZero</th>
103
- <td>Should graph have Y axis origin at 0</td>
104
- <td>true</td>
105
- </tr>
106
- <tr>
107
- <th>yTickPrecision</th>
108
- <td>The number of decimal places we should round to for tick values.</td>
109
- <td>integer</td>
110
- <td>1</td>
111
- </tr>
112
- <tr>
113
- <th>yTicks</th>
114
- <td>Y values at which ticks should be drawn. Automatically calculated if not defined using the parameters ``yNumberOfTicks`` and ``yTickPrecision``.</td>
115
- <td>Array of {label: "somelabel", v:value}.</td>
116
- <td>null</td>
117
- </tr>
118
- </tbody>
119
- </table>
120
-
121
- Pie Chart Layout Options
122
- ------------------------
123
-
124
- <table>
125
- <thead>
126
- <tr><td>Option name</td><td>Description</td><td>Type</td><td>Default</td></tr>
127
- </thead>
128
- <tbody>
129
- <tr>
130
- <th>pieRadius</th>
131
- <td>Radius of the circle to be drawn.</td>
132
- <td>Real number</td>
133
- <td>0.4</td>
134
- </tr>
135
- </tbody>
136
- </table>
137
-
138
- Layout Properties
139
- =================
140
-
141
- There are some properties you can access, either because you are using a layout inside a renderer or if you would like additional information. Under normal operations, you will not need to, or should modify these parameters.
142
-
143
- <table cellpadding="0" cellspacing="0">
144
- <thead>
145
- <tr><td>Property</td><td>Type</td><td>Description</td></tr>
146
- </thead>
147
- <tbody>
148
- <tr>
149
- <th>style</th>
150
- <td>String</td>
151
- <td>This denotes the type of chart this layout is using. Valid values are ``bar``, ``line`` or ``pie``. Renderers will use this to determine which parameter (``bars``, ``points`` or ``slices``) to access in order to get draw the chart.</td>
152
- </tr>
153
- <tr>
154
- <th>bars</th>
155
- <td>Array of Bar.</td>
156
- <td>This is a list of rectangles with values that the renderer should plot. This will only be valid after ``evaluate()`` has run. The properties of ``bar`` is described here. This is only valid if style is ``bar``. This array is sorted by dataset and then x-values.</td>
157
- </tr>
158
- <tr>
159
- <th>points</th>
160
- <td>Array of Point.</td>
161
- <td>This is a list of points with values that the renderer should plot. This will only be valid after ``evaluate()`` has run. The properties of ``bar`` is described here. This is only valid if style is ``line``. This array is sorted by dataset and then x-values.</td>
162
- </tr>
163
- <tr>
164
- <th>slices</th>
165
- <td>Array of Slice.</td>
166
- <td>This is a list of pie slices with values that the renderer should plot. This will only be valid after ``evaluate()`` has run. The properties of ``bar`` is described here. This is only valid if style is ``pie``.</td>
167
- </tr>
168
- <tr>
169
- <th>xticks</th>
170
- <td>Array of Tick.</td>
171
- <td>For style in ``bar`` or ``line``, these are the ticks on the X axis. A ``tick`` is represented as a two element array with the first element representing the x position of the tick and the second element representing the string value of the label at that position.</td>
172
- </tr>
173
- <tr>
174
- <th>yticks</th>
175
- <td>Array of Tick.</td>
176
- <td>For style in ``bar`` or ``line``, these are the ticks on the Y axis. A ``tick`` is represented as a two element array with the first element representing the y position of the tick and the second element representing the string value of the label at that position.</td>
177
- </tr>
178
- <tr>
179
- <th>datasets</th>
180
- <td>Associative Array of datasets</td>
181
- <td>This should normally only be used to find the number of datasets by performing ``keys(layout.datasets)``. If you are looking at this in a renderer, then the layout engine needs to be extended.</td>
182
- </tr>
183
- </tbody>
184
- </table>
185
-
186
- Layout Types
187
- ============
188
-
189
- Here are the definition of the types that you will encounter if you access the properties of the Layout object, specifically ``bars``, ``points`` and ``slices``. If you are not writing a renderer, you do not need to know this.
190
-
191
- Bar Type
192
- --------
193
-
194
- Represents a bar that the renderer will draw. It contains the following properties.
195
-
196
- <table cellpadding="0" cellspacing="0">
197
- <thead>
198
- <tr><td>Property</td><td>Type</td><td>Description</td></tr>
199
- </thead>
200
- <tbody>
201
- <tr>
202
- <th>x, y</th>
203
- <td>float</td>
204
- <td>top left position of the bar between 0.0 and 1.0.</td>
205
- </tr>
206
- <tr>
207
- <th>w, h</th>
208
- <td>float</td>
209
- <td>width and height of the bar from (``x``, ``y``) between 0.0 and 1.0.</td>
210
- </tr>
211
- <tr>
212
- <th>xval, yval</th>
213
- <td>float</td>
214
- <td>The actual x value and y value this bar represents.</td>
215
- </tr>
216
- <tr>
217
- <th>name</th>
218
- <td>string</td>
219
- <td>Name of the dataset which this bar belongs to.</td>
220
- </tr>
221
- </tbody>
222
- </table>
223
-
224
- Point Type
225
- ----------
226
-
227
- This represents a point on a line chart.
228
-
229
- <table cellpadding="0" cellspacing="0">
230
- <thead>
231
- <tr><td>Property</td><td>Type</td><td>Description</td></tr>
232
- </thead>
233
- <tbody>
234
- <tr>
235
- <th>x, y</th>
236
- <td>float</td>
237
- <td>top left position of the point between 0.0 and 1.0.</td>
238
- </tr>
239
- <tr>
240
- <th>xval, yval</th>
241
- <td>float</td>
242
- <td>The actual x value and y value this bar represents.</td>
243
- </tr>
244
- <tr>
245
- <th>name</th>
246
- <td>string</td>
247
- <td>Name of the dataset which this bar belongs to.</td>
248
- </tr>
249
- </tbody>
250
- </table>
251
-
252
- Slice Type
253
- ----------
254
-
255
- This represents a pie slice in a pie chart.
256
-
257
- <table>
258
- <thead>
259
- <tr><td>Property</td><td>Type</td><td>Description</td></tr>
260
- </thead>
261
- <tbody>
262
- <tr>
263
- <th>fraction</th>
264
- <td>float</td>
265
- <td>The fractional value this slice represents. This number is between 0.0 and 1.0</td>
266
- </tr>
267
- <tr>
268
- <th>xval, yval</th>
269
- <td>float</td>
270
- <td>The x and y values of this slice.</td>
271
- </tr>
272
- <tr>
273
- <th>startAngle</th>
274
- <td>float</td>
275
- <td>This is the angle of the start of the slice, in radians.</td>
276
- </tr>
277
- <tr>
278
- <th>endAngle</th>
279
- <td>float</td>
280
- <td>This is the angle of the end of the slice, in radians.</td>
281
- </tr>
282
- </tbody>
283
- </table>
284
-
285
- Layout Methods
286
- ==============
287
-
288
- * ``addDataset(name, values)``
289
-
290
- Adds a dataset to the layout engine and assigns it with ``name``. ``values`` is an array of ``\[x, y\]`` values.
291
-
292
- * ``removeDataset(name)``
293
-
294
- Removes a dataset from the layout engine. In order for the new data to take effect, you must run ``evaluate()``.
295
-
296
- * ``addDatasetFromTable(name, tableElement, xcol = 0, ycol = 1, labelCol = -1)``
297
-
298
- Handy function to read values off a table. ``name`` is the name to give to the dataset just like in ``addDataset()``, ``tableElement`` is the table which contains the values. Optionally, the user may specify to extract alternative columns using ``xcol`` and ``ycol``.
299
-
300
- **New in 0.9.1:** If ``labelCol`` is specified to a value greater than -1, it will take the contents of that column as the xTick labels.
301
-
302
- * ``evaluate()``
303
-
304
- Performs the evaluation of the layout. It is not done automatically, and you __must__ execute this before passing the layout to a renderer.
305
-
306
- * hitTest(x, y)
307
-
308
- Used by renderers to see if a virtual canvas position corresponds to any data. The return value varies per style. For ``bar`` charts, it will return the Bar type if it is a hit, or null if not. For ``line`` charts, it will return a value if the point is underneath the highest curve, otherwise null __(TODO: expand this or change implementation)__. For ``pie`` charts, it will return the Slice object that is at the point, otherwise null.
309
-
310
- __Note that the specification of this function is subject to change__.
311
-
312
- Layout Notes
313
- ============
314
-
315
- Pie Chart Data and Ticks Restrictions
316
- -------------------------------------
317
-
318
- Note that you can only use one dataset for pie charts. Only the y value of the dataset will be used, but the x value must be unique and set as it will correspond to the xTicks that are given.
319
-
320
- Labels for pie charts will only use xTicks.
321
-
322
- Layout Examples
323
- ===============
324
-
325
- {% endfilter %}
326
- </div>
327
- {% endblock %}
328
-
329
-
330
-