Chart::Plotly::Image::Orca::Client - Export static images of Plotly charts using orca server
version 0.042
#!/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");
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
save_image(plot => $plot, file => "TestOrca.png", server => "http://[::]:9999");
Export Chart::Plotly::Plot as a static image file.
Object to export
Filename (with or without path) to export
Url where the server is listening
Please report any bugs or feature requests via github: https://github.com/pablrod/p5-Chart-Plotly/issues
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/
Alien::Plotly::Orca
Pablo Rodríguez González <pablo.rodriguez.gonzalez@gmail.com>
This software is Copyright (c) 2022 by Pablo Rodríguez González.
This is free software, licensed under:
The MIT (X11) License
To install Chart::Plotly, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Chart::Plotly
CPAN shell
perl -MCPAN -e shell install Chart::Plotly
For more information on module installation, please visit the detailed CPAN module installation guide.