Group
Extension

Matches 14

Chart-OFC2 ( J/JK/JKUTEJ/Chart-OFC2-0.08_02.tar.gz, JKUTEJ, 2011; MetaCPAN )
Chart-OFC2/lib/Chart/OFC2.pm ( view source; MetaCPAN )
(
        'title'  => 'Bar chart test',
    );
    print $chart->render_swf(600, 400, 'chart-data.json', 'test-chart');

OFC2 bar chart data:

    use Chart::OFC2;
    use Chart::OFC2::Axis;
    use C
lash
Chart 2 is offering. But it should help you to starting creating OFC2
graphs quite fast. The JSON format is quite intuitive and can be created
from any hash. This module is more like guideline.

2 is a flash script for creating graphs. To have a graph we need an
F<open-flash-chart.swf> and a JSON data file describing graph data.
Complete examples you can find after successful run of this modu
Chart-OFC2 ( J/JK/JKUTEJ/Chart-OFC2-0.08_02.tar.gz, JKUTEJ, 2011; MetaCPAN )
Chart-OFC2/lib/Chart/OFC2/Legend.pm ( view source; MetaCPAN )
THODS

=head2 new()

Object constructor.

=head2 TO_JSON()

Returns HashRef that is possible to give to C<encode_json()> function.

=cut

sub TO_JSON {
    my $self = shift;
    
    return {
        
Chart-OFC2 ( J/JK/JKUTEJ/Chart-OFC2-0.08_02.tar.gz, JKUTEJ, 2011; MetaCPAN )
Chart-OFC2/lib/Chart/OFC2/Title.pm ( view source; MetaCPAN )
THODS

=head2 new()

Object constructor.

=head2 TO_JSON()

Returns HashRef that is possible to give to C<encode_json()> function.

=cut

sub TO_JSON {
    my $self = shift;
    
    return {
        
Chart-OFC2 ( J/JK/JKUTEJ/Chart-OFC2-0.08_02.tar.gz, JKUTEJ, 2011; MetaCPAN )
Chart-OFC2/lib/Chart/OFC2/Element.pm ( view source; MetaCPAN )
THODS

=head2 new()

Object constructor.

=head2 TO_JSON()

Returns HashRef that is possible to give to C<encode_json()> function.

=cut

sub TO_JSON {
    my $self = shift;
    
    my %hash = (
    
Chart-OFC2 ( J/JK/JKUTEJ/Chart-OFC2-0.08_02.tar.gz, JKUTEJ, 2011; MetaCPAN )
Chart-OFC2/lib/Chart/OFC2/Labels.pm ( view source; MetaCPAN )
THODS

=head2 new()

Object constructor.

=head2 TO_JSON()

Returns HashRef that is possible to give to C<encode_json()> function.

=cut

sub TO_JSON {
    my ($self) = @_;
    
    return {
        m
Chart-OFC2 ( J/JK/JKUTEJ/Chart-OFC2-0.08_02.tar.gz, JKUTEJ, 2011; MetaCPAN )
Chart-OFC2/lib/Chart/OFC2/Bar.pm ( view source; MetaCPAN )
li><a href="http://cpansearch.perl.org/src/JKUTEJ/Chart-OFC2-0.08_01/examples/for-pod/bar-data.json">json source</a></li>
</ul>

=end html

=cut

use Moose;
use MooseX::StrictConstructor;

our $VERSIO
Chart-OFC2 ( J/JK/JKUTEJ/Chart-OFC2-0.08_02.tar.gz, JKUTEJ, 2011; MetaCPAN )
Chart-OFC2/lib/Chart/OFC2/HBar.pm ( view source; MetaCPAN )
ON

	extends 'Chart::OFC2::BarLineBase';

In L<Chart::OFC2::HBarValues> when converting values to JSON the values are
reversed. This is done so that the C<y_axis->labels> match to the values.
Also not
Chart-OFC2 ( J/JK/JKUTEJ/Chart-OFC2-0.08_02.tar.gz, JKUTEJ, 2011; MetaCPAN )
Chart-OFC2/lib/Chart/OFC2/HBarValues.pm ( view source; MetaCPAN )
_JSON()

Returns ArrayRef that is possible to give to C<encode_json()> function.

NOTE: values are reversed. This is done so that the C<y_axis->labels> match to
the values properly.

=cut

sub TO_JSON
Chart-OFC2 ( J/JK/JKUTEJ/Chart-OFC2-0.08_02.tar.gz, JKUTEJ, 2011; MetaCPAN )
Chart-OFC2/lib/Chart/OFC2/Menu.pm ( view source; MetaCPAN )
THODS

=head2 new()

Object constructor.

=head2 TO_JSON()

Returns HashRef that is possible to give to C<encode_json()> function.

=cut

sub TO_JSON {
    my $self = shift;

    return {
        map 
Chart-OFC2 ( J/JK/JKUTEJ/Chart-OFC2-0.08_02.tar.gz, JKUTEJ, 2011; MetaCPAN )
Chart-OFC2/lib/Chart/OFC2/Axis.pm ( view source; MetaCPAN )
too

=head1 METHODS

=head2 TO_JSON()

Returns HashRef that is possible to give to C<encode_json()> function.

=cut

sub TO_JSON {
    my ($self) = @_;
    
    my %json = (
        map  { my $v = $se
{ $_->name } $self->meta->get_all_attributes
    );
    $json{'3d'} = delete $json{'is3d'}
        if (exists $json{'is3d'});

    return \%json;
}

=head2 color()

Same as colour().

=cut

sub color 
Chart-OFC2 ( J/JK/JKUTEJ/Chart-OFC2-0.08_02.tar.gz, JKUTEJ, 2011; MetaCPAN )
Chart-OFC2/lib/Chart/OFC2/PieValues.pm ( view source; MetaCPAN )
 ('colours' => \@colours) : ())
    );
}

=head2 TO_JSON()

Returns HashRef that is possible to give to C<encode_json()> function.

=cut

sub TO_JSON {
    my ($self) = @_;
    
    my @values_with_la
Chart-OFC2 ( J/JK/JKUTEJ/Chart-OFC2-0.08_02.tar.gz, JKUTEJ, 2011; MetaCPAN )
Chart-OFC2/lib/Chart/OFC2/ToolTip.pm ( view source; MetaCPAN )
THODS

=head2 new()

Object constructor.

=head2 TO_JSON()

Returns HashRef that is possible to give to C<encode_json()> function.

=cut

sub TO_JSON {
    my $self = shift;
    
    return {
        
Chart-OFC2 ( J/JK/JKUTEJ/Chart-OFC2-0.08_02.tar.gz, JKUTEJ, 2011; MetaCPAN )
Chart-OFC2/lib/Chart/OFC2/Pie.pm ( view source; MetaCPAN )
li><a href="http://cpansearch.perl.org/src/JKUTEJ/Chart-OFC2-0.08_02/examples/for-pod/pie-data.json">json source</a></li>
</ul>

=end html

=cut

use Moose;
use MooseX::StrictConstructor;

our $VERSIO
s 'values'        => (is => 'rw', isa => 'Chart::OFC2::PieValues', 'coerce' => 1,);

override 'TO_JSON' => sub {
    my $self = shift;
    
    my $pie_element = super();
    
    # get the colours fr
Chart-OFC2 ( J/JK/JKUTEJ/Chart-OFC2-0.08_02.tar.gz, JKUTEJ, 2011; MetaCPAN )
Chart-OFC2/lib/Chart/OFC2/Extremes.pm ( view source; MetaCPAN )
is_max($max)
        if defined $max;
}


=head2 TO_JSON()

Returns HashRef that is possible to give to C<encode_json()> function.

=cut

sub TO_JSON {
    my $self = shift;
    
    return {
        

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.