Skip to content

kdebrab/python-highcharts

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python-highcharts

Use the excellent highcharts/highstock library in Python or even in an IPython notebook as an interactive alternative to maplotlib.

Install

pip install charts

Quick start

First import the library:

import charts

Second load some example data from the data module and some default options from the options module:

aapl = charts.data.aapl()
msft = charts.data.msft()
ohlc = charts.data.ohlc()

ohlc['display'] = False

series = [
    aapl,
    msft,
    ohlc
]
options = charts.options.default()

And finally plot the chart! Use show='inline' if you are in an IPython notebook and show='tab' otherwise.

charts.plot(series, options, height=500, stock=True, show='inline')

Don't be affraid to play with the chart, it's interactive :) Try typing in OHLC in the variable selector or viewing a different time period by squeezing the bottom scroll bar!

For more, checkout this notebook!

About

Use highchart.js to make plots in Python and IPython notebooks

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 47.6%
  • CSS 21.0%
  • HTML 16.9%
  • JavaScript 14.5%