Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pybillboard_js-0.1.0a8.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

pybillboard_js-0.1.0a8-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file pybillboard_js-0.1.0a8.tar.gz.

File metadata

  • Download URL: pybillboard_js-0.1.0a8.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/38.4.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.4

File hashes

Hashes for pybillboard_js-0.1.0a8.tar.gz
Algorithm Hash digest
SHA256 a7e36475973b3fe5ebb2e19110ccbb5fa16cc7c9f12ba2bf20bab13b729c860d
MD5 d7d66245e93ea70167e11fe148788ea0
BLAKE2b-256 ed9ce6e173b946d35317e0ad0c324878a539ab6c4dd1936429fc457d26ac22c5

See more details on using hashes here.

File details

Details for the file pybillboard_js-0.1.0a8-py3-none-any.whl.

File metadata

  • Download URL: pybillboard_js-0.1.0a8-py3-none-any.whl
  • Upload date:
  • Size: 8.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/38.4.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.4

File hashes

Hashes for pybillboard_js-0.1.0a8-py3-none-any.whl
Algorithm Hash digest
SHA256 9301f5465fbc81f73486c4b8a191e1578e3fedc5df0617d0f4b455baad12baa3
MD5 3a8032f35d1640dafca67bf57d22afa2
BLAKE2b-256 c9dcb6b03f63ad9f191fe8a45b1a1b4aa2a479f9a126ab771b602462e500a309

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page