Google::Chart::WithData - Role For Charts That Have "Plottable" Data
my $chart = Google::Chart->create(...); $chart->add_dataset( @args ); # delegates to Google::Chart::Data # see there for details
Google::Chart::Data instance.
Class name to use when auto-generating the data object. If your chart class needs some extra mangling, you may want to check this or data_traits
data
data_traits
Role names to be applied to the data object upon creation. If your chart class needs some extra mangling, you may want to check this or data_class
data_class
Class name to use when auto-generating the dataset object. If your chart class needs some extra mangling, you may want to check this or dataset_traits
dataset
dataset_traits
Role names to be applied to the dataset object upon creation. If your chart class needs some extra mangling, you may want to check this or dataset_class
dataset_class
Name of the Encoding class that will encode your data. See Google::Chart::Encoding::Extended, Google::Chart::Encoding::Simple, and Google::Chart::Encoding::Text
Hooks in to Google::Chart's BUILDARGS, and allows the following extra constructor parameters:
Google::Chart->create( Line => ( encoding => 'Simple', # Data encoding scheme ) );
Adds a new dataset. @args are used to instantiate the dataset object, whose class definition is decided by the conbination of dataset_class and dataset_traits
Change the default encoding. This is a convenience function to change the encoding scheme after you've created the object.
Returns the list (as reference) of the underlying dataset objects.
To install Google::Chart, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Google::Chart
CPAN shell
perl -MCPAN -e shell install Google::Chart
For more information on module installation, please visit the detailed CPAN module installation guide.