Closed weatherwax closed 7 years ago
Yes! But that syntax is already used for multiple traces in one plot.
What about something like this:
my $data1 = [1..5];
my $data2 = [map {rand 10} 1..20 ];
show_plot($data1, $data2);
You are right, I hadn't noticed.
First try. Please see examples/multiple.pl (https://github.com/pablrod/p5-Chart-Plotly/commit/96340b5b40ba41b68392ed531f00aaf5af3a511c)
Great! Just what I was looking for.
It would be convenient to be able to draw several plots in the same html file. For example, with
data => [\@data1, \@data2]