simple python wrapper for naver billboard.js
Project description
# pybillboard_js
[![made-with-python](https://img.shields.io/badge/Made%20with-Python-1f425f.svg)](https://www.python.org/) [![Open Source Love](https://badges.frapsoft.com/os/mit/mit.svg?v=102)](https://github.com/ellerbrock/open-source-badge/)
simple python wrapper for naver billboard.js
[<img src=”https://naver.github.io/billboard.js/img/logo/billboard.js.svg” width=”350” alt=”billboard.js”></img>](https://github.com/naver/billboard.js)
## Install ` pip3 install pybillboard-js or python3 -m pip install pybillboard-js `
## Usage ### import billboarder(chart builder) ` from pybillboard_js.billboarder import * `
### generate chart and render ` line_chart = Line(some_dataframe) <- returns lxml.html tree object line_chart.render() <- returns lxml.html tostring result line_chart.export(some_path) <- export render() result to destination file `
### update chart data or options ` line_chart.dataframe = some_other_dataframe line_chart.update() <- returns result like generate chart `
##### or simply use all scripts at once ` Line(some_dataframe).update("dataframe", some_other_dataframe).export(some_path) `
## Available Chart Types ### simple chart types ##### Line <img src=”https://github.com/eseunghwan/pybillboard-js/blob/master/demo/images/Line.png”></img> ` Line(some_dataframe).export(some_path) ` ##### Area <img src=”https://github.com/eseunghwan/pybillboard-js/blob/master/demo/images/Area.png”></img> ` Area(some_dataframe).export(some_path) ` ##### Bar <img src=”https://github.com/eseunghwan/pybillboard-js/blob/master/demo/images/Bar.png”></img> ` Bar(some_dataframe).export(some_path) ` ##### Scatter <img src=”https://github.com/eseunghwan/pybillboard-js/blob/master/demo/images/Scatter.png”></img> ` Scatter(some_dataframe).export(some_path) ` ##### Pie <img src=”https://github.com/eseunghwan/pybillboard-js/blob/master/demo/images/Pie.png”></img> ` Pie(some_dataframe).export(some_path) ` ##### Bubble <img src=”https://github.com/eseunghwan/pybillboard-js/blob/master/demo/images/Bubble.png”></img> ` Bubble(some_dataframe).export(some_path) `
### stacked charts ##### Area Stack <img src=”https://github.com/eseunghwan/pybillboard-js/blob/master/demo/images/Area_stack.png”></img> ` Area(some_dataframe, stack = True).export(some_path) ` ##### Bar Stack <img src=”https://github.com/eseunghwan/pybillboard-js/blob/master/demo/images/Bar_stack.png”></img> ` Bar(some_dataframe, stack = True).export(some_path) `
### advanced chart types ##### SpLine <img src=”https://github.com/eseunghwan/pybillboard-js/blob/master/demo/images/SpLine.png”></img> ` SpLine(some_dataframe).export(some_path) ` ##### AreaSpLine <img src=”https://github.com/eseunghwan/pybillboard-js/blob/master/demo/images/AreaSpLine.png”></img> ` AreaSpLine(some_dataframe).export(some_path) ` ##### Step <img src=”https://github.com/eseunghwan/pybillboard-js/blob/master/demo/images/Step.png”></img> ` Step(some_dataframe).export(some_path) ` ##### AreaStep <img src=”https://github.com/eseunghwan/pybillboard-js/blob/master/demo/images/AreaStep.png”></img> ` AreaStep(some_dataframe).export(some_path) ` ##### AreaLineRange <img src=”https://github.com/eseunghwan/pybillboard-js/blob/master/demo/images/AreaLineRange.png”></img> ` AreaLineRange(some_dataframe).export(some_path) ` ##### AreaSpLineRange <img src=”https://github.com/eseunghwan/pybillboard-js/blob/master/demo/images/AreaSpLineRange.png”></img> ` AreaSpLineRange(some_dataframe).export(some_path) ` ##### Donut <img src=”https://github.com/eseunghwan/pybillboard-js/blob/master/demo/images/Donut.png”></img> ` Donut(some_dataframe).export(some_path) ` ##### Gauge <img src=”https://github.com/eseunghwan/pybillboard-js/blob/master/demo/images/Gauge.png”></img> ` Gauge(some_dataframe).export(some_path) ` ##### Radar <img src=”https://github.com/eseunghwan/pybillboard-js/blob/master/demo/images/Radar.png”></img> ` Radar(some_dataframe).export(some_path) `
### and multiple combination <img src=”https://github.com/eseunghwan/pybillboard-js/blob/master/demo/images/MultipleType.png”></img> ` MultipleType(some_dataframe, dictionary_style_type_info).export(some_path) `
## Demo You can find demo on [demo](https://github.com/eseunghwan/pybillboard_js/tree/master/demo)
## Bug report and Q&A If you find bugs or have questions, please notice [issues](https://github.com/eseunghwan/pybillboard_js/issues) on Github
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for pybillboard_js-0.1.0a7.post20180801.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26bc9d6a17b213ef4ab36038d2e592d5181abcffdda0e52d7d44f11fdd22f1cc |
|
MD5 | 363578cec860a7fdb279505552da918f |
|
BLAKE2b-256 | 11182ed14a05330b78b3cc069a3c5b13426cc54e9269877f2bd6de1209ba56f6 |
Hashes for pybillboard_js-0.1.0a7.post20180801-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a36c4fec02a2f93185926fc78f3350d82e55bb7a8d0779e042114d9acb74dce6 |
|
MD5 | 190229a1cbc0ac7a02c996c2ea821cf5 |
|
BLAKE2b-256 | 0291004e2f6650cffaeb1aa25613d88a05971a90e1fc79a7acfdfb3c35a48749 |