Daisuke Maki > Google-Chart-0.09000_05 > Google::Chart::Data

Download:
Google-Chart-0.09000_05.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  13
Open  5
View/Report Bugs
Source  

NAME ^

Google::Chart::Data - Google::Chart Data

SYNOPSIS ^

    use Google::Chart::Data;

    # simple, text encoding
    Google::Chart::Data->new(
        [ 1.0, 2.0, undef, 50.0, -1, 100.0 ]
    );

    # Explicity encoding specification, with legend
    Google::Chart::Data->new(
        encoding => Google::Chart::Encoding::Extended->new(
            max_value => 150,
        ),
        data => [
            Google::Chart::DataSet->new(
                legend => "Data set 1",
                data   => [ 1.0, 2.0, undef, 50.0, -1, 100.0 ]
            ),
            Google::Chart::DataSet->new(
                legend => "Data set 2",
                data   => [ 1, 400, 500, 100]
            )
        ]
    );
syntax highlighting: