Mercurial > hg > numerics
diff numerics/bar.py @ 142:6747ce2bb090
more stubbing; almost there
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Mon, 30 Mar 2015 12:43:36 -0700 |
parents | 310290f95787 |
children | 3ca7289b09d9 |
line wrap: on
line diff
--- a/numerics/bar.py Mon Mar 30 12:33:26 2015 -0700 +++ b/numerics/bar.py Mon Mar 30 12:43:36 2015 -0700 @@ -38,7 +38,10 @@ """ # TODO: abstract this to a plot class - template = None # TODO + template = tempita.Template.from_filename(bar_template) + bar_chart = template.substitute(title=title or '', + d3=d3, + data=data) class BarChartParser(ManipulationParser): """command line options parser for bar charts"""