Subject: | Problem with axis label: whitespace in string |
Date: | Wed, 11 Jan 2012 14:38:45 +0100 |
To: | bug-Chart-Clicker [...] rt.cpan.org |
From: | Thomas Wolf <thomas.wolf [...] uni-jena.de> |
Hi,
I am using Perl 5.10.1 on Ubuntu 10.04 64 bit and Chart::Clicker 2.76.
Setting a label for the chart itself (title->textbox) and a name for the
series works well. Setting a label for the range-axis (y-axis) only
works with strings _without_ whitespaces. Setting a label _with_
whitespaces makes Chart:Clicker to print each part of the string,
seperated by a whitespace, over each other (starting at the same
position). The label of the domain-axis (x-axis) behaves normal.
This problem seems to be related to "Bug #53528 for Chart-Clicker:
Problem with tick labels, spaces & angles". There the labels of the
ticks are broken if they contain a whitespace.
###
use Chart::Clicker;
my $chart = Chart::Clicker->new();
#$chart->get_context("default")->range_axis->label("example_label"); # ok
$chart->get_context("default")->range_axis->label("example label"); #
NOT ok
my $series = Chart::Clicker::Data::Series->new(keys=>[1, 2, 3],
values=>[1, 2, 3]);
my $dataset = Chart::Clicker::Data::DataSet->new(series=>[$series]);
$chart->add_to_datasets($dataset);
$chart->write_output("labels.png");
###
Regards,
Thomas