Ziya::Charts::Support::Base
Text component to draw text on the chart. Must be set up within the draw component. See www.maani.us/xml_charts/index.php?menu=Reference&submenu=draw for additional documentation, examples and futher detail.
--- SEC00134
--- ""
---
- methods:
- visibility: public
aref: M000083
name: flatten
sourcecode: " <span class=\"ruby-comment cmt\"># File lib/ziya/charts/support/text.rb, line 19</span>\n\
19: <span class=\"ruby-keyword kw\">def</span> <span class=\"ruby-identifier\">flatten</span>( <span class=\"ruby-identifier\">xml</span> )\n\
20: <span class=\"ruby-identifier\">opts</span> = <span class=\"ruby-identifier\">options</span>.<span class=\"ruby-identifier\">clone</span>\n\
21: <span class=\"ruby-identifier\">text</span> = <span class=\"ruby-identifier\">opts</span>.<span class=\"ruby-identifier\">delete</span>( <span class=\"ruby-identifier\">:text</span> )\n\
22: <span class=\"ruby-identifier\">xml</span>.<span class=\"ruby-identifier\">text</span>( <span class=\"ruby-identifier\">opts</span> ) { <span class=\"ruby-operator\">|</span><span class=\"ruby-identifier\">x</span><span class=\"ruby-operator\">|</span> <span class=\"ruby-identifier\">x</span>.<span class=\"ruby-identifier\">text!</span>( <span class=\"ruby-identifier\">text</span>.<span class=\"ruby-identifier\">to_s</span> ) }\n\
23: <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.