1Chart::Manual::PropertiUesse(r3)Contributed Perl DocumenCthaatrito:n:Manual::Properties(3)
2
3
4
6 Chart::Manual::Properties - complete guide to Chart's changeable
7 properties
8
10 Individual properties of a chart can be changed via method "set":
11
12 $chart_object->set( %properties);
13 $chart_object->set( key => 'value', ... );
14
15 This page documents all viable keys and values for this calls.
16
17 The first section lists the most common data types and their acceptable
18 values.
19
20 Please note that all chart type reacts only to a distinct subset of
21 properties. The section section therefore groups all properties by
22 chart type or set of types, where they have an effect. The descriptions
23 in this section are shortened to achive a tabular overview.
24
25 A fuller description of each property provides the third section, where
26 they are alpabetically sorted.
27
28 The general layout of a chart image:
29
31 Every key expects values of a certain data type. The more often
32 occurring types are sorted, enumerated and decibed in this section.
33
34 boolean
35 Yes or no decisions you can answer with the perlish 0 or 1 as well as
36 with 'true' or 'false', which might be shortened to 't' and 'T' or 'f'
37 and 'F'. 'none' as an alias of 'false' is also an option.
38
39 code
40 Anonymous subroutine that usually takes the first argument and returns
41 a transformed result:
42
43 sub { $_[0] + 1 }
44
45 color
46 The usual options are:
47
48 names: 'blue'
49
50 All names are tabulated visually and by name under "NAMES" in
51 Chart::Property::DataType::Color::Constant. You can also define a
52 color with integer values in the RGB or HSL space. Acceptable ranges
53 are for RGB: 3x 0..255 and for HSL: 0..359, 2 x 0..100.
54
55 RGB triplets: [0,255,255]
56 RGB hashes: { Red => 0, Green => 255, Blue => 255 }
57 RGB hashes: { R => 0, G => 255, B => 255 }
58 HSL hashes: { H => 240, S => 100, L => 50 }
59 HSL hashes: { hue => 240, saturation => 100, lightness => 50 }
60
61 Detailed explanation and even more options you find under
62 Graphics::Toolkit::Color.
63
64 font
65 There are a handful GD built in font object, than can be referenced:
66
67 GD::Font->Tiny
68 GD::Font->Small
69 GD::Font->MediumBold
70 GD::Font->Large
71 GD::Font->Giant
72
73 integer
74 Whole numbers (without decimals) to set position, size and alike.
75
76 positive integer
77 Integers greater or equal zero.
78
79 string
80 Short texts for title, sub_title and labels on axis, tics and legend.
81 Line breaks ("/n") are only acceptable inside single quotes and in the
82 "title".
83
85 Summary of all properties, grouped by chart type where there
86 applicable. Sections are named after the Chart type in question,
87 except All and NoPie. The format is: name ... type, description;
88 "default value".
89
90 Click on name for a longer explanation.
91
92 All
93 Properties available in all chart types:
94
95 colors-background ... "color" of whole image background ; 'white'
96
97 colors-datasetx ..... "color" of points/lines/bars of dataset number x
98 = 0..64
99
100 colors-grid_lines ... "color" of vertical and horizontal grid lines in
101 the plot background; 'black'
102
103 colors-x_grid_lines . "color" of vertical grid lines; 'black'
104
105 colors-y_grid_lines . "color" of horizontal grid lines; 'black'
106
107 colors-text ......... "color" of all text ; 'black'
108
109 colors-title ........ "color" of text above the graph ; 'black'
110
111 colors-x_label ...... "color" of x-axis label text; 'black'
112
113 colors-y_label ...... "color" of y-axis (left side) label text; 'black'
114
115 colors-y_label2 .... "color" of y-axis (right side) label text; 'black'
116
117 colors-misc ....... "color" of boxes, ticks, axis and alike; 'black'
118
119 "f_x_tick" ................ "code" that transforms "would have" into
120 actual tick label on left x-axis; "undef"
121
122 "f_y_tick" ............... "code" that transforms "would have" into
123 actual tick label on right y-axis; "undef"
124
125 "graph_border" .......... space between graph and title + legend in
126 pixel; 10
127
128 "grey_background" ...... bool: sets plot background to grey; 'true'
129
130 "imagemap" ............ bool: enable imagemap_dump(); 'false'
131
132 "label_font" .......... "font" of axis labels; GD::Font->MediumBold
133
134 "legend" .............. qw[left right top bottom none]: placement of
135 the legend; 'right'
136
137 "legend_font" ......... "font" of the text in the legend;
138 GD::Font->Small.
139
140 "legend_labels" ....... (array ref): labels of colors in legend;
141 "undef"
142
143 "png_border" .......... pos_int: space between graph parts and image
144 edge in pixel; 10
145
146 "sub_title" ........... "string": text below the "title" in smaller
147 letters; ''
148
149 "text_space" .......... pos_int: extra space around any text; 2
150
151 "title" ............... "string": text on top of a chart; ''
152
153 "title_font" .......... "font" of the title text; GD::Font->Large
154
155 "transparent" ......... bool: full image background transparency;
156 'false'
157
158 "x_label" ............. "string": x-axis label text; ''
159
160 "y_label" ............. "string":label on the standard, left y-axis; ''
161
162 "y_label2" ............ "string":label on right y-axis, if different;
163 ''
164
165 NoPie
166 Properties available in all chart types of kinda xy-plot, not "Pie":
167
168 "custom_x_ticks" ..... (array ref): [0,3,4] displays 0th, 3rd, and 4th
169 x-tick; "undef"
170
171 "grid_lines" ......... bool: draw vertical and horizontal grid lines;
172 'false'
173
174 "include_zero" ....... bool: forces y-axis to include zero; 'false'
175
176 "integer_ticks_only" . bool: draw x-axis ticks with label only on whole
177 values; 'false'
178
179 "max_val" ............ pos_int: maximum value on y-axis; "undef"
180
181 "max_x_ticks" ........ pos_int: maximum of ticks and labels to draw on
182 x-axis; 100
183
184 "max_y_ticks" ........ pos_int: maximum of ticks and labels to draw on
185 y-axis; 100
186
187 "min_val" ............ pos_int: maximum value on y-axis; "undef"
188
189 "min_x_ticks" ........ pos_int: minimum of ticks and labels to draw on
190 x-axis; 6 (min 2)
191
192 "min_y_ticks" ........ pos_int: minimum of ticks and labels to draw on
193 y-axis; 6 (min 2)
194
195 "precision" .......... pos_int: nr. of numerals after the decimal point
196 in axis labels; 3
197
198 "skip_int_ticks" ..... pos_int: draw only n'th tick on whole x-value; 1
199 (if "integer_ticks_only")
200
201 "skip_x_ticks" ....... pos_int: draw only every n'th tick with label; 1
202
203 "sort" ............... bool: sort data in ascending order; 'false'
204
205 "tick_label_font" .... "font" of tick labels; GD::Font->Small
206
207 "tick_len" ........... pos_int: length of the x- and y-ticks in pixels;
208 4
209
210 "x_grid_lines" ....... bool: vertical grid lines matching x ticks;
211 'false'
212
213 "x_ticks" ............ qw[normal staggered vertical]: style of x-axis
214 labels; 'normal'
215
216 "xy_plot" ............ bool: forces x-y-graph, with numeric x-axis;
217 'false'
218
219 "y_axes" ............. ('left', 'right', 'both'): position of
220 y-axis;'left'
221
222 "y_grid_lines" ....... bool: horizontal grid lines matching y ticks;
223 'false'
224
225 Bars
226 This includes Bars StackedBars and HorizontalBars.
227
228 "spaced_bars" ........ bool: leave space between the groups of bars;
229 'true'
230
231 HorizontalBars
232 "skip_y_ticks" ....... pos_int: draw every n'th tick with label on
233 y-axis; 1
234
235 Composite
236 "brush_style1" ....... brush style of points associated with left
237 y-axis; "undef"
238
239 "brush_style2" ....... brush style of points associated with right
240 y-axis; "undef"
241
242 "composite_info" ..... (array of arrays) which data sets produce which
243 chart types; "undef"
244
245 "f_y_tick1" .......... "code" that transforms "would have" into actual
246 label on left y-axis; "undef"
247
248 "f_y_tick2" .......... "code" that transforms "would have" into actual
249 label on right y-axis; "undef"
250
251 "legend_example_size" Length of the color example line in legend in
252 pixel; 20
253
254 "max_val1" ........... "code" maximum y value on the left axis; "undef"
255
256 "max_val2" ........... "code" maximum y value on the right axis;
257 "undef"
258
259 "min_val1" ........... "code" minimum y value on the left axis; "undef"
260
261 "min_val2" ........... "code" minimum y value on the right axis;
262 "undef"
263
264 "same_y_axes" ........ "code" both y-axis have same min and max;
265 "undef"
266
267 "y_ticks1" ........... pos_int: number of y ticks on left y-axis;
268 "undef"
269
270 "y_ticks2" ........... pos_int: number of y ticks on right y-axis;
271 "undef"
272
273 Direction
274 "angle_interval" ..... pos_int: angle between radial lines; 30
275
276 "arrow" .............. bool: paint points as arrows; 'false'
277
278 "brush_size" ......... pos_int: width of the lines in pixels; 6
279
280 "line" ............... bool: connected points with lines; 'false'
281
282 "max_circles" ........ pos_int: max nr. of coordinate grid circles; 100
283
284 "min_circles" ........ pos_int: min nr. of coordinate grid circles; 4
285 (min. 2)
286
287 "pair" ............... bool: use odd numbered data sets to build pairs
288 with the next; 'false'
289
290 "point" .............. bool: paint points at all (or only lines);
291 'false'
292
293 "polar" .............. bool: reverse x axis; 'false'
294
295 "pt_size" ............ pos_int: radius of points in pixels; 18
296
297 ErrorBars
298 "brush_size" ......... pos_int: width of the lines in pixels; 6
299
300 "pt_size" ............ pos_int: radius of points in pixels; 18
301
302 "same_error" ......... bool: same values for upper and lower error
303 bounds; 'false'
304
305 Lines
306 including chart type LinesPoints
307
308 "brush_size" ......... pos_int: width of the lines in pixels; 6
309
310 Points
311 including chart type LinesPoints
312
313 "brushStyle" ......... shape of the points; 'FilledCircle'
314
315 "pt_size" ............ pos_int: radius of points in pixels; 18
316
317 Pie
318 "label_values" ....... qw[percent value both none]: label content on
319 pie slice label; 'percent'
320
321 "legend_label_values" qw[percent value both none]: label content in
322 the legend; 'value'
323
324 "legend_lines" ....... bool: draw lines connecting pie slices and
325 label; 'false'
326
327 "ring" ............... "real": percentage of visible radius; 1 (full
328 pie)
329
330 Split
331 "interval" ........... pos_int: interval of a plot segment; 'undef'
332
333 "interval_ticks" ..... pos_int: number of ticks on x-axis; 5
334
335 "scale" .............. "integer": factor for y-values; 1
336
337 "start" .............. "integer": start value of the first interval;
338 'undef'
339
341 angle_interval
342 "Direction" only: how many radial lines should be drawn. The default
343 value is 30, which means that a line will be drawn every 30 degrees.
344 Valid Values are: 0, 5, 10, 15, 20, 30, 45 and 60. If you choose 0,
345 direction will draw no line.
346
347 arrow
348 "Direction" only: Bool that if 'true', chart will draw a arrow from the
349 center to the point. Defaults to 'false'.
350
351 brush_size
352 "Lines" only: Integer sets the width of the lines in pixels. Default is
353 6.
354
355 background
356 see "colors"
357
358 brushStyle
359 Sets the shape of points for Chart::Points, Chart::LinesPoints.
360
361 Possible values are: 'FilledCircle', 'circle', 'donut', 'OpenCircle',
362 'fatPlus', 'triangle', 'upsidedownTriangle', 'square', 'hollowSquare',
363 'OpenRectangle', 'FilledDiamond', 'OpenDiamond', 'Star', 'OpenStar'.
364 Default: 'FilledCircle'. Look at Demo at "Points" in
365 Chart::Manual::Types.
366
367 brush_style1
368 "Composite" only: brush style of points associated with left y-axis.
369
370 brush_style2
371 "Composite" only: brush style of points associated with right y-axis.
372
373 colors
374 The key "colors" is special, because there are a lot of things that
375 need to be colored. That's why its value is a hash with keys within,
376 which name what exactly needs to be colored. Their value has to be a
377 color definition (name, RGB array ref or HSL hash ref):
378
379 $obj->set('colors' => {'background' => [255,255,255]});
380
381 sets the background color to white (which is the default). Valid keys
382 are:
383
384 'background' (background color for the image)
385 'title' (color of the title)
386 'text' (all the text in the chart)
387 'x_label' (color of the x-axis label)
388 'y_label' (color of the first y axis label)
389 'y_label2' (color of the second y axis label)
390 'grid_lines' (color of the grid lines)
391 'x_grid_lines' (color of the x grid lines - for x axis ticks)
392 'y_grid_lines' (color of the y grid lines - for to left y axis ticks)
393 'y2_grid_lines' (color of the y2 grid lines - for right y axis ticks)
394 'dataset0'..'dataset63' (the different datasets)
395 'misc' (everything else, ie. axis, ticks, box around the legend)
396
397 NB. For composite charts, there is a limit of 8 datasets per component.
398 The colors for 'dataset8' through 'dataset15' become the colors for
399 'dataset0' through 'dataset7' for the second component chart.
400
401 composite_info
402 "Composite" only: information about which data set gets visualized by
403 which chart type. It should be a reference to an array of array
404 references, containing information like the following:
405
406 $obj->set ('composite_info' => [ ['Bars', [1,2]],
407 ['Lines', [3,4] ] ]);
408
409 This example would set the two component charts to be a bar chart and a
410 line chart. It would use the first two data sets for the bar chart
411 (note that the numbering starts at 1, not zero like most of the other
412 numbered things in Chart), and the second two data sets for the line
413 chart. The default is undef.
414
415 NB. Chart::Composite can only do two component charts.
416
417 custom_x_ticks
418 Used in "Points", "Lines", "Linespoints", "Errorbars", and "Bars"
419 charts. This option allows you to you to specify exactly which x-ticks
420 and x-tick labels should be drawn. It should be assigned a reference
421 to an array of desired ticks. Just remember that I'm counting from the
422 0th element of the array. (ie., if 'custom_x_ticks' is assigned
423 [0,3,4], then the 0th, 3rd, and 4th x-ticks will be displayed)
424
425 datasetx
426 see "colors"
427
428 f_x_tick
429 Needs a reference to a function ("code") which uses the x-tick labels
430 generated by the '@data[0]' as the argument. The result of this
431 function can reformat the labels. For instance
432
433 $obj -> set ('f_x_tick' => \&formatter );
434
435 An example for the function formatter: x labels are seconds since an
436 event. The referenced function can transform this seconds to hour,
437 minutes and seconds.
438
439 f_y_tick
440 The same situation as for 'f_x_tick' but now used for y labels.
441
442 f_y_tick1
443 "Composite" only: "code" ref to a function which has one argument and
444 has to return a string which labels the first resp. second y axis.
445 Both default to undef.
446
447 f_y_tick2
448 "Composite" only: "code" ref to a function which has one argument and
449 has to return a string which labels the first resp. second y axis.
450 Both default to undef.
451
452 graph_border
453 "Pie" only: Sets the number of pixels used as a border between the
454 title/labels and the actual graph within the image. Defaults to 10.
455
456 grey_background
457 Puts a nice soft grey background on the data plot area when set to
458 'true'. Default is 'true'.
459
460 grid_lines
461 bool: draw grid lines matching up to x and y ticks. Default is
462 'false'.
463
464 imagemap
465 Lets Chart know you're going to ask for information about the placement
466 of the data for use in creating an image map from the png. This
467 information can be retrieved using the imagemap_dump() method. NB.
468 that the imagemap_dump() method cannot be called until after the Chart
469 has been generated.
470
471 include_zero
472 If 'true', forces the y-axis to include zero if it is not in the
473 dataset range. Default is 'false'.
474
475 In general, it is better to use this, than to set the "min_val" if that
476 is all you want to achieve.
477
478 integer_ticks_only
479 bool specifies to draw the x- and y-ticks at floating point values (as
480 normal) or when set to 'true' only at integer values. Default: 'false'
481
482 interval
483 "Split" only: Sets the interval of one partition of plot. Defaults
484 'undef'.
485
486 interval_ticks
487 "Split" only: Number of ticks for the x-axis. Defaults to 5.
488
489 label_font
490 This option changes the "font" of the axis labels. Default is
491 GD::Font->MediumBold.
492
493 label_values
494 "Pie" only: What kind of value labels to show alongside the pie. Valid
495 values are 'percent', 'value', 'both' and 'none'. Defaults to
496 'percent'.
497
498 legend
499 Specifies the placement of the legend. Valid values are 'left',
500 'right', 'top', 'bottom'. Setting this to 'none' tells chart not to
501 draw a legend. Default is 'right'.
502
503 legend_example_size
504 "Composite" only: Length of the example line in the legend in pixels.
505 Defaults to 20.
506
507 legend_font
508 This option changes the "font" of the text in the legend. Default is
509 GD::Font->Small.
510
511 legend_labels
512 Array reference containing texts, which are the labels assigned to each
513 color in the legend. Amount has to correspond to the amount of data
514 sets.
515
516 @labels = ('foo', 'bar');
517 $obj->set ('legend_labels' => \@labels);
518
519 Default is empty, in which case 'Dataset 1', 'Dataset 2', etc. are used
520 as the labels.
521
522 legend_label_values
523 "Pie" only: What labels to draw in the legend. Valid values are
524 c<'percent'>, 'value', 'both' and 'none'. Defaults to 'value'.
525
526 legend_lines
527 "Pie" only: bool to decide if lines connecting pie slices and label are
528 drawn. Default is 'false'.
529
530 label_values
531 "Pie" only: Labels to draw beside the pie slices. Valid values are
532 'percent', 'value', 'both' and 'none'. Defaults to 'percent'.
533
534 line
535 "Direction" only: If you turn this option to 'true', then point will be
536 connected with lines. Defaults to 'false'.
537
538 max_circles
539 "Direction" only: Sets the maximum number of circles in the coordinate
540 system. Default is 100. This limit is used to avoid plotting an
541 unreasonable large number of ticks if non-round values are used for the
542 min_val and max_val.
543
544 max_val
545 Sets the maximum y-value on the graph, overriding the normal auto-
546 scaling. Default is undef.
547
548 max_val1
549 "Composite" only: Maximum y-value for the first (left y-axis)
550 components. Default to undef.
551
552 max_val2
553 "Composite" only: Maximum y-value for the second (right y-axis)
554 components. Default to undef.
555
556 max_x_ticks
557 Work similar as 'max_y_ticks' and 'min_y_ticks'. Of course, only for a
558 xy_plot.
559
560 max_y_ticks
561 Sets the maximum number of y_ticks to draw when generating a scale.
562 Default is 100. This limit is used to avoid plotting an unreasonable
563 large number of ticks if non-round values are used for the min_val and
564 max_val.
565
566 The value for 'max_y_ticks' should be at least 5 times larger than
567 'min_y_ticks'.
568
569 min_circles
570 "Direction" only: Sets the minimum number of circles when generating a
571 scale for direction. Default is 4, minimum is 2.
572
573 min_val
574 Sets the minimum y-value on the graph, overriding the normal auto-
575 scaling. Default is undef.
576
577 Caution: should be used when setting 'max_val' and 'min_val' to
578 floating point or non-round numbers. This is because the scale must
579 start & end on a tick, ticks must have round-number intervals, and
580 include round numbers.
581
582 Example: Suppose your data set has a range of 35-114 units. If you
583 specify them as the 'min_val' & 'max_val', the y_axis will be plotted
584 with 80 ticks every 1 unit.. If no 'min_val' & 'max_val', the system
585 will auto scale the range to 30-120 with 10 ticks every 10 units.
586
587 If the 'min_val' & 'max_val' are specified to excessive precision, they
588 may be overridden by the system, plotting a maximum 'max_y_ticks'
589 ticks.
590
591 min_val1
592 "Composite" only: Minimum y-value for the first (left y-axis)
593 component. Default to undef.
594
595 min_val2
596 "Composite" only: Minimum y-value for the second (right y-axis)
597 component. Default to undef.
598
599 min_x_ticks
600 Work similar as 'max_y_ticks' and 'min_y_ticks'. Of course, only for a
601 xy_plot.
602
603 min_y_ticks
604 Sets the minimum number of y_ticks to draw when generating a scale.
605 Default is 6, The minimum is 2.
606
607 no_cache
608 Adds Pragma: no-cache to the http header while output for CGI. Be
609 careful with this one, as Netscape 4.5 is unfriendly with POST using
610 this method.
611
612 pairs
613 Direction only: bool if 'true', Chart uses the first dataset as a set
614 of degrees and the second dataset as a set of values. Then, the third
615 set is a set of degrees and the fourth a set of values ... If 'pairs'
616 is set to 'false', Chart uses the first dataset as a set of angels and
617 all following datasets as sets of values. Defaults to 'false'.
618
619 png_border
620 Sets the number of pixels used as a border between the graph and the
621 edges of the image. Defaults to 10.
622
623 point
624 Indicates to draw points in a direction chart. 'true' or 'false'
625 possible. Defaults to 'true'.
626
627 polar
628 "Direction" only: If set 'true', the maximum x value is in the center
629 of the coordinate system. Defaults to 'false'.
630
631 precision
632 Sets the number of numerals after the decimal point. Affects in most
633 cases the y-axis. But also the x-axis if "xy_plot" was set and also the
634 labels in a pie chart. Defaults to 3.
635
636 pt_size
637 "Points" and "LinesPoints" only: Sets the radius of the points in
638 pixels. Default is 18.
639
640 ring
641 "Pie" only: sets the "thickness" of the pie, the percentage of the
642 radius, which is visible. Defaults to 1 (full pie chart). Good values
643 are between 0.2 and 0.4.
644
645 scale
646 "Split" only: Every y-value will be multiplied with that value, but the
647 scale won't change. Which means that split allows one to overdraw
648 certain rows! Only useful if you want to give prominence to the
649 maximal amplitudes of the data. Defaults to 1.
650
651 same_error
652 "ErrorBars" only: It tells chart that you want use the same error value
653 of a data point if set to 'true'. Look at the documentation to see how
654 the module ErrorBars works. Default: 'false'.
655
656 same_y_axes
657 "Composite" only: Forces both component charts to use the same maximum
658 and minimum y-values if set to 'true'. This helps to keep the
659 composite charts from being too confusing. Default is "undef".
660
661 skip_int_ticks
662 If 'true' the labels and ticks will be drawn every nth tick. Of course
663 in horizontalBars it affects the x-axis. Default to 1, no skipping.
664
665 skip_x_ticks
666 Sets the number of x-ticks and x-tick labels to skip. (ie. if
667 'skip_x_ticks' was set to 4, Chart would draw every 4th x-tick and
668 x-tick label). Default is "undef".
669
670 skip_y_ticks
671 "HorizontalBars" only: Draw only every n'th tick with label on y-axis.
672 does for other charts. Defaults to 1 (draw all).
673
674 sort
675 In a xy-plot, the data will be sorted ascending if set to 'true'.
676 (Should be set if the data isn't sorted, especially in Lines, Split and
677 LinesPoints) In a Pareto Chart the data will be sorted descending.
678 Defaults to 'false'.
679
680 spaced_bars
681 "Bars" only: Leaves space between the groups of bars at each data point
682 when set to 'true'. This just makes it easier to read a bar chart.
683 Default is 'true'.
684
685 start
686 "Split" only: Sets the start value of the first interval. If the x
687 coordinate of the first data point is zero, you should 'set' to zero.
688 Default is 'undef'.
689
690 sub_title
691 Write a sub-title under the "title" in smaller letters. Default is
692 empty.
693
694 text_space
695 Sets the amount of space left on the sides (lext and right) of text,
696 (title, legend, label) to make it more readable. Defaults to 2.
697
698 tick_label_font
699 This is the font for the tick labels. It also needs a GD font object as
700 an argument. Default is GD::Font->Small.
701
702 tick_len
703 Sets the length of the x- and y-ticks in pixels. Default is 4.
704
705 title
706 Content of title text. If empty, no title is drawn. It recognizes '\n'
707 as a newline, and acts accordingly. Remember, if you want to use
708 normal quotation marks instead of single quotation marks then you have
709 to quote "\\n". Default is empty.
710
711 title_font
712 This option changes the "font" of the title. Default is
713 GD::Font->Large.
714
715 transparent
716 Makes the background of the whole image transparent if set to 'true'.
717 Useful for making web page images. Default is 'false'.
718
719 x_grid_lines
720 Draws vertical grid lines matching up to x ticks if set to 'true'.
721 Default is 'false'.
722
723 x_label
724 Tells Chart what to use for the x-axis label. If empty, no label is
725 drawn. Default is empty.
726
727 x_ticks
728 Specifies how to draw the x-tick labels. Valid values are 1: 'normal',
729 2: 'staggered' (alternating on upper and lower row - for very long
730 labels), and 3: 'vertical' (the labels are draw upwards in right
731 angle). Default is 'normal'.
732
733 xy_plot
734 Forces Chart to plot a x-y-graph, which means, that the x-axis is also
735 numeric if set to 'true'. Very useful for mathematical graphs. Works
736 for Lines, Points, LinesPoints and ErrorBars. Split makes always a
737 xy_plot. Defaults to 'false'.
738
739 y_label
740 Tells Chart what to use for labels on the standard, left y-axis. If
741 empty, no label is drawn. Default is empty ('').
742
743 y_label2
744 Text of the label on the second, right y-axis (if different from left).
745 If empty, no label is drawn. Default is empty ('').
746
747 y_axes
748 Tells Chart where to place the y-axis. Has no effect on Composite and
749 Pie. Valid values are 'left', 'right' and 'both'. Defaults to 'left'.
750
751 y_grid_lines
752 Draws horizontal grid lines matching up to y ticks if set to 'true'.
753 Default is 'false'.
754
755 y_ticks1
756 Composite only: number of y ticks to use on the first and second y-axis
757 (y_ticks2). Please note that if you just set the 'y_ticks' option,
758 both axes will use that number of y ticks. Both default to undef.
759
760 y_ticks2
761 see "y_ticks1"
762
764 Copyright 2022 David Bonner, Herbert Breunung.
765
766 This program is free software; you can redistribute it and/or modify it
767 under same terms as Perl itself.
768
770 David Bonner, Chart Group,
771
772 Herbert Breunung, <lichtkind@cpan.org>
773
774
775
776perl v5.36.0 2023-01-20 Chart::Manual::Properties(3)