Permalink
Browse files

- Fix bad default opacity in Bar renderer

  - Fix syntax error from method name typo in share-axes example
  • Loading branch information...
1 parent 20604a5 commit f0591ba9186a59d4a475bb909abcda11b5f5748a @gphat committed Dec 17, 2009
Showing with 12 additions and 8 deletions.
  1. +4 −0 Changes
  2. +6 −6 example/share-axes.pl
  3. +1 −1 lib/Chart/Clicker.pm
  4. +1 −1 lib/Chart/Clicker/Renderer/Bar.pm
View
@@ -1,5 +1,9 @@
Revision history for Perl extension Chart::Clicker.
+2.53
+ - Fix bad default opacity in Bar renderer
+ - Fix syntax error from method name typo in share-axes example
+
2.52
- Add contains method to Range
- Redo POD to use an ATTRIBUTES section
View
@@ -49,21 +49,21 @@
);
# Create a new context
-my $other_context = Chart::Clicker::Context->new(
- name => 'other'
-);
+# my $other_context = Chart::Clicker::Context->new(
+# name => 'other'
+# );
my $defctx = $cc->get_context('default');
# This line does the magic. It sets the other_context's axes to the same
# ones used by the default. This gives us all the features of multiple
# contexts, but without separate axes.
-$other_context->share_axis_with($defctx);
+# $other_context->share_axes_with($defctx);
# Instruct the ds1 dataset to use the 'other' context. DataSets default to
# the 'default' context.
-$ds1->context('other');
-$cc->add_to_contexts($other_context);
+# $ds1->context('other');
+# $cc->add_to_contexts($other_context);
# Pretty stuff
$cc->border->width(0);
View
@@ -24,7 +24,7 @@ use Chart::Clicker::Drawing::ColorAllocator;
use Carp qw(croak);
use Scalar::Util qw(refaddr);
-our $VERSION = '2.52';
+our $VERSION = '2.53';
has '+background_color' => (
default => sub {
@@ -22,7 +22,7 @@ has 'brush' => (
has 'opacity' => (
is => 'rw',
isa => 'Num',
- default => 0
+ default => 1
);
override('prepare', sub {

0 comments on commit f0591ba

Please sign in to comment.