ziya 1.0.0 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (184) hide show
  1. data/Manifest.txt +74 -28
  2. data/README.txt +91 -14
  3. data/Rakefile +1 -1
  4. data/bin/ziyafy +2 -0
  5. data/charts/AC_RunActiveContent.js +292 -0
  6. data/charts/charts.swf +0 -0
  7. data/charts/charts_library/ar3d.swf +0 -0
  8. data/charts/charts_library/arno.swf +0 -0
  9. data/charts/charts_library/ars3.swf +0 -0
  10. data/charts/charts_library/arst.swf +0 -0
  11. data/charts/charts_library/brfl.swf +0 -0
  12. data/charts/charts_library/brno.swf +0 -0
  13. data/charts/charts_library/brst.swf +0 -0
  14. data/charts/charts_library/buno.swf +0 -0
  15. data/charts/charts_library/cl3d.swf +0 -0
  16. data/charts/charts_library/clfl.swf +0 -0
  17. data/charts/charts_library/clno.swf +0 -0
  18. data/charts/charts_library/clp3.swf +0 -0
  19. data/charts/charts_library/cls3.swf +0 -0
  20. data/charts/charts_library/clst.swf +0 -0
  21. data/charts/charts_library/cnno.swf +0 -0
  22. data/charts/charts_library/lnno.swf +0 -0
  23. data/charts/charts_library/mxno.swf +0 -0
  24. data/charts/charts_library/pi3d.swf +0 -0
  25. data/charts/charts_library/pino.swf +0 -0
  26. data/charts/charts_library/pono.swf +0 -0
  27. data/charts/charts_library/scno.swf +0 -0
  28. data/charts/full_screen.swf +0 -0
  29. data/charts/sliders/black.swf +0 -0
  30. data/charts/sliders/preview_handle_1.swf +0 -0
  31. data/charts/sliders/preview_handle_2.swf +0 -0
  32. data/fred.rb +36 -0
  33. data/gauges/designs/circle.yml +18 -0
  34. data/gauges/designs/signal.yml +14 -0
  35. data/gauges/designs/thermo.yml +119 -0
  36. data/gauges/designs/title.yml +11 -0
  37. data/gauges/gauge.swf +0 -0
  38. data/lib/ziya.rb +17 -5
  39. data/lib/ziya/charts/area.rb +6 -1
  40. data/lib/ziya/charts/area_threed.rb +16 -0
  41. data/lib/ziya/charts/bar.rb +8 -3
  42. data/lib/ziya/charts/base.rb +210 -153
  43. data/lib/ziya/charts/bubble.rb +18 -0
  44. data/lib/ziya/charts/candle_stick.rb +6 -1
  45. data/lib/ziya/charts/column.rb +7 -2
  46. data/lib/ziya/charts/column_threed.rb +6 -1
  47. data/lib/ziya/charts/floating_bar.rb +6 -1
  48. data/lib/ziya/charts/floating_column.rb +7 -2
  49. data/lib/ziya/charts/line.rb +7 -2
  50. data/lib/ziya/charts/mixed.rb +5 -0
  51. data/lib/ziya/charts/parallel_threed_column.rb +6 -1
  52. data/lib/ziya/charts/pie.rb +7 -2
  53. data/lib/ziya/charts/pie_threed.rb +7 -2
  54. data/lib/ziya/charts/polar.rb +6 -1
  55. data/lib/ziya/charts/scatter.rb +6 -1
  56. data/lib/ziya/charts/stacked_area.rb +5 -0
  57. data/lib/ziya/charts/stacked_bar.rb +5 -0
  58. data/lib/ziya/charts/stacked_column.rb +7 -2
  59. data/lib/ziya/charts/stacked_threed_area.rb +16 -0
  60. data/lib/ziya/charts/stacked_threed_column.rb +6 -1
  61. data/lib/ziya/components/area.rb +5 -2
  62. data/lib/ziya/components/axis_category.rb +8 -60
  63. data/lib/ziya/components/axis_ticks.rb +25 -27
  64. data/lib/ziya/components/axis_value.rb +5 -48
  65. data/lib/ziya/components/base.rb +59 -17
  66. data/lib/ziya/components/bevel.rb +15 -0
  67. data/lib/ziya/components/blur.rb +13 -0
  68. data/lib/ziya/components/chart_border.rb +4 -23
  69. data/lib/ziya/components/chart_grid_h.rb +17 -19
  70. data/lib/ziya/components/chart_grid_v.rb +18 -19
  71. data/lib/ziya/components/chart_guide.rb +16 -0
  72. data/lib/ziya/components/chart_label.rb +16 -0
  73. data/lib/ziya/components/chart_pref.rb +12 -12
  74. data/lib/ziya/components/chart_rect.rb +27 -26
  75. data/lib/ziya/components/chart_transition.rb +15 -16
  76. data/lib/ziya/components/circle.rb +5 -2
  77. data/lib/ziya/components/draw.rb +12 -11
  78. data/lib/ziya/components/draw_base.rb +10 -0
  79. data/lib/ziya/components/filter.rb +26 -0
  80. data/lib/ziya/components/glow.rb +14 -0
  81. data/lib/ziya/components/image.rb +5 -1
  82. data/lib/ziya/components/legend.rb +18 -0
  83. data/lib/ziya/components/line.rb +6 -2
  84. data/lib/ziya/components/link.rb +9 -9
  85. data/lib/ziya/components/link_data.rb +9 -10
  86. data/lib/ziya/components/rect.rb +7 -2
  87. data/lib/ziya/components/scroll.rb +26 -0
  88. data/lib/ziya/components/shadow.rb +14 -0
  89. data/lib/ziya/components/text.rb +5 -1
  90. data/lib/ziya/components/update.rb +19 -0
  91. data/lib/ziya/gauges/base.rb +172 -0
  92. data/lib/ziya/gauges/radial.rb +18 -0
  93. data/lib/ziya/gauges/signal.rb +138 -0
  94. data/lib/ziya/gauges/support/area.rb +13 -0
  95. data/lib/ziya/gauges/support/base.rb +33 -0
  96. data/lib/ziya/gauges/support/circle.rb +14 -0
  97. data/lib/ziya/gauges/support/design.rb +5 -0
  98. data/lib/ziya/gauges/support/image.rb +12 -0
  99. data/lib/ziya/gauges/support/line.rb +12 -0
  100. data/lib/ziya/gauges/support/link.rb +24 -0
  101. data/lib/ziya/gauges/support/move.rb +15 -0
  102. data/lib/ziya/gauges/support/point.rb +12 -0
  103. data/lib/ziya/gauges/support/polygon.rb +13 -0
  104. data/lib/ziya/gauges/support/radial_base.rb +21 -0
  105. data/lib/ziya/gauges/support/radial_numbers.rb +41 -0
  106. data/lib/ziya/gauges/support/radial_ticks.rb +29 -0
  107. data/lib/ziya/gauges/support/rect.rb +14 -0
  108. data/lib/ziya/gauges/support/rotate.rb +15 -0
  109. data/lib/ziya/gauges/support/scale.rb +15 -0
  110. data/lib/ziya/gauges/support/text.rb +21 -0
  111. data/lib/ziya/gauges/support/update.rb +12 -0
  112. data/lib/ziya/gauges/thermo.rb +121 -0
  113. data/lib/ziya/helpers/base_helper.rb +39 -6
  114. data/lib/ziya/utils/text.rb +6 -0
  115. data/lib/ziya/version.rb +1 -1
  116. data/lib/ziya/ziya_helper.rb +289 -62
  117. data/spec/charts/base_spec.rb +35 -21
  118. data/spec/charts/chart_type_spec.rb +24 -3
  119. data/spec/components/area_spec.rb +9 -2
  120. data/spec/components/draw_spec.rb +1 -2
  121. data/spec/components/filter_spec.rb +27 -0
  122. data/spec/components/link_spec.rb +1 -2
  123. data/spec/components/series_color_spec.rb +1 -2
  124. data/spec/components/series_explode_spec.rb +1 -2
  125. data/spec/components/series_switch_spec.rb +1 -2
  126. data/spec/designs/circle.yml +7 -0
  127. data/spec/designs/crapping_out.yml +8 -0
  128. data/spec/designs/gauge_1.yml +43 -0
  129. data/spec/designs/gauge_2.yml +11 -0
  130. data/spec/designs/gauge_no_name.yml +43 -0
  131. data/spec/designs/gauge_raw.yml +5 -0
  132. data/spec/designs/thermo.yml +13 -0
  133. data/spec/gauges/base_spec.rb +90 -0
  134. data/spec/gauges/signal_spec.rb +36 -0
  135. data/spec/gauges/support/area_spec.rb +40 -0
  136. data/spec/gauges/support/circle_spec.rb +78 -0
  137. data/spec/gauges/support/image_spec.rb +35 -0
  138. data/spec/gauges/support/line_spec.rb +34 -0
  139. data/spec/gauges/support/link_spec.rb +35 -0
  140. data/spec/gauges/support/move_spec.rb +45 -0
  141. data/spec/gauges/support/polygon_spec.rb +36 -0
  142. data/spec/gauges/support/radial_numbers_spec.rb +35 -0
  143. data/spec/gauges/support/radial_ticks_spec.rb +30 -0
  144. data/spec/gauges/support/rotate_spec.rb +45 -0
  145. data/spec/gauges/support/scale_spec.rb +46 -0
  146. data/spec/gauges/support/text_spec.rb +40 -0
  147. data/spec/gauges/thermo_spec.rb +49 -0
  148. data/spec/helpers/base_helper_spec.rb +20 -6
  149. data/spec/spec_helper.rb +4 -1
  150. data/spec/test_helpers/gauge_2_helper.rb +17 -0
  151. data/spec/utils/logger_spec.rb +1 -3
  152. data/spec/utils/text_spec.rb +1 -2
  153. data/spec/ziya_helper_spec.rb +88 -11
  154. data/spec/ziya_spec.rb +1 -1
  155. data/tasks/gem.rake +1 -1
  156. metadata +79 -32
  157. data/charts/themes/commando/bar_chart.yml +0 -9
  158. data/charts/themes/commando/base_chart.yml +0 -65
  159. data/charts/themes/commando/column_chart.yml +0 -13
  160. data/charts/themes/commando/column_threed_chart.yml +0 -25
  161. data/charts/themes/commando/parallel_threed_column_chart.yml +0 -17
  162. data/charts/themes/commando/pie_chart.yml +0 -22
  163. data/charts/themes/commando/pie_threed_chart.yml +0 -28
  164. data/charts/themes/commando/polar_chart.yml +0 -11
  165. data/charts/themes/commando/stacked_bar_chart.yml +0 -9
  166. data/charts/themes/commando/stacked_column_chart.yml +0 -14
  167. data/charts/themes/commando/stacked_threed_column_chart.yml +0 -17
  168. data/charts/themes/default/bar_chart.yml +0 -3
  169. data/charts/themes/default/base_chart.yml +0 -67
  170. data/charts/themes/default/column_chart.yml +0 -13
  171. data/charts/themes/default/column_threed_chart.yml +0 -25
  172. data/charts/themes/default/parallel_threed_column_chart.yml +0 -17
  173. data/charts/themes/default/pie_chart.yml +0 -29
  174. data/charts/themes/default/pie_threed_chart.yml +0 -28
  175. data/charts/themes/default/polar_chart.yml +0 -12
  176. data/charts/themes/default/stacked_bar_chart.yml +0 -3
  177. data/charts/themes/default/stacked_column_chart.yml +0 -14
  178. data/charts/themes/default/stacked_threed_column_chart.yml +0 -17
  179. data/charts/themes/default/test.yml +0 -4
  180. data/lib/ziya/components/chart_value.rb +0 -71
  181. data/lib/ziya/components/legend_label.rb +0 -18
  182. data/lib/ziya/components/legend_rect.rb +0 -19
  183. data/lib/ziya/components/legend_transition.rb +0 -18
  184. data/lib/ziya/components/live_update.rb +0 -21
@@ -0,0 +1,18 @@
1
+ # -----------------------------------------------------------------------------
2
+ # Generates necessary xml for bubble chart
3
+ #
4
+ # Author: Fernand
5
+ # -----------------------------------------------------------------------------
6
+ require 'ziya/charts/base'
7
+
8
+ module Ziya::Charts
9
+ class Bubble < Base
10
+ # Creates a bubble chart
11
+ # <tt>:license</tt>:: the XML/SWF charts license
12
+ # <tt>:chart_id</tt>:: the name of the chart style sheet.
13
+ def initialize( license=nil, chart_id=nil )
14
+ super( license, chart_id )
15
+ @type = "bubble"
16
+ end
17
+ end
18
+ end
@@ -1,9 +1,14 @@
1
1
  # -----------------------------------------------------------------------------
2
2
  # Generates necessary xml for candlestick chart
3
+ #
4
+ # Author: Fernand
3
5
  # -----------------------------------------------------------------------------
4
6
  module Ziya::Charts
5
7
  class CandleStick < Base
6
- def initialize( license=nil, chart_id=nil)
8
+ # Creates a candlestick chart
9
+ # <tt>:license</tt>:: the XML/SWF charts license
10
+ # <tt>:chart_id</tt>:: the name of the chart style sheet.
11
+ def initialize( license=nil, chart_id=nil )
7
12
  super( license, chart_id )
8
13
  @type = "candlestick"
9
14
  end
@@ -1,9 +1,14 @@
1
1
  # -----------------------------------------------------------------------------
2
- # Generates necessary xml for a StackColumn chart
2
+ # Generates necessary xml for a Column chart
3
+ #
4
+ # Author: Fernand
3
5
  # -----------------------------------------------------------------------------
4
6
  module Ziya::Charts
5
7
  class Column < Base
6
- def initialize( license=nil, chart_id=nil)
8
+ # Creates a column chart
9
+ # <tt>:license</tt>:: the XML/SWF charts license
10
+ # <tt>:chart_id</tt>:: the name of the chart style sheet.
11
+ def initialize( license=nil, chart_id=nil )
7
12
  super( license, chart_id )
8
13
  @type = "column"
9
14
  end
@@ -1,9 +1,14 @@
1
1
  # -----------------------------------------------------------------------------
2
2
  # Generates necessary xml for 3D column chart
3
+ #
4
+ # Author: Fernand
3
5
  # -----------------------------------------------------------------------------
4
6
  module Ziya::Charts
5
7
  class ColumnThreed < Base
6
- def initialize( license=nil, chart_id=nil)
8
+ # Creates a 3D Column chart
9
+ # <tt>:license</tt>:: the XML/SWF charts license
10
+ # <tt>:chart_id</tt>:: the name of the chart style sheet.
11
+ def initialize( license=nil, chart_id=nil )
7
12
  super( license, chart_id )
8
13
  @type = "3d column"
9
14
  end
@@ -1,9 +1,14 @@
1
1
  # -----------------------------------------------------------------------------
2
2
  # Generates necessary xml for floating bar chart
3
+ #
4
+ # Author: Fernand
3
5
  # -----------------------------------------------------------------------------
4
6
  module Ziya::Charts
5
7
  class FloatingBar < Base
6
- def initialize( license=nil, chart_id=nil)
8
+ # Creates a floating bar chart
9
+ # <tt>:license</tt>:: the XML/SWF charts license
10
+ # <tt>:chart_id</tt>:: the name of the chart style sheet.
11
+ def initialize( license=nil, chart_id=nil )
7
12
  super( license, chart_id )
8
13
  @type = "floating bar"
9
14
  end
@@ -1,11 +1,16 @@
1
1
  # -----------------------------------------------------------------------------
2
2
  # Generates necessary xml for a floating column chart
3
+ #
4
+ # Author: Fernand
3
5
  # -----------------------------------------------------------------------------
4
6
  module Ziya::Charts
5
7
  class FloatingColumn < Base
6
- def initialize( license=nil, chart_id=nil)
8
+ # Creates a floating column chart
9
+ # <tt>:license</tt>:: the XML/SWF charts license
10
+ # <tt>:chart_id</tt>:: the name of the chart style sheet.
11
+ def initialize( license=nil, chart_id=nil )
7
12
  super( license, chart_id )
8
- @type = "floating column"
13
+ @type = "floating column"
9
14
  end
10
15
  end
11
16
  end
@@ -1,9 +1,14 @@
1
1
  # -----------------------------------------------------------------------------
2
- # Generates necessary xml for a StackColumn chart
2
+ # Generates necessary xml for a line chart
3
+ #
4
+ # Author: Fernand
3
5
  # -----------------------------------------------------------------------------
4
6
  module Ziya::Charts
5
7
  class Line < Base
6
- def initialize( license=nil, chart_id=nil)
8
+ # Creates a line chart
9
+ # <tt>:license</tt>:: the XML/SWF charts license
10
+ # <tt>:chart_id</tt>:: the name of the chart style sheet.
11
+ def initialize( license=nil, chart_id=nil )
7
12
  super( license, chart_id )
8
13
  @type = "line"
9
14
  end
@@ -1,8 +1,13 @@
1
1
  # -----------------------------------------------------------------------------
2
2
  # Generates necessary xml for mixed chart
3
+ #
4
+ # Author: Fernand
3
5
  # -----------------------------------------------------------------------------
4
6
  module Ziya::Charts
5
7
  class Mixed < Base
8
+ # Creates a mixed chart ie comosed of different chart types ie line + column
9
+ # <tt>:license</tt>:: the XML/SWF charts license
10
+ # <tt>:chart_id</tt>:: the name of the chart style sheet.
6
11
  def initialize( license=nil, chart_id=nil )
7
12
  super( license, chart_id )
8
13
  @type = nil
@@ -1,9 +1,14 @@
1
1
  # -----------------------------------------------------------------------------
2
2
  # Generates necessary xml for parallel 3D column chart
3
+ #
4
+ # Author: Fernand
3
5
  # -----------------------------------------------------------------------------
4
6
  module Ziya::Charts
5
7
  class ParallelThreedColumn < Base
6
- def initialize( license=nil, chart_id=nil)
8
+ # Creates a parallel column 3D chart
9
+ # <tt>:license</tt>:: the XML/SWF charts license
10
+ # <tt>:chart_id</tt>:: the name of the chart style sheet.
11
+ def initialize( license=nil, chart_id=nil )
7
12
  super( license, chart_id )
8
13
  @type = "parallel 3d column"
9
14
  end
@@ -1,9 +1,14 @@
1
1
  # -----------------------------------------------------------------------------
2
- #
2
+ # Generates necessary xml for pie chart
3
+ #
4
+ # Author: Fernand
3
5
  # -----------------------------------------------------------------------------
4
6
  module Ziya::Charts
5
7
  class Pie < Base
6
- def initialize( license=nil, chart_id=nil)
8
+ # Creates a pie chart
9
+ # <tt>:license</tt>:: the XML/SWF charts license
10
+ # <tt>:chart_id</tt>:: the name of the chart style sheet.
11
+ def initialize( license=nil, chart_id=nil )
7
12
  super( license, chart_id )
8
13
  @type = "pie"
9
14
  end
@@ -1,9 +1,14 @@
1
1
  # -----------------------------------------------------------------------------
2
2
  # Generates necessary xml for 3D pie chart
3
+ #
4
+ # Author: Fernand
3
5
  # -----------------------------------------------------------------------------
4
- module Ziya::Charts
6
+ module Ziya::Charts
5
7
  class PieThreed < Base
6
- def initialize( license=nil, chart_id=nil)
8
+ # Creates a 3D pie chart
9
+ # <tt>:license</tt>:: the XML/SWF charts license
10
+ # <tt>:chart_id</tt>:: the name of the chart style sheet.
11
+ def initialize( license=nil, chart_id=nil )
7
12
  super( license, chart_id )
8
13
  @type = "3d pie"
9
14
  end
@@ -1,8 +1,13 @@
1
1
  # -----------------------------------------------------------------------------
2
- #
2
+ # Generates necessary xml for polar chart
3
+ #
4
+ # Author: Fernand
3
5
  # -----------------------------------------------------------------------------
4
6
  module Ziya::Charts
5
7
  class Polar < Base
8
+ # Creates a polar chart
9
+ # <tt>:license</tt>:: the XML/SWF charts license
10
+ # <tt>:chart_id</tt>:: the name of the chart style sheet.
6
11
  def initialize( license=nil, chart_id=nil)
7
12
  super( license, chart_id )
8
13
  @type = "polar"
@@ -1,9 +1,14 @@
1
1
  # -----------------------------------------------------------------------------
2
2
  # Generates necessary xml for scatter chart
3
+ #
4
+ # Author: Fernand
3
5
  # -----------------------------------------------------------------------------
4
6
  module Ziya::Charts
5
7
  class Scatter < Base
6
- def initialize( license=nil, chart_id=nil)
8
+ # Creates a scatter chart
9
+ # <tt>:license</tt>:: the XML/SWF charts license
10
+ # <tt>:chart_id</tt>:: the name of the chart style sheet.
11
+ def initialize( license=nil, chart_id=nil )
7
12
  super( license, chart_id )
8
13
  @type = "scatter"
9
14
  end
@@ -1,8 +1,13 @@
1
1
  # -----------------------------------------------------------------------------
2
2
  # Generates necessary xml for stacked area chart
3
+ #
4
+ # Author: Fernand
3
5
  # -----------------------------------------------------------------------------
4
6
  module Ziya::Charts
5
7
  class StackedArea < Base
8
+ # Creates a stacked area chart
9
+ # <tt>:license</tt>:: the XML/SWF charts license
10
+ # <tt>:chart_id</tt>:: the name of the chart style sheet.
6
11
  def initialize( license=nil, chart_id=nil)
7
12
  super( license, chart_id )
8
13
  @type = "stacked area"
@@ -1,8 +1,13 @@
1
1
  # -----------------------------------------------------------------------------
2
2
  # Generates necessary xml for a stacked bar chart
3
+ #
4
+ # Author: Fernand
3
5
  # -----------------------------------------------------------------------------
4
6
  module Ziya::Charts
5
7
  class StackedBar < Base
8
+ # Creates a stacked bar chart
9
+ # <tt>:license</tt>:: the XML/SWF charts license
10
+ # <tt>:chart_id</tt>:: the name of the chart style sheet.
6
11
  def initialize( license=nil, chart_id=nil)
7
12
  super( license, chart_id )
8
13
  @type = "stacked bar"
@@ -1,9 +1,14 @@
1
1
  # -----------------------------------------------------------------------------
2
- # Generates necessary xml for a stack column chart
2
+ # Generates necessary xml for a stacked column chart
3
+ #
4
+ # Author: Fernand
3
5
  # -----------------------------------------------------------------------------
4
6
  module Ziya::Charts
5
7
  class StackedColumn < Base
6
- def initialize( license=nil, chart_id=nil)
8
+ # Creates a stacked column chart
9
+ # <tt>:license</tt>:: the XML/SWF charts license
10
+ # <tt>:chart_id</tt>:: the name of the chart style sheet.
11
+ def initialize( license=nil, chart_id=nil )
7
12
  super( license, chart_id )
8
13
  @type = "stacked column"
9
14
  end
@@ -0,0 +1,16 @@
1
+ # -----------------------------------------------------------------------------
2
+ # Generates necessary xml for a stacked 3d area chart
3
+ #
4
+ # Author: Fernand
5
+ # -----------------------------------------------------------------------------
6
+ module Ziya::Charts
7
+ class StackedThreedArea < Base
8
+ # Creates a stacked 3d area chart
9
+ # <tt>:license</tt>:: the XML/SWF charts license
10
+ # <tt>:chart_id</tt>:: the name of the chart style sheet.
11
+ def initialize( license=nil, chart_id=nil )
12
+ super( license, chart_id )
13
+ @type = "3d area"
14
+ end
15
+ end
16
+ end
@@ -1,9 +1,14 @@
1
1
  # -----------------------------------------------------------------------------
2
2
  # Generates necessary xml for a stacked 3d column chart
3
+ #
4
+ # Author: Fernand
3
5
  # -----------------------------------------------------------------------------
4
6
  module Ziya::Charts
5
7
  class StackedThreedColumn < Base
6
- def initialize( license=nil, chart_id=nil)
8
+ # Creates a stacked 3d column chart
9
+ # <tt>:license</tt>:: the XML/SWF charts license
10
+ # <tt>:chart_id</tt>:: the name of the chart style sheet.
11
+ def initialize( license=nil, chart_id=nil )
7
12
  super( license, chart_id )
8
13
  @type = "stacked 3d column"
9
14
  end
@@ -2,13 +2,16 @@
2
2
  # Defines an area on a chart. Typically used to embed links and buttons
3
3
  #
4
4
  # Author:: Fernand Galiana
5
- # Date:: Dec 15th, 2006
6
5
  # -----------------------------------------------------------------------------
7
6
  require 'ziya/components/base'
8
7
 
9
8
  module Ziya::Components
9
+ # Creates a linkable area on the chart to use with the link component.
10
+ # See http://www.maani.us/xml_charts/index.php?menu=Reference&submenu=link
11
+ # for additional documentation, examples and futher detail.
10
12
  class Area < Base
11
13
  has_attribute :x, :y, :width, :height, :url, :priority, :target, :text,
12
- :font, :bold, :size, :color, :background_color, :alpha
14
+ :font, :bold, :size, :color, :background_color, :alpha,
15
+ :timeout, :retry, :spinning_wheel
13
16
  end
14
17
  end
@@ -1,69 +1,17 @@
1
1
  # -----------------------------------------------------------------------------
2
2
  # Sets the label attributes for the category-axis.
3
3
  #
4
- # <tt>skip</tt>: If this axis holds too many labels, the skip key allows skipping (hiding) some labels.
5
- # A zero value doesn't hide any labels. If the skip value is 1, then the first label is
6
- # displayed, the following label is skipped, and so on. If the skip value is 2, then the
7
- # first label is displayed, the following 2 are skipped, and so on. Another way to hide
8
- # labels is by passing empty strings to chart_data in place of category labels.
9
- # The default is zero.
10
- # <tt>font</tt>: The font used in the category-axis. See the Fonts section below.
11
- # The default is Arial.
12
- # <tt>bold</tt>: A boolean value that indicates whether the font is bold or not.
13
- # The default is true.
14
- # <tt>size</tt>: The font's size.
15
- # The default font size is calculated based on the chart size.
16
- # <tt>color</tt>: The font's color. This must be a string holding triple hexadecimal values representing
17
- # the red, green, and blue components for a color.
18
- # The default is "000000" (black).
19
- # <tt>alpha</tt>: This affects the labels' transparency, only when the embedded font is used (see the Fonts
20
- # section below.) Valid values are 0 (fully transparent) to 100 (fully opaque).
21
- # The default is 90. To hide all labels in this axis, set the alpha to 0
22
- # <tt>orientation</tt>: This affects the labels' orientation, only when the embedded font is used (see the Fonts
23
- # section below.) Valid values are horizontal, diagonal_up, diagonal_down, vertical_up, and
24
- # vertical_down. Polar charts also accept the value circular.
25
- # The default value is horizontal.
26
- # <tt>margin</tt>: This applies to area, stacked area, and line charts only. It's a boolean value that
27
- # indicates whether to leave a margin on the left and right of the graph, or bump it against
28
- # the left and right chart borders.
29
- # The default is false (no margin.) In mixed charts, there's always a margin to algin area
30
- # and line charts with column charts.
31
- # <tt>min</tt>: This applies to scatter charts only, when the category-axis is calculated like the value-axis.
32
- # This determines the minimum value to start this axis with.
33
- # The default is calculated from the chart's data.
34
- # <tt>max</tt>: This applies to scatter charts only, when the category-axis is calculated like the value-axis.
35
- # This determines the maximum value to end this axis with.
36
- # The default is calculated from the chart's data.
37
- # <tt>steps</tt>: This applies to scatter charts only, when the category-axis is calculated like the value-axis.
38
- # This determines the number of steps between the minimum and maximum values. If the minimum value
39
- # is negative, and the maximum value is positive, then 'steps' is the number of steps between zero
40
- # and the larger of max and absolute min.
41
- # The default is 4.
42
- # <tt>prefix</tt>: This applies to scatter charts only, when the category-axis is calculated like the value-axis.
43
- # This determines the characters to add before the value numbers (example: $10).
44
- # The default is nothing.
45
- # <tt>suffix</tt>: This applies to scatter charts only, when the category-axis is calculated like the value-axis.
46
- # This determines the characters to add after the value numbers (example: 10%).
47
- # The default is nothing.
48
- # <tt>decimals</tt>: This applies to scatter charts only, when the category-axis is calculated like the value-axis.
49
- # This determines the number of decimal places to the right of the decimal point (example: 10.45).
50
- # The default is zero (no decimals).
51
- # <tt>decimal_char</tt>: This applies to scatter charts only, when the category-axis is calculated like the value-axis.
52
- # This determines the character to use at the left of a decimal fraction (example: 1.5).
53
- # The default is '.' (dot or full stop).
54
- # <tt>separator</tt>: This applies to scatter charts only, when the category-axis is calculated like the value-axis.
55
- # This determines the character to place between every group of thousands (example: 1,00,000).
56
- # The default is nothing.
57
- #
58
- # See http://www.maani.us/xml_charts/index.php?menu=Reference&submenu=axis_category
59
- # for additional documentation, examples and futher detail.
60
- # Author:: Fernand Galiana
61
- # Date:: Dec 15th, 2006
4
+ # Author:: Fernand
62
5
  # -----------------------------------------------------------------------------
63
6
  module Ziya::Components
7
+ # Specifies the label attributes on the x or y axis depending on the chart type.
8
+ # See http://www.maani.us/xml_charts/index.php?menu=Reference&submenu=axis_category
9
+ # for additional documentation, examples and futher detail.
64
10
  class AxisCategory < Base
65
11
  has_attribute :skip, :font, :bold, :size, :color, :alpha, :orientation,
66
- :margin, :min, :max, :steps, :prefix, :suffix, :decimals,
67
- :decimal_char, :separator
12
+ :margin,
13
+ :min, :max, :steps, :mode, :prefix, :suffix, :decimals,
14
+ :decimal_char, :separator,
15
+ :bevel, :glow, :shadow, :blur
68
16
  end
69
17
  end
@@ -1,35 +1,33 @@
1
1
  # ------------------------------------------------------------------------------
2
2
  # Describe the ticks configuration of the chart axis
3
3
  #
4
- # Sets the tick marks on the chart axes.
5
- #
6
- # <tt>value_ticks</tt>: A boolean value that indicates whether the ticks on the value axis are visible or not.
7
- # The default is false.
8
- # <tt>category_ticks</tt>: A boolean value that indicates whether the ticks on the category axis are visible or not.
9
- # The default is true.
10
- # <tt>position</tt>: A string that determines where on the axis to display the ticks. Valid values are "outside",
11
- # "inside", and "centered".
12
- # The default is "outside".
13
- # <tt>major_thickness</tt>: The thickness of major ticks. Major ticks are those appearing with the axis labels.
14
- # The default is 2 pixels.
15
- # <tt>major_color</tt>: The color of major ticks. This must be a string holding triple hexadecimal values representing
16
- # the red, green, and blue components for a color.
17
- # The default is "000000" (black).
18
- # <tt>minor_thickness</tt>: The thickness of minor ticks. Minor ticks are those appearing between major ticks.
19
- # The default is 1 pixel.
20
- # <tt>minor_color</tt>: The color of minor ticks. This must be a string holding triple hexadecimal values representing
21
- # the red, green, and blue components for a color.
22
- # The default is "000000" (black).
23
- # <tt>minor_count</tt>: This applies to the value axis only. It sets the number of minor ticks between every 2 major ticks.
24
- # The default is 4. The category axis displays minor ticks only where its labels get skipped.
25
- #
26
- # See http://www.maani.us/xml_charts/index.php?menu=Reference&submenu=axis_ticks
27
- # for additional documentation, examples and futher detail.
28
- #
29
- # Author:: Fernand Galiana
30
- # Date:: Dec 15th, 2006
4
+ # Author:: Fernand
31
5
  # ------------------------------------------------------------------------------
32
6
  module Ziya::Components
7
+ # Sets the tick marks on the chart axes.
8
+ #
9
+ # <tt>value_ticks</tt>: A boolean value that indicates whether the ticks on the value axis are visible or not.
10
+ # The default is false.
11
+ # <tt>category_ticks</tt>: A boolean value that indicates whether the ticks on the category axis are visible or not.
12
+ # The default is true.
13
+ # <tt>position</tt>: A string that determines where on the axis to display the ticks. Valid values are "outside",
14
+ # "inside", and "centered".
15
+ # The default is "outside".
16
+ # <tt>major_thickness</tt>: The thickness of major ticks. Major ticks are those appearing with the axis labels.
17
+ # The default is 2 pixels.
18
+ # <tt>major_color</tt>: The color of major ticks. This must be a string holding triple hexadecimal values representing
19
+ # the red, green, and blue components for a color.
20
+ # The default is "000000" (black).
21
+ # <tt>minor_thickness</tt>: The thickness of minor ticks. Minor ticks are those appearing between major ticks.
22
+ # The default is 1 pixel.
23
+ # <tt>minor_color</tt>: The color of minor ticks. This must be a string holding triple hexadecimal values representing
24
+ # the red, green, and blue components for a color.
25
+ # The default is "000000" (black).
26
+ # <tt>minor_count</tt>: This applies to the value axis only. It sets the number of minor ticks between every 2 major ticks.
27
+ # The default is 4. The category axis displays minor ticks only where its labels get skipped.
28
+ #
29
+ # See http://www.maani.us/xml_charts/index.php?menu=Reference&submenu=axis_ticks
30
+ # for additional documentation, examples and futher detail.
33
31
  class AxisTicks < Base
34
32
  has_attribute :value_ticks, :category_ticks, :position, :major_thickness,
35
33
  :major_color, :minor_thickness, :minor_color, :minor_count