- './static/wheels/chickpy-0.1.0-py3-none-any.whl'
ChickPy meets PyScript
Welcome 👋

This is a demo page where I have been able to publish my super mega premature project ChickPy. Thanks to PyScript I've integrated my chart generator library directly in a web page.

ChickPy is a wannabe grammar parser with the goal of using a custom scripting language to generate charts with several output options and backends. For example without knowing matplotlib or bokeh you can render charts just writing CREATE CHART "my_chart" VALUES [1,2,3] [4,5,6] TYPE SCATTER;.

This web page just intergrates the parser thorugh pyscript just as a demo to explain how it works and the possible integration with other technologies.


Script

Syntax
CREATE CHART "<name>" XVALUES <list_of_values> YVALUES <list_of_values> TYPE <chart_type>;
name: string
list_of_values: list of numbers e.g. [1,2,3,4]
type: string type of chart. Supported values: BAR, SCATTER, LINE, default: LINE

Script Examples
CREATE CHART "foo" YVALUES [4,5,6,7] XVALUES [-1,2,3,4];
CREATE CHART "foo" VALUES [-1,2,3,4] [4,5,6,7] TYPE SCATTER;
CREATE CHART "foo" XVALUES ["a", "b"] YVALUES [4,5] TYPE BAR;