NAME

Chart::GGPlot::Backend::Plotly - Plotly backend for Chart::GGPlot

VERSION

version 0.0003

DESCRIPTION

The Plotly backend for Chart::GGPlot.

METHODS

ggplotly

ggplotly($ggplot)

Returns a Chart::Plotly object.

show

show($ggplot, HashRef $opts={})

Show the plot in web browser.

On POSIX systems Chart::Plotly internally uses Browser::Open to open the browser. Browser::Open has a default list of browsers and tries them one by one. You may want to override that behavior by set env var BROWSER to force a browser command on your system, for example,

export BROWSER=chromium-browser

save

save($ggplot, $filename, HashRef $opts={})

Export the plot to a static image file. This internally uses Chart::Plotly::Image::Orca.

Below options are supported for $opts:

  • width

  • height

iplot

iplot($ggplot, HashRef $opts={})

Generate Plotly plot for IPerl in Jupyter notebook.

SEE ALSO

https://plot.ly/|Plotly

Chart::GGPlot::Backend

Chart::Plotly, Chart::Plotly::Image::Orca

AUTHOR

Stephan Loyd <sloyd@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2019 by Stephan Loyd.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.