Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Typo fix #2

Merged
merged 3 commits into from

2 participants

@mpeters

Just a quick typo fix in commit 035a6ab for the tutorial

@mpeters

I also have 2 other commit (f4e32e4) and (27faa8b) which add 2 more examples that took me a few minutes to figure out. Thought it would be nice to pass along the knowledge.

@gphat gphat merged commit a571085 into gphat:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 18 additions and 1 deletion.
  1. +18 −1 lib/Chart/Clicker/Tutorial.pod
View
19 lib/Chart/Clicker/Tutorial.pod
@@ -161,7 +161,7 @@ contributions, drop me a line!
my $chart = Chart::Clicker->new(width => 1024, height => 768);
-=head2 Example 5 : PDF (or SVG or PS)
+=head2 Example 6 : PDF (or SVG or PS)
my $chart = Chart::Clicker->new(format => 'pdf');
@@ -169,6 +169,23 @@ contributions, drop me a line!
$chart->write_output('chart.pdf');
+=head2 Example 7 : Hide the Legend and X-Axis
+
+ my $chart = Chart::Clicker->new();
+
+ # hide the legend
+ $chart->legend->visible(0);
+
+ # hide the X-Axis
+ $chart->get_context('default')->domain_axis->hidden(1);
+
+=head2 Example 8 : Change the display format of the Y-Axis
+
+ my $chart = Chart::Clicker->new();
+
+ # a sprintf format to have 3 decimal places showing on the Y-Axis
+ $chart->get_context('default')->range_axis->format('%.3f')
+
=head1 AUTHOR
Cory G Watson <gphat@cpan.org>
Something went wrong with that request. Please try again.