Coder Social home page Coder Social logo

pybillboard-js's Introduction

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

pybillboard-js's People

Contributors

eseunghwan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.