| 1 | package Chart::GGPlot::HasLabeller; | ||
| 2 | |||
| 3 | # ABSTRACT: The role for the 'labeller' attr | ||
| 4 | |||
| 5 | use Chart::GGPlot::Role; | ||
| 6 | use namespace::autoclean; | ||
| 7 | |||
| 8 | our $VERSION = '0.002003'; # VERSION | ||
| 9 | |||
| 10 | use Types::Standard qw(CodeRef Str); | ||
| 11 | |||
| 12 | use Chart::GGPlot::Types qw(Labeller); | ||
| 13 | |||
| 14 | |||
| 15 | has labeller => ( | ||
| 16 | is => 'ro', | ||
| 17 | isa => Labeller, | ||
| 18 | default => 'value', | ||
| 19 | coerce => 1 | ||
| 20 | ); | ||
| 21 | |||
| 22 | 1; | ||
| 23 | |||
| 24 | __END__ |