Browse Source

simple graph with 'show_only_major_dots' option

pull/116/head
Clément Plasse 11 years ago
parent
commit
aa344741e3
  1. 10
      demo/moulinrouge/tests.py

10
demo/moulinrouge/tests.py

@ -419,4 +419,14 @@ def get_test_routes(app):
line.x_labels = map(str, range(11))
return line.render_response()
@app.route('/test/major_dots')
def test_major_dots():
line = Line(x_labels_major_every=3, show_only_major_dots=True)
line.add('test', range(12))
line.x_labels = [
'lol', 'lol1', 'lol2', 'lol3', 'lol4', 'lol5',
'lol6', 'lol7', 'lol8', 'lol9', 'lol10', 'lol11']
line.x_labels_major = ['lol3']
return line.render_response()
return filter(lambda x: x.startswith('test'), locals())

Loading…
Cancel
Save