Skip to main content

Fanstatic packaging of amCharts

Project description



This library packages amCharts for fanstatic. It provides both the Chart and Stock Javascript chart libraries.

This requires integration between your web framework and fanstatic, and making sure that the original resources (shipped in the resources directory in js.amcharts) are published to some URL.

You can find the repository for this package at

How to use?

You can import amcharts or amstock from js.amcharts and need it where you want these resources to be included on a page:

  • amcharts will provide only the Chart library…

  • while amstock will provide both the Chart and Stock libraries.

    >>> from js.amcharts import amstock, amcharts
    >>> amcharts.need()
    >>> amstock.need()

amCharts needs a few images sometimes, and you need to pass the path to the images in the Javascript code as follow:

chart = new AmCharts.AmSerialChart();
chart.pathToImages = "/lib/samples/javascript/images/";

Since this path depends on your server configuration and Fanstatic configuration, you can use the convient find_images_url from this library:

>>> from js.amcharts import find_images_url
>>> find_images_url() # doctest: +SKIP


3.3.1 (2013/11/22)

  • Update to 3.3.1.

2.6.10 (2012/04/25)

  • Initial release.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
js.amcharts-3.3.1.tar.gz (1.0 MB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page