Commit 840da49002c93ee78b7db4451c5ec497f0593cdb
Committed by
Paulo Meireles
1 parent
9fc6888a
Exists in
master
and in
29 other branches
[Mezuro] Fixed graph using weird ranges in y axis.
Showing
1 changed file
with
4 additions
and
1 deletions
Show diff stats
plugins/mezuro/lib/mezuro_plugin/helpers/content_viewer_helper.rb
... | ... | @@ -16,7 +16,10 @@ class MezuroPlugin::Helpers::ContentViewerHelper |
16 | 16 | :bg => {:color => 'efefef', :type => 'stripes'}, |
17 | 17 | :line_colors => 'c4a000', |
18 | 18 | :data => values, |
19 | - :axis_with_labels => 'y') | |
19 | + :axis_with_labels => 'y', | |
20 | + :max_value => values.max, | |
21 | + :min_value => values.min | |
22 | + ) | |
20 | 23 | end |
21 | 24 | |
22 | 25 | def self.get_periodicity_option(index) | ... | ... |