NAME

Chart::Plotly::Image::Orca::Client - Export static images of Plotly charts using orca server

VERSION

version 0.042

SYNOPSIS

#!/usr/bin/env perl 

use strict;
use warnings;
use utf8;

use Chart::Plotly::Plot;
use Chart::Plotly::Trace::Scatter;
use Chart::Plotly::Image::Orca::Client;

my $plot = Chart::Plotly::Plot->new(traces => [ Chart::Plotly::Trace::Scatter->new( x => [ 1 .. 5 ], y => [ 1 .. 5 ] )]);

Chart::Plotly::Image::Orca::Client::save_image(plot => $plot, file => "TestOrca.png", server => "http://[::]:9999");

DESCRIPTION

This module generate static images of Plotly charts without a browser using a Orca server.

The server must be up and running before using this module. You can get an Orca server using a docker image or just installing and running Orca yourself. There are some instructions in Chart::Plotly::Image::Orca

FUNCTIONS

save_image

save_image(plot => $plot, file => "TestOrca.png", server => "http://[::]:9999");

Export Chart::Plotly::Plot as a static image file.

plot

Object to export

file

Filename (with or without path) to export

server

Url where the server is listening

BUGS

Please report any bugs or feature requests via github: https://github.com/pablrod/p5-Chart-Plotly/issues

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.

If you like plotly.js please consider supporting them purchasing a pro subscription: https://plot.ly/products/cloud/

SEE ALSO

Alien::Plotly::Orca

AUTHOR

Pablo Rodríguez González <pablo.rodriguez.gonzalez@gmail.com>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2022 by Pablo Rodríguez González.

This is free software, licensed under:

The MIT (X11) License