Jesse Vincent > Jifty > Jifty::Plugin::Chart::Renderer::SimpleBars

Download:
Jifty-0.70824.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  13
Open  4
Stalled  1
View/Report Bugs
Source  

NAME ^

Jifty::Plugin::Chart::Renderer::SimpleBars - a simple horizontal bar chart

DESCRIPTION ^

This is a simple renderer for charts created both as a dead simple way of rendering horizontal bar charts, which can be a very simple way of rendering data, and as a prototype for some other work I'm thinking of doing with the chart plugin.

OPTIONS ^

Of the rendering API, this only uses the first dataset given and ignores any others. It also fails if used for any type other than the only one it supports "horizontalbars".

It takes the following options:

summary

To maximize the accessibility of your chart, set this to describe the data. This will set the table's summary attribute.

STYLING ^

Please be aware that when using this object, you must add background color to the application CSS file to see the bars.

  div.simple_bars span.bar {
      background-color: black;
  }

METHODS ^

init

Tell Jifty about the CSS and JS files SimpleBars needs.

render

Renders a horizontal bar chart. This is done by rendering a table of HTML values, which is then converted to a bar chart by the Javascript added to the response during "init".

If JavaScript is not supported by the browser, all the data is presented ina table. They can still read the data, but just not in the most readable form.

AUTHOR ^

Andrew Sterling Hanenkamp, <andrew.hanenkamp@boomer.com>

COPYRIGHT AND LICENSE ^

Copyright 2007 Boomer Consulting, Inc.

This is free software. You may modify and redistribute it under the same terms as Perl itself.

syntax highlighting: