Skip to content

bblay/PyHighcharts

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

93 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyHighcharts

This version of PyHighcharts is going to be replaced by v2.0 soon, check out the dev branch: PyHighcharts-dev!

A convenient wrapper for Highchart generation procedurally or on the command-line to browser output.

For documentation on highcharts visit: Highcharts API

And remember Highcharts is only free for non-commercial use: Pop over to Highcharts Licensing for more info!

General Usage

Using Highcharts is so simple: You can even do it on the command line!

from PyHighcharts import Highchart
H = Highchart(width=500, height=500, renderTo='container')
data = [1,2,3,4,5,6,7,8,9,10]
H.add_data_set(data,type='line',name='test_data')
H.show()

This show() function generates a temporary HTML file and opens up the chart for viewing in your default browser

This Highcharts codebase was primarily developed for use within templating: And that is easy to do also!

<html>
<head>
	{ Highcharts.need() }
</head>
<body>
<div id='container'></div>
<script>
	{ test_highchart_content }
</script>
</body>
</html>

All you need to do is pass in the highcharts pre-generated with the generate() function to your templates within some script tags (And don't forget to correctly name the id's of the divs!)

Currently Supoorts

  • Line
  • Spline
  • Area
  • AreaRange
  • AreaSpline
  • AreaSplineRange
  • Gauge
  • Bar
  • Column
  • Scatter
  • ColumnRange
  • Pie
  • Series

Examples

There is a few examples within /highcharts/examples.py to try out

About

Python Highcharts Interface

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%