Sha256: 6897751e2972de04125246385dbb0d16a1dafb4f06ca5665a693e77e3601d042
Contents?: true
Size: 988 Bytes
Versions: 5
Compression:
Stored size: 988 Bytes
Contents
# ----------------------------------------------------------------------------- # Sets up clickable areas on the chart. # # Author:: Fernand Galiana # ----------------------------------------------------------------------------- module Ziya::Charts::Support # 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. # # <tt></tt>: # # See http://www.maani.us/xml_charts/index.php?menu=Reference&submenu=link # for additional documentation, examples and futher detail. class Link < Base has_attribute :areas # ------------------------------------------------------------------------- # Dump has_attribute into xml element def flatten( xml ) if areas xml.link do areas.each { |area| area.flatten( xml ) } end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems