Subject: | Adding support for XY Line Graphs |
Here's a patch to add XY line graphs (given two data sets per line) to
Google::Chart, as documented in the Google API.
Subject: | 0001-Added-XY-type-graphs.patch |
From ad9531af3708ed425d97d3403582fa019122f998 Mon Sep 17 00:00:00 2001
From: mschilli <m@perlmeister.com>
Date: Mon, 27 Apr 2009 23:30:49 -0700
Subject: [PATCH] Added XY type graphs
---
lib/Google/Chart/Type/XY.pm | 27 +++++++++++++++++++++++++++
1 files changed, 27 insertions(+), 0 deletions(-)
create mode 100644 lib/Google/Chart/Type/XY.pm
diff --git a/lib/Google/Chart/Type/XY.pm b/lib/Google/Chart/Type/XY.pm
new file mode 100644
index 0000000..9988432
--- /dev/null
+++ b/lib/Google/Chart/Type/XY.pm
@@ -0,0 +1,27 @@
+# $Id$
+
+package Google::Chart::Type::XY;
+use Moose;
+use constant parameter_value => 'lxy';
+
+with 'Google::Chart::Type::Simple';
+
+no Moose;
+
+1;
+
+__END__
+
+=head1 NAME
+
+Google::Chart::Type::XY - Google::Chart XY Line Type
+
+In charts of this type, each drawn line is defined by a pair of
+data sets, one of X coordinates and one for Y coordinates. See
+the API documentation at
+
+ http://code.google.com/apis/chart/types.html#line_charts
+
+for details.
+
+=cut
--
1.5.4.3