comparison numerics/bar.py @ 147:b8a7604adf6f

what i meant
author Jeff Hammel <k0scist@gmail.com>
date Sun, 12 Apr 2015 19:18:28 -0700
parents 3ca7289b09d9
children 279f5ae33564
comparison
equal deleted inserted replaced
146:3ca7289b09d9 147:b8a7604adf6f
22 22
23 # template info 23 # template info
24 # TODO: own module 24 # TODO: own module
25 here = os.path.dirname(os.path.abspath(__file__)) 25 here = os.path.dirname(os.path.abspath(__file__))
26 templates = os.path.join(here, 'templates') 26 templates = os.path.join(here, 'templates')
27 bar_template = os.path.join(here, 'bar.d3.html') 27 bar_template = os.path.join(templates, 'bar.d3.html')
28 with open(os.path.join(here, 'js', 'd3.v3.min.js')) as f: 28 with open(os.path.join(here, 'js', 'd3.v3.min.js')) as f:
29 d3 = f.read() 29 d3 = f.read()
30 30
31 31
32 def bar_chart(data, output, title=None): 32 def bar_chart(data, output, title=None):