Provided by: libjifty-plugin-chart-perl_1.01+dfsg-2_all
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 can change the bar color using CSS like so: 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. perl v5.12.4 2009-0Jifty::Plugin::Chart::Renderer::SimpleBars(3pm)