Workbench module that present number series as lines.
First, get up and running:
tox
This will download dependencies and run tests. It should pass.
To add a feature on the Python side:
- Write a test in
tests/
- Run
tox
to prove it breaks - Edit
linechart.py
to make the test pass - Run
tox
to prove it works - Commit and submit a pull request
To add a feature on the HTML/JavaScript side:
- Edit
linechart.html
- Test by importing the module from this directory into Workbench
- Commit and submit a pull request
To develop continuously on Workbench:
- Check this code out in a sibling directory to your checked-out Workbench code
- Start Workbench with
bin/dev start
- In a separate tab in the Workbench directory, run
bin/dev develop-module linechart
- Edit this code; the module will be reloaded in Workbench immediately
- When viewing the chart in Workbench, modify parameters to re-render JSON and refresh the page to load new HTML