|
|
|
@ -354,12 +354,12 @@ def get_test_routes(app):
|
|
|
|
|
|
|
|
|
|
@app.route('/test/bar/position') |
|
|
|
|
def test_bar_print_values_position(): |
|
|
|
|
bar = StackedBar(print_values=True, print_values_position='top', range=(0, 10), |
|
|
|
|
bar = StackedBar(print_values=True, print_values_position='top', zero=2, |
|
|
|
|
style=styles['default']( |
|
|
|
|
value_font_family='googlefont:Raleway', |
|
|
|
|
value_font_size=46)) |
|
|
|
|
bar.add('1', [1, 3, 3]) |
|
|
|
|
bar.add('2', [4, 5, 6]) |
|
|
|
|
bar.add('1', [1, -2, 3]) |
|
|
|
|
bar.add('2', [4, -5, 6]) |
|
|
|
|
bar.x_labels = [2, 4, 6] |
|
|
|
|
bar.x_labels_major = [4] |
|
|
|
|
return bar.render_response() |
|
|
|
|