Ziya::Charts::Support::Base
Sets up clickable areas on the chart.
Holds any number of areas, each defining a rectangle and a URL to go to when the user clicks inside the rectangle. This can also be used to make refresh or print buttons.
:
See www.maani.us/xml_charts/index.php?menu=Reference&submenu=link for additional documentation, examples and futher detail.
--- SEC00118
--- ""
---
- methods:
- visibility: public
aref: M000084
name: flatten
sourcecode: " <span class=\"ruby-comment cmt\"># File lib/ziya/charts/support/link.rb, line 21</span>\n\
21: <span class=\"ruby-keyword kw\">def</span> <span class=\"ruby-identifier\">flatten</span>( <span class=\"ruby-identifier\">xml</span> )\n\
22: <span class=\"ruby-keyword kw\">if</span> <span class=\"ruby-identifier\">areas</span>\n\
23: <span class=\"ruby-identifier\">xml</span>.<span class=\"ruby-identifier\">link</span> <span class=\"ruby-keyword kw\">do</span>\n\
24: <span class=\"ruby-identifier\">areas</span>.<span class=\"ruby-identifier\">each</span> { <span class=\"ruby-operator\">|</span><span class=\"ruby-identifier\">area</span><span class=\"ruby-operator\">|</span> <span class=\"ruby-identifier\">area</span>.<span class=\"ruby-identifier\">flatten</span>( <span class=\"ruby-identifier\">xml</span> ) }\n\
25: <span class=\"ruby-keyword kw\">end</span>\n\
26: <span class=\"ruby-keyword kw\">end</span>\n\
27: <span class=\"ruby-keyword kw\">end</span>"
m_desc: |-
<hr size="10"></hr><p>
Dump has_attribute into xml element
</p>
params: ( xml )
category: Instance
type: Public
---
Generated with the Darkfish Rdoc Generator.