|
|
@ -146,12 +146,10 @@ NB: Now the css rules are prefixed by an unique id, to prevent collisions when i |
|
|
|
with open(custom_css_file, 'w') as f: |
|
|
|
with open(custom_css_file, 'w') as f: |
|
|
|
f.write(custom_css) |
|
|
|
f.write(custom_css) |
|
|
|
config = pygal.Config(fill=True, interpolate='cubic') |
|
|
|
config = pygal.Config(fill=True, interpolate='cubic') |
|
|
|
config.css.append(custom_css_file) |
|
|
|
config.css.append('file://' + custom_css_file) |
|
|
|
chart = pygal.StackedLine(config) |
|
|
|
chart = pygal.StackedLine(config) |
|
|
|
chart.add('A', [1, 3, 5, 16, 13, 3, 7]) |
|
|
|
chart.add('A', [1, 3, 5, 16, 13, 3, 7]) |
|
|
|
chart.add('B', [5, 2, 3, 2, 5, 7, 17]) |
|
|
|
chart.add('B', [5, 2, 3, 2, 5, 7, 17]) |
|
|
|
chart.add('C', [6, 10, 9, 7, 3, 1, 0]) |
|
|
|
chart.add('C', [6, 10, 9, 7, 3, 1, 0]) |
|
|
|
chart.add('D', [2, 3, 5, 9, 12, 9, 5]) |
|
|
|
chart.add('D', [2, 3, 5, 9, 12, 9, 5]) |
|
|
|
chart.add('E', [7, 4, 2, 1, 2, 10, 0]) |
|
|
|
chart.add('E', [7, 4, 2, 1, 2, 10, 0]) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|