Branch: refs/heads/release/jon3.3.x Home: https://github.com/rhq-project/rhq Commit: 56c694717e8067de6f42d7169fcf778aa15eafeb https://github.com/rhq-project/rhq/commit/56c694717e8067de6f42d7169fcf778aa1... Author: Jirka Kremser jkremser@redhat.com Date: 2015-01-15 (Thu, 15 Jan 2015)
Changed paths: M modules/enterprise/gui/coregui/src/main/java/org/rhq/coregui/client/inventory/common/graph/graphtype/StackedBarMetricGraphImpl.java
Log Message: ----------- [BZ 1146266] - Metric graph is empty if high, low, and avg values are all the same for every time bucket within the selected time range - if global min and global max of the graph were the same, but low enough that Math.round(max * 0.2) would equal to zero, the fix didn't work. Therefore I am adding this piece of code (making the reserve (using the domain d3 feature) from both top and bottom of the graph at least 1, if percentage based calculation gives 0).
(cherry picked from commit 630cecd97e64ec760b17ea197de2f517966e25bd) Signed-off-by: Libor Zoubek lzoubek@redhat.com
rhq-commits@lists.fedorahosted.org