The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Chart::Plotly::Trace::Bar

SYNOPSIS

        use HTML::Show;
        use Chart::Plotly;
        use Chart::Plotly::Trace::Bar;
        my $bar = Chart::Plotly::Trace::Bar->new(x => [1 .. 5], y => [1 .. 5]);
        
        HTML::Show::show(Chart::Plotly::render_full_html(data => [$bar]));

DESCRIPTION

This file has been autogenerated from the official plotly.js source.

If you like Plotly, please support them: https://plot.ly/ Open source announcement: https://plot.ly/javascript/open-source-announcement/

Full reference: https://plot.ly/javascript/reference/#bar

DISCLAIMER

This is an unofficial Plotly Perl module. Currently I'm not affiliated in any way with Plotly. But I think plotly.js is a great library and I want to use it with perl.

METHODS

TO_JSON

Serialize the trace to JSON. This method should be called only by JSON serializer.

type

Trace type.

ATTRIBUTES

  • marker

  • dx

    Sets the x coordinate step. See `x0` for more info.

  • y0

    Alternate to `y`. Builds a linear space of y coordinates. Use with `dy` where `y0` is the starting coordinate and `dy` the step.

  • _nestedModules

  • x0

    Alternate to `x`. Builds a linear space of x coordinates. Use with `dx` where `x0` is the starting coordinate and `dx` the step.

  • _deprecated

  • r

    For polar chart only.Sets the radial coordinates.

  • width

    Sets the bar width (in position axis units).

  • orientation

    Sets the orientation of the bars. With *v* (*h*), the value of the each bar spans along the vertical (horizontal).

  • x

    Sets the x coordinates.

  • base

    Sets where the bar base is drawn (in position axis units). In *stack* or *relative* barmode, traces that set *base* will be excluded and drawn in *overlay* mode instead.

  • y

    Sets the y coordinates.

  • dy

    Sets the y coordinate step. See `y0` for more info.

  • text

    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.

  • t

    For polar chart only.Sets the angular coordinates.

  • offset

    Shifts the position where the bar is drawn (in position axis units). In *group* barmode, traces that set *offset* will be excluded and drawn in *overlay* mode instead.