Forum: Ruby on Rails [ANN] Ziya plugin - Charting the rails...

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
83ed21e86ee86270ad79111048ea819c?d=identicon&s=25 De Railed (derailed)
on 2006-12-30 01:15

  We've just got down with the first implementation of
  ZiYa. This rails plugin allows you to display elegant
  charts on your webapps, the easy way...

  Check out at the details at

  Best wishes to all for the new year !!
Efe398b3b5436b0a8d4430090e8f86ea?d=identicon&s=25 seth b. (subimage)
on 2006-12-30 02:08
(Received via mailing list)
Nice plugin, drop dead ugly logo for your site :)

On 12/29/06, De Railed <> wrote:
>   Best wishes to all for the new year !!
> --
> Posted via
> >

seth at subimage interactive
9aaf1f1002d08f736096ec9527bb8f12?d=identicon&s=25 (Guest)
on 2006-12-30 02:22
(Received via mailing list)
Ha !! Thanks. If you would like to contribute a nice logo we'll be
happy to oblige...
0f23274e975611727e4ad46d745d298e?d=identicon&s=25 devaulw (Guest)
on 2006-12-30 14:38
Make sure this gets listed on the plugins site.  If I understand
correctly, this plugin sends down some XML data to the client that gets
rendered in a SWF client.  Is that right?
31254903db793bf6f84bbd607fe092fd?d=identicon&s=25 Anthony Eden (Guest)
on 2006-12-30 15:03
(Received via mailing list)
Take a look at SWF/XML Charts ( ) to
get more info on how the charts are constructed.  The answer is "sort
of": the Flash chart component reads the XML data when it is rendered
on the screen (the URL to the XML appears in the HTML which embeds the
Flash object).

I am glad to see this plugin released as it means there is one less
thing I have to maintain in my code base. :-)


On 12/30/06, devaulw <> wrote:
> Make sure this gets listed on the plugins site.  If I understand
> correctly, this plugin sends down some XML data to the client that gets
> rendered in a SWF client.  Is that right?
> --
> Posted via
> >

Cell: 808 782-5046
Current Location: Melbourne, FL
9aaf1f1002d08f736096ec9527bb8f12?d=identicon&s=25 (Guest)
on 2006-12-30 19:08
(Received via mailing list)
Thanks !!

We have tried to list the ZiYa plugin in most sites we knew off. If you
have suggestions
about other sites, we could list on that would be great.

Indeed ZiYa leverages XML/SWF Charts but hides the XML generation part
from the
developer. Within a couple of API calls you should be able to have a
chart rendered in
you web app. For instance in you controller you can do something like

    def sales
       chart =
       chart.add(:axis_category_text, %w{ 2002 2003 2004 2005 2006 })
       chart.add(:series, "Sales", [ 10, 15, 20, 25, 30 ])
       render :text => chart

   Then in your view code:

    <%= gen_chart( "sales_chart",
	                 url_for( :controller => 'my_controller', :action =>
'sales' ),
	                 "#ffffff", 400, 300 ) %>

   We've also leveraged YAML and ERB to enable you to style the chart
just like
   you would for HTML and stylesheets. The cool thing here ( so we
think... ) is
   that you can dynamically style your charts based on some model
   For example, if you want a certain aspect of the chart to change
color based
   on some threshold, you could override the style sheet with something
like this:

   <%=comp :series_color%>
      <%if @options[:sales] > 10%>
          colors: ff0000,aa0000
          colors: 0000bb,00cc00

     If this looks less than ideal you can also define a ZiYa helper
function which would render
     the code above as such:

    <%=comp :series_color%>
        <%= custom_colors @options[:sales]%>

   There is more info about that in the rdocs.

   Thanks for checking us out !!

83ed21e86ee86270ad79111048ea819c?d=identicon&s=25 De Railed (derailed)
on 2007-01-02 05:53
ZiYa Charting Plugin gets a new home.

For issues, discussions, news... please tune in here:

Be sure to stop on by and register.
This topic is locked and can not be replied to.