Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pablrod/p5-chart-bokeh
Generate html/javascript charts from perl data using javascript library BokehJS
https://github.com/pablrod/p5-chart-bokeh
Last synced: 3 days ago
JSON representation
Generate html/javascript charts from perl data using javascript library BokehJS
- Host: GitHub
- URL: https://github.com/pablrod/p5-chart-bokeh
- Owner: pablrod
- License: other
- Created: 2016-12-18T23:52:09.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2016-12-23T21:04:11.000Z (almost 8 years ago)
- Last Synced: 2023-08-20T22:53:40.789Z (about 1 year ago)
- Language: Perl
- Size: 9.77 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# NAME
Chart::Bokeh - Generate html/javascript charts from perl data using javascript library BokehJS
# VERSION
version 0.001
# SYNOPSIS
```perl
use Chart::Bokeh qw(show_plot);my $plot_data = {x => [0..10], y => [map {rand 10} 0..10]};
show_plot($plot_data);
```# DESCRIPTION
Generate html/javascript charts from perl data using javascript library BokehJS. The result
is a file that you could see in your favourite browser.The interface is "sub" oriented, but the API is subject to changes.
# FUNCTIONS
## render\_full\_html
### Parameters
- data:
Data to be represented. This early version only accept data as a hashref with keys x, y and arrayrefs as the values:
```perl
{
x => [1, 2, 3],
y => [1, 4, 9]
}
```## show\_plot
Opens the plot in a browser locally
### Parameters
Data to be represented. The format is the same as the parameter data in render\_full\_html
# DISCLAIMER
This is an unofficial Bokeh Perl module. Currently I'm not affiliated in any way with Bokeh, nor Continuum Analytics, Inc.
But I think bokeh.js is a great library and I want to use it with perl. Please see: [http://bokeh.pydata.org/en/latest/](http://bokeh.pydata.org/en/latest/)# AUTHOR
Pablo Rodríguez González
# COPYRIGHT AND LICENSE
This software is Copyright (c) 2016 by Pablo Rodríguez González.
This is free software, licensed under:
```perl
The (three-clause) BSD License
```