skip to navigation
skip to content

Not Logged In

js.amcharts 2.6.10

Fanstatic packaging of amCharts

Latest Version: 3.3.1

js.amcharts

Introduction

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.

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
"/some/path/images/"

CHANGES

2.6.10 (2012/04/25)

  • Initial release.
 
File Type Py Version Uploaded on Size
js.amcharts-2.6.10.tar.gz (md5) Source 2012-04-25 119KB
  • Downloads (All Versions):
  • 8 downloads in the last day
  • 48 downloads in the last week
  • 234 downloads in the last month
  • Author: Fanstatic Developers
  • License: BSD
  • Package Index Owner: multani, sdouche
  • Package Index Maintainer: faassen, jw, janjaapdriessen
  • DOAP record: js.amcharts-2.6.10.xml