Need help with python-highcharts?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

arnoutaertgeerts
127 Stars 36 Forks Other 146 Commits 24 Opened issues

Description

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

Services available

!
?

Need anything else?

Contributors list

No Data

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:

python
import charts

Second load some example data from the

data
module and some default options from the
options
module: ```python aapl = charts.data.aapl() msft = charts.data.msft() ohlc = charts.data.ohlc()

ohlc['display'] = False

series = [ aapl, msft, ohlc ] ```

And finally plot the chart! Use

show='inline'
if you are in an IPython notebook and
show='tab'
otherwise.
python
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!

Use javascript functions in your option dictionary

If you want to use a javascript function in your python option dictionary to for example dynamically update a tooltip, you should pre and affix your function statements with

@#
. The procedure is explained in this notebook.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.