Branch: refs/heads/master Home: https://github.com/rhq-project/rhq Commit: 630cecd97e64ec760b17ea197de2f517966e25bd https://github.com/rhq-project/rhq/commit/630cecd97e64ec760b17ea197de2f51796... 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).