Chart/Plotly/Trace/Scatter.pm

filter: Statementstmt 97.8% 137 / 140 Branchbran 50.0% 6 / 12 Conditioncond 37.5% 3 / 8 MC/DCmcdc 0.0% 0 / 5 Subroutinesub 100% 17 / 17 Podpod 100% 2 / 2 totaltotal 89.6% 165 / 184 CC 10 SCAR 17.5
CC
10
Cov
91%
TO_JSON
13.4
BEGIN
1.0
BEGIN
1.0
CRAP 5.8
« Chart/Plotly/Trace/Funnel.pm ↑ Summary Chart/Plotly/Image.pm »
1 package Chart::Plotly::Trace::Scatter;
2 4 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 4 ▶use MooseX::ExtraArgs;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 4 ▶use Moose::Util::TypeConstraints qw(enum union);
Subroutine BEGIN: called CC=1 SCAR=0.0
5 4 ▶if ( !defined Moose::Util::TypeConstraints::find_type_constraint('PDL') ) {
Branch: 1 branch
BranchTrueFalseTotal
unless (defined Moose::Util::TypeConstraints::find_type_constraint("PDL")) 0 4 4
6 0 Moose::Util::TypeConstraints::type('PDL');
7 }
8  
9 4 ▶use Chart::Plotly::Trace::Scatter::Error_x;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 4 ▶use Chart::Plotly::Trace::Scatter::Error_y;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 4 ▶use Chart::Plotly::Trace::Scatter::Fillpattern;
Subroutine BEGIN: called CC=1 SCAR=0.0
12 4 ▶use Chart::Plotly::Trace::Scatter::Hoverlabel;
Subroutine BEGIN: called CC=1 SCAR=0.0
13 4 ▶use Chart::Plotly::Trace::Scatter::Legendgrouptitle;
Subroutine BEGIN: called CC=1 SCAR=0.0
14 4 ▶use Chart::Plotly::Trace::Scatter::Line;
Subroutine BEGIN: called CC=1 SCAR=0.0
15 4 ▶use Chart::Plotly::Trace::Scatter::Marker;
Subroutine BEGIN: called CC=1 SCAR=0.0
16 4 ▶use Chart::Plotly::Trace::Scatter::Selected;
Subroutine BEGIN: called CC=1 SCAR=0.0
17 4 ▶use Chart::Plotly::Trace::Scatter::Stream;
Subroutine BEGIN: called CC=1 SCAR=0.0
18 4 ▶use Chart::Plotly::Trace::Scatter::Textfont;
Subroutine BEGIN: called CC=1 SCAR=0.0
19 4 ▶use Chart::Plotly::Trace::Scatter::Transform;
Subroutine BEGIN: called CC=1 SCAR=0.0
20 4 ▶use Chart::Plotly::Trace::Scatter::Unselected;
Subroutine BEGIN: called CC=1 SCAR=0.0
21  
22 4 our $VERSION = '0.042'; # VERSION
23  
24 # ABSTRACT: The scatter trace type encompasses line charts, scatter charts, text charts, and bubble charts. The data visualized as scatter point or lines is set in `x` and `y`. Text (appearing either on the chart or on hover only) is via `text`. Bubble charts are achieved by setting `marker.size` and/or `marker.color` to numerical arrays.
25  
26 4 ▶sub TO_JSON {
Subroutine TO_JSON: called CC=10 SCAR=26.0
Pod documented
27 4 my $self = shift;
28 4 ▶ my $extra_args = $self->extra_args // {};
Condition50%1/2
$self->extra_args // {}
l!l
40
MC/DC0%0/1
$self->extra_args // {}
$self->extra_args
Truth table50%1/2
A
A= $self->extra_args
Aresult
11
00
29 4 my $meta = $self->meta;
30 4 my %hash = %$self;
31 4 for my $name ( sort keys %hash ) {
32 12 my $attr = $meta->get_attribute($name);
33 12 ▶ if ( defined $attr ) {
Branch: 1 branch
BranchTrueFalseTotal
if (defined $attr) 8 4 12
34 8 my $value = $hash{$name};
35 8 my $type = $attr->type_constraint;
36 8 ▶ if ( $type && $type->equals('Bool') ) {
Branch: 1 branch
BranchTrueFalseTotal
if ($type and $type->equals("Bool")) 0 8 8
Condition33%1/3
$type and $type->equals("Bool")
!ll&&!rl&&r
080
MC/DC0%0/2
$type and $type->equals("Bool")
$type $type->equals("Bool")
Truth table33%1/3
A and B
A= $typeB= $type->equals("Bool")
ABresult
0X0
100
111
37 0 ▶ $hash{$name} = $value ? \1 : \0;
Branch: 1 branch
BranchTrueFalseTotal
$value ? : 0 0 0
38 }
39 }
40 }
41 4 my $plotly_meta = delete $hash{'pmeta'};
42 4 ▶ if ( defined $plotly_meta ) {
Branch: 1 branch
BranchTrueFalseTotal
if (defined $plotly_meta) 0 4 4
43 0 $hash{'meta'} = $plotly_meta;
44 }
45 4 %hash = ( %hash, %$extra_args );
46 4 delete $hash{'extra_args'};
47 4 ▶ if ( $self->can('type') && ( !defined $hash{'type'} ) ) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->can("type") and not defined $hash{"type"}) 4 0 4
Condition33%1/3
$self->can("type") and not defined $hash{"type"}
!ll&&!rl&&r
004
MC/DC0%0/2
$self->can("type") and not defined $hash{"type"}
$self->can("type") not defined $hash{"type"}
Truth table33%1/3
A and not(B)
A= $self->can("type")B= not defined $hash{"type"}
ABresult
0X0
100
111
48 4 $hash{type} = $self->type();
49 }
50 4 return \%hash;
51 }
52  
53 4 ▶sub type {
Subroutine type: called CC=1 SCAR=0.0
Pod documented
54 4 my @components = split( /::/, __PACKAGE__ );
55 4 return lc( $components[-1] );
56 }
57  
58 4 has cliponaxis => (
59 is => "rw",
60 isa => "Bool",
61 documentation =>
62 "Determines whether or not markers and text nodes are clipped about the subplot axes. To show markers and text nodes above axis lines and tick labels, make sure to set `xaxis.layer` and `yaxis.layer` to *below traces*.",
63 );
64  
65 4 has connectgaps => (
66 is => "rw",
67 isa => "Bool",
68 documentation =>
69 "Determines whether or not gaps (i.e. {nan} or missing values) in the provided data arrays are connected.",
70 );
71  
72 4 has customdata => (
73 is => "rw",
74 isa => "ArrayRef|PDL",
75 documentation =>
76 "Assigns extra data each datum. This may be useful when listening to hover, click and selection events. Note that, *scatter* traces also appends customdata items in the markers DOM elements",
77 );
78  
79 4 has customdatasrc => ( is => "rw",
80 isa => "Str",
81 documentation => "Sets the source reference on Chart Studio Cloud for `customdata`.",
82 );
83  
84 4 has dx => ( is => "rw",
85 isa => "Num",
86 documentation => "Sets the x coordinate step. See `x0` for more info.",
87 );
88  
89 4 has dy => ( is => "rw",
90 isa => "Num",
91 documentation => "Sets the y coordinate step. See `y0` for more info.",
92 );
93  
94 4 has error_x => ( is => "rw",
95 isa => "Maybe[HashRef]|Chart::Plotly::Trace::Scatter::Error_x", );
96  
97 4 has error_y => ( is => "rw",
98 isa => "Maybe[HashRef]|Chart::Plotly::Trace::Scatter::Error_y", );
99  
100 4 has fill => (
101 is => "rw",
102 isa => enum( [ "none", "tozeroy", "tozerox", "tonexty", "tonextx", "toself", "tonext" ] ),
103 documentation =>
104 "Sets the area to fill with a solid color. Defaults to *none* unless this trace is stacked, then it gets *tonexty* (*tonextx*) if `orientation` is *v* (*h*) Use with `fillcolor` if not *none*. *tozerox* and *tozeroy* fill to x=0 and y=0 respectively. *tonextx* and *tonexty* fill between the endpoints of this trace and the endpoints of the trace before it, connecting those endpoints with straight lines (to make a stacked area graph); if there is no trace before it, they behave like *tozerox* and *tozeroy*. *toself* connects the endpoints of the trace (or each segment of the trace if it has gaps) into a closed shape. *tonext* fills the space between two traces if one completely encloses the other (eg consecutive contour lines), and behaves like *toself* if there is no trace before it. *tonext* should not be used if one trace does not enclose the other. Traces in a `stackgroup` will only fill to (or be filled to) other traces in the same group. With multiple `stackgroup`s or some traces stacked and some not, if fill-linked traces are not already consecutive, the later ones will be pushed down in the drawing order.",
105 );
106  
107 4 has fillcolor => (
108 is => "rw",
109 isa => "Str",
110 documentation =>
111 "Sets the fill color. Defaults to a half-transparent variant of the line color, marker color, or marker line color, whichever is available.",
112 );
113  
114 4 has fillpattern => ( is => "rw",
115 isa => "Maybe[HashRef]|Chart::Plotly::Trace::Scatter::Fillpattern", );
116  
117 4 has groupnorm => (
118 is => "rw",
119 isa => enum( [ "", "fraction", "percent" ] ),
120 documentation =>
121 "Only relevant when `stackgroup` is used, and only the first `groupnorm` found in the `stackgroup` will be used - including if `visible` is *legendonly* but not if it is `false`. Sets the normalization for the sum of this `stackgroup`. With *fraction*, the value of each trace at each location is divided by the sum of all trace values at that location. *percent* is the same but multiplied by 100 to show percentages. If there are multiple subplots, or multiple `stackgroup`s on one subplot, each will be normalized within its own set.",
122 );
123  
124 4 has hoverinfo => (
125 is => "rw",
126 isa => "Str|ArrayRef[Str]",
127 documentation =>
128 "Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired.",
129 );
130  
131 4 has hoverinfosrc => ( is => "rw",
132 isa => "Str",
133 documentation => "Sets the source reference on Chart Studio Cloud for `hoverinfo`.",
134 );
135  
136 4 has hoverlabel => ( is => "rw",
137 isa => "Maybe[HashRef]|Chart::Plotly::Trace::Scatter::Hoverlabel", );
138  
139 4 has hoveron => (
140 is => "rw",
141 isa => "Str",
142 documentation =>
143 "Do the hover effects highlight individual points (markers or line points) or do they highlight filled regions? If the fill is *toself* or *tonext* and there are no markers or text, then the default is *fills*, otherwise it is *points*.",
144 );
145  
146 4 has hovertemplate => (
147 is => "rw",
148 isa => "Str|ArrayRef[Str]",
149 documentation =>
150 "Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example \"y: %{y}\" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example \"Price: %{y:\$.2f}\". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example \"Day: %{2019-01-01|%A}\". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `<extra>` is displayed in the secondary box, for example \"<extra>{fullData.name}</extra>\". To hide the secondary box completely, use an empty tag `<extra></extra>`.",
151 );
152  
153 4 has hovertemplatesrc => ( is => "rw",
154 isa => "Str",
155 documentation => "Sets the source reference on Chart Studio Cloud for `hovertemplate`.",
156 );
157  
158 4 has hovertext => (
159 is => "rw",
160 isa => "Str|ArrayRef[Str]",
161 documentation =>
162 "Sets hover text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag.",
163 );
164  
165 4 has hovertextsrc => ( is => "rw",
166 isa => "Str",
167 documentation => "Sets the source reference on Chart Studio Cloud for `hovertext`.",
168 );
169  
170 4 has ids => (
171 is => "rw",
172 isa => "ArrayRef|PDL",
173 documentation =>
174 "Assigns id labels to each datum. These ids for object constancy of data points during animation. Should be an array of strings, not numbers or any other type.",
175 );
176  
177 4 has idssrc => ( is => "rw",
178 isa => "Str",
179 documentation => "Sets the source reference on Chart Studio Cloud for `ids`.",
180 );
181  
182 4 has legendgroup => (
183 is => "rw",
184 isa => "Str",
185 documentation =>
186 "Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items.",
187 );
188  
189 4 has legendgrouptitle => ( is => "rw",
190 isa => "Maybe[HashRef]|Chart::Plotly::Trace::Scatter::Legendgrouptitle", );
191  
192 4 has legendrank => (
193 is => "rw",
194 isa => "Num",
195 documentation =>
196 "Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with `*reversed* `legend.traceorder` they are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items.",
197 );
198  
199 4 has line => ( is => "rw",
200 isa => "Maybe[HashRef]|Chart::Plotly::Trace::Scatter::Line", );
201  
202 4 has marker => ( is => "rw",
203 isa => "Maybe[HashRef]|Chart::Plotly::Trace::Scatter::Marker", );
204  
205 4 has pmeta => (
206 is => "rw",
207 isa => "Any|ArrayRef[Any]",
208 documentation =>
209 "Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index.",
210 );
211  
212 4 has metasrc => ( is => "rw",
213 isa => "Str",
214 documentation => "Sets the source reference on Chart Studio Cloud for `meta`.",
215 );
216  
217 4 has mode => (
218 is => "rw",
219 isa => "Str",
220 documentation =>
221 "Determines the drawing mode for this scatter trace. If the provided `mode` includes *text* then the `text` elements appear at the coordinates. Otherwise, the `text` elements appear on hover. If there are less than 20 points and the trace is not stacked then the default is *lines+markers*. Otherwise, *lines*.",
222 );
223  
224 4 has name => ( is => "rw",
225 isa => "Str",
226 documentation => "Sets the trace name. The trace name appear as the legend item and on hover.",
227 );
228  
229 4 has opacity => ( is => "rw",
230 isa => "Num",
231 documentation => "Sets the opacity of the trace.",
232 );
233  
234 4 has orientation => (
235 is => "rw",
236 isa => enum( [ "v", "h" ] ),
237 documentation =>
238 "Only relevant when `stackgroup` is used, and only the first `orientation` found in the `stackgroup` will be used - including if `visible` is *legendonly* but not if it is `false`. Sets the stacking direction. With *v* (*h*), the y (x) values of subsequent traces are added. Also affects the default value of `fill`.",
239 );
240  
241 4 has selected => ( is => "rw",
242 isa => "Maybe[HashRef]|Chart::Plotly::Trace::Scatter::Selected", );
243  
244 4 has selectedpoints => (
245 is => "rw",
246 isa => "Any",
247 documentation =>
248 "Array containing integer indices of selected points. Has an effect only for traces that support selections. Note that an empty array means an empty selection where the `unselected` are turned on for all points, whereas, any other non-array values means no selection all where the `selected` and `unselected` styles have no effect.",
249 );
250  
251 4 has showlegend => (
252 is => "rw",
253 isa => "Bool",
254 documentation => "Determines whether or not an item corresponding to this trace is shown in the legend.",
255 );
256  
257 4 has stackgaps => (
258 is => "rw",
259 isa => enum( [ "infer zero", "interpolate" ] ),
260 documentation =>
261 "Only relevant when `stackgroup` is used, and only the first `stackgaps` found in the `stackgroup` will be used - including if `visible` is *legendonly* but not if it is `false`. Determines how we handle locations at which other traces in this group have data but this one does not. With *infer zero* we insert a zero at these locations. With *interpolate* we linearly interpolate between existing values, and extrapolate a constant beyond the existing values.",
262 );
263  
264 4 has stackgroup => (
265 is => "rw",
266 isa => "Str",
267 documentation =>
268 "Set several scatter traces (on the same subplot) to the same stackgroup in order to add their y values (or their x values if `orientation` is *h*). If blank or omitted this trace will not be stacked. Stacking also turns `fill` on by default, using *tonexty* (*tonextx*) if `orientation` is *h* (*v*) and sets the default `mode` to *lines* irrespective of point count. You can only stack on a numeric (linear or log) axis. Traces in a `stackgroup` will only fill to (or be filled to) other traces in the same group. With multiple `stackgroup`s or some traces stacked and some not, if fill-linked traces are not already consecutive, the later ones will be pushed down in the drawing order.",
269 );
270  
271 4 has stream => ( is => "rw",
272 isa => "Maybe[HashRef]|Chart::Plotly::Trace::Scatter::Stream", );
273  
274 4 has text => (
275 is => "rw",
276 isa => "Str|ArrayRef[Str]",
277 documentation =>
278 "Sets text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels.",
279 );
280  
281 4 has textfont => ( is => "rw",
282 isa => "Maybe[HashRef]|Chart::Plotly::Trace::Scatter::Textfont", );
283  
284 4 has textposition => (
285 is => "rw",
286 isa => union(
287 [
288 enum(
289 [ "top left",
290 "top center",
291 "top right",
292 "middle left",
293 "middle center",
294 "middle right",
295 "bottom left",
296 "bottom center",
297 "bottom right"
298 ]
299 ),
300 "ArrayRef"
301 ]
302 ),
303 documentation => "Sets the positions of the `text` elements with respects to the (x,y) coordinates.",
304 );
305  
306 4 has textpositionsrc => ( is => "rw",
307 isa => "Str",
308 documentation => "Sets the source reference on Chart Studio Cloud for `textposition`.",
309 );
310  
311 4 has textsrc => ( is => "rw",
312 isa => "Str",
313 documentation => "Sets the source reference on Chart Studio Cloud for `text`.",
314 );
315  
316 4 has texttemplate => (
317 is => "rw",
318 isa => "Str|ArrayRef[Str]",
319 documentation =>
320 "Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example \"y: %{y}\". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example \"Price: %{y:\$.2f}\". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example \"Day: %{2019-01-01|%A}\". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. ",
321 );
322  
323 4 has texttemplatesrc => ( is => "rw",
324 isa => "Str",
325 documentation => "Sets the source reference on Chart Studio Cloud for `texttemplate`.",
326 );
327  
328 4 has transforms => ( is => "rw",
329 isa => "ArrayRef|ArrayRef[Chart::Plotly::Trace::Scatter::Transform]", );
330  
331 4 has uid => (
332 is => "rw",
333 isa => "Str",
334 documentation =>
335 "Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions.",
336 );
337  
338 4 has uirevision => (
339 is => "rw",
340 isa => "Any",
341 documentation =>
342 "Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves.",
343 );
344  
345 4 has unselected => ( is => "rw",
346 isa => "Maybe[HashRef]|Chart::Plotly::Trace::Scatter::Unselected", );
347  
348 4 has visible => (
349 is => "rw",
350 documentation =>
351 "Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible).",
352 );
353  
354 4 has x => ( is => "rw",
355 isa => "ArrayRef|PDL",
356 documentation => "Sets the x coordinates.",
357 );
358  
359 4 has x0 => (
360 is => "rw",
361 isa => "Any",
362 documentation =>
363 "Alternate to `x`. Builds a linear space of x coordinates. Use with `dx` where `x0` is the starting coordinate and `dx` the step.",
364 );
365  
366 4 has xaxis => (
367 is => "rw",
368 documentation =>
369 "Sets a reference between this trace's x coordinates and a 2D cartesian x axis. If *x* (the default value), the x coordinates refer to `layout.xaxis`. If *x2*, the x coordinates refer to `layout.xaxis2`, and so on.",
370 );
371  
372 4 has xcalendar => ( is => "rw",
373 isa => enum(
374 [ "chinese", "coptic", "discworld", "ethiopian", "gregorian", "hebrew", "islamic", "jalali",
375 "julian", "mayan", "nanakshahi", "nepali", "persian", "taiwan", "thai", "ummalqura"
376 ]
377 ),
378 documentation => "Sets the calendar system to use with `x` date data.",
379 );
380  
381 4 has xhoverformat => (
382 is => "rw",
383 isa => "Str",
384 documentation =>
385 "Sets the hover text formatting rulefor `x` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `xaxis.hoverformat`.",
386 );
387  
388 4 has xperiod => (
389 is => "rw",
390 isa => "Any",
391 documentation =>
392 "Only relevant when the axis `type` is *date*. Sets the period positioning in milliseconds or *n* on the x axis. Special values in the form of *n* could be used to declare the number of months. In this case `n` must be a positive integer.",
393 );
394  
395 4 has xperiod0 => (
396 is => "rw",
397 isa => "Any",
398 documentation =>
399 "Only relevant when the axis `type` is *date*. Sets the base for period positioning in milliseconds or date string on the x0 axis. When `x0period` is round number of weeks, the `x0period0` by default would be on a Sunday i.e. 2000-01-02, otherwise it would be at 2000-01-01.",
400 );
401  
402 4 has xperiodalignment => (
403 is => "rw",
404 isa => enum( [ "start", "middle", "end" ] ),
405 documentation => "Only relevant when the axis `type` is *date*. Sets the alignment of data points on the x axis.",
406 );
407  
408 4 has xsrc => ( is => "rw",
409 isa => "Str",
410 documentation => "Sets the source reference on Chart Studio Cloud for `x`.",
411 );
412  
413 4 has y => ( is => "rw",
414 isa => "ArrayRef|PDL",
415 documentation => "Sets the y coordinates.",
416 );
417  
418 4 has y0 => (
419 is => "rw",
420 isa => "Any",
421 documentation =>
422 "Alternate to `y`. Builds a linear space of y coordinates. Use with `dy` where `y0` is the starting coordinate and `dy` the step.",
423 );
424  
425 4 has yaxis => (
426 is => "rw",
427 documentation =>
428 "Sets a reference between this trace's y coordinates and a 2D cartesian y axis. If *y* (the default value), the y coordinates refer to `layout.yaxis`. If *y2*, the y coordinates refer to `layout.yaxis2`, and so on.",
429 );
430  
431 4 has ycalendar => ( is => "rw",
432 isa => enum(
433 [ "chinese", "coptic", "discworld", "ethiopian", "gregorian", "hebrew", "islamic", "jalali",
434 "julian", "mayan", "nanakshahi", "nepali", "persian", "taiwan", "thai", "ummalqura"
435 ]
436 ),
437 documentation => "Sets the calendar system to use with `y` date data.",
438 );
439  
440 4 has yhoverformat => (
441 is => "rw",
442 isa => "Str",
443 documentation =>
444 "Sets the hover text formatting rulefor `y` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `yaxis.hoverformat`.",
445 );
446  
447 4 has yperiod => (
448 is => "rw",
449 isa => "Any",
450 documentation =>
451 "Only relevant when the axis `type` is *date*. Sets the period positioning in milliseconds or *n* on the y axis. Special values in the form of *n* could be used to declare the number of months. In this case `n` must be a positive integer.",
452 );
453  
454 4 has yperiod0 => (
455 is => "rw",
456 isa => "Any",
457 documentation =>
458 "Only relevant when the axis `type` is *date*. Sets the base for period positioning in milliseconds or date string on the y0 axis. When `y0period` is round number of weeks, the `y0period0` by default would be on a Sunday i.e. 2000-01-02, otherwise it would be at 2000-01-01.",
459 );
460  
461 4 has yperiodalignment => (
462 is => "rw",
463 isa => enum( [ "start", "middle", "end" ] ),
464 documentation => "Only relevant when the axis `type` is *date*. Sets the alignment of data points on the y axis.",
465 );
466  
467 4 has ysrc => ( is => "rw",
468 isa => "Str",
469 documentation => "Sets the source reference on Chart Studio Cloud for `y`.",
470 );
471  
472 4 __PACKAGE__->meta->make_immutable();
473 4 1;
474  
475 __END__
« Chart/Plotly/Trace/Funnel.pm ↑ Summary Chart/Plotly/Image.pm »