Skip to content

eseunghwan/pybillboard-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pybillboard_js

made-with-python Open Source Love

simple python wrapper for naver billboard.js

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

Line(some_dataframe).export(some_path)
Area

Area(some_dataframe).export(some_path)
Bar

Bar(some_dataframe).export(some_path)
Scatter

Scatter(some_dataframe).export(some_path)
Pie

Pie(some_dataframe).export(some_path)
Bubble

Bubble(some_dataframe).export(some_path)

stacked charts

Area Stack

Area(some_dataframe, stack = True).export(some_path)
Bar Stack

Bar(some_dataframe, stack = True).export(some_path)

advanced chart types

SpLine

SpLine(some_dataframe).export(some_path)
AreaSpLine

AreaSpLine(some_dataframe).export(some_path)
Step

Step(some_dataframe).export(some_path)
AreaStep

AreaStep(some_dataframe).export(some_path)
AreaLineRange

AreaLineRange(some_dataframe).export(some_path)
AreaSpLineRange

AreaSpLineRange(some_dataframe).export(some_path)
Donut

Donut(some_dataframe).export(some_path)
Gauge

Gauge(some_dataframe).export(some_path)
Radar

Radar(some_dataframe).export(some_path)

and multiple combination

MultipleType(some_dataframe, dictionary_style_type_info).export(some_path)

Demo

You can find demo on demo

Bug report and Q&A

If you find bugs or have questions, please notice issues on Github

About

simple python wrapper for naver billboard.js

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages