Skip Menu |

This queue is for tickets about the Tk-Chart CPAN distribution.

Report information
The Basics
Id: 124369
Status: resolved
Priority: 0/
Queue: Tk-Chart

People
Owner: DJIBEL [...] cpan.org
Requestors: ASB [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.21
Fixed in: 1.22



Subject: Option -legendfont does not work for Tk::Chart::Bars -
The error is: Can't set -legendfont to `{Arial} 8 {normal}' for Tk::Chart::Bars=HASH(0x7b1e1cc): Bad option `-legendfont' Here is what I tried: my $chart = $frame_gfx->Bars( -title => 'Title', -legendfont => '{Arial} 8 {normal}', -xlabel => 'X', -ylabel => 'Y', -background => 'white', -showvalues => 1, )->pack(-fill => 'x', -expand => 1, -anchor => 'n',); It's a bit dubious, as it works fine for a Tk::Chart::Pie.
Le Jeu 08 Fév 2018 15:12:13, ASB a écrit : Show quoted text
> The error is: Can't set -legendfont to `{Arial} 8 {normal}' for > Tk::Chart::Bars=HASH(0x7b1e1cc): Bad option `-legendfont' > > Here is what I tried: > > my $chart = $frame_gfx->Bars( > -title => 'Title', > -legendfont => '{Arial} 8 {normal}', > -xlabel => 'X', > -ylabel => 'Y', > -background => 'white', > -showvalues => 1, > )->pack(-fill => 'x', -expand => 1, -anchor => 'n',); > > It's a bit dubious, as it works fine for a Tk::Chart::Pie.
Dear, Thank you for the issue. You have to wait the next release soon for the correction. Best Regards, Djibel
Le Jeu 08 Fév 2018 15:12:13, ASB a écrit : Show quoted text
> The error is: Can't set -legendfont to `{Arial} 8 {normal}' for > Tk::Chart::Bars=HASH(0x7b1e1cc): Bad option `-legendfont' > > Here is what I tried: > > my $chart = $frame_gfx->Bars( > -title => 'Title', > -legendfont => '{Arial} 8 {normal}', > -xlabel => 'X', > -ylabel => 'Y', > -background => 'white', > -showvalues => 1, > )->pack(-fill => 'x', -expand => 1, -anchor => 'n',); > > It's a bit dubious, as it works fine for a Tk::Chart::Pie.
legendfont option works now with Tk::Chart 1.22. Best Regard, Djibel