Fanstatic packaging of amCharts
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…
>>> from js.amcharts import amstock, amcharts >>> amcharts.need() >>> amstock.need()
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/"
- Initial release.