=== modified file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-visualizer/scripts/eventchart.js' --- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-visualizer/scripts/eventchart.js 2015-03-23 12:48:05 +0000 +++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-visualizer/scripts/eventchart.js 2015-03-28 16:52:19 +0000 @@ -3146,7 +3146,7 @@ numberOfItems = titles.length, numberOfChars, totalItemLength = numberOfItems * itemLength, - minLength = 5, + //minLength = 5, maxLength = support.prototype.array.getMaxLength(titles), fallbackLength = 10, maxWidth = ns.app.centerRegion.getWidth(), @@ -3160,7 +3160,7 @@ fallbackLength = len < fallbackLength ? len : fallbackLength; - for (var i = len, width; i >= minLength; i--) { + for (var i = len, width; i > 0; i--) { newTitles = []; for (var j = 0, title, numberOfChars, newTitle; j < titles.length; j++) { === modified file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-visualizer/scripts/chart.js' --- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-visualizer/scripts/chart.js 2015-03-23 12:48:05 +0000 +++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-visualizer/scripts/chart.js 2015-03-28 16:52:19 +0000 @@ -2780,7 +2780,7 @@ numberOfItems = titles.length, numberOfChars, totalItemLength = numberOfItems * itemLength, - minLength = 5, + //minLength = 5, maxLength = support.prototype.array.getMaxLength(titles), fallbackLength = 10, maxWidth = ns.app.centerRegion.getWidth(), @@ -2794,7 +2794,7 @@ fallbackLength = len < fallbackLength ? len : fallbackLength; - for (var i = len, width; i >= minLength; i--) { + for (var i = len, width; i > 0; i--) { newTitles = []; for (var j = 0, title, numberOfChars, newTitle; j < titles.length; j++) { === modified file 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/plugin/chart.js' --- dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/plugin/chart.js 2015-03-23 12:48:05 +0000 +++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/plugin/chart.js 2015-03-28 16:52:19 +0000 @@ -2779,7 +2779,7 @@ numberOfItems = titles.length, numberOfChars, totalItemLength = numberOfItems * itemLength, - minLength = 5, + //minLength = 5, maxLength = support.prototype.array.getMaxLength(titles), fallbackLength = 10, maxWidth = ns.app.centerRegion.getWidth(), @@ -2793,7 +2793,7 @@ fallbackLength = len < fallbackLength ? len : fallbackLength; - for (var i = len, width; i >= minLength; i--) { + for (var i = len, width; i > 0; i--) { newTitles = []; for (var j = 0, title, numberOfChars, newTitle; j < titles.length; j++) { === modified file 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/plugin/eventchart.js' --- dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/plugin/eventchart.js 2015-03-23 12:48:05 +0000 +++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/plugin/eventchart.js 2015-03-28 16:52:19 +0000 @@ -3146,7 +3146,7 @@ numberOfItems = titles.length, numberOfChars, totalItemLength = numberOfItems * itemLength, - minLength = 5, + //minLength = 5, maxLength = support.prototype.array.getMaxLength(titles), fallbackLength = 10, maxWidth = ns.app.centerRegion.getWidth(), @@ -3160,7 +3160,7 @@ fallbackLength = len < fallbackLength ? len : fallbackLength; - for (var i = len, width; i >= minLength; i--) { + for (var i = len, width; i > 0; i--) { newTitles = []; for (var j = 0, title, numberOfChars, newTitle; j < titles.length; j++) { === modified file 'dhis-2/dhis-web/dhis-web-dashboard-integration/src/main/webapp/dhis-web-dashboard-integration/plugin/chart.js' --- dhis-2/dhis-web/dhis-web-dashboard-integration/src/main/webapp/dhis-web-dashboard-integration/plugin/chart.js 2015-03-23 12:48:05 +0000 +++ dhis-2/dhis-web/dhis-web-dashboard-integration/src/main/webapp/dhis-web-dashboard-integration/plugin/chart.js 2015-03-28 16:52:19 +0000 @@ -2772,7 +2772,7 @@ numberOfItems = titles.length, numberOfChars, totalItemLength = numberOfItems * itemLength, - minLength = 5, + //minLength = 5, maxLength = support.prototype.array.getMaxLength(titles), fallbackLength = 10, maxWidth = ns.app.centerRegion.getWidth(), @@ -2786,7 +2786,7 @@ fallbackLength = len < fallbackLength ? len : fallbackLength; - for (var i = len, width; i >= minLength; i--) { + for (var i = len, width; i > 0; i--) { newTitles = []; for (var j = 0, title, numberOfChars, newTitle; j < titles.length; j++) { === modified file 'dhis-2/dhis-web/dhis-web-dashboard-integration/src/main/webapp/dhis-web-dashboard-integration/plugin/eventchart.js' --- dhis-2/dhis-web/dhis-web-dashboard-integration/src/main/webapp/dhis-web-dashboard-integration/plugin/eventchart.js 2015-03-23 12:48:05 +0000 +++ dhis-2/dhis-web/dhis-web-dashboard-integration/src/main/webapp/dhis-web-dashboard-integration/plugin/eventchart.js 2015-03-28 16:52:19 +0000 @@ -3139,7 +3139,7 @@ numberOfItems = titles.length, numberOfChars, totalItemLength = numberOfItems * itemLength, - minLength = 5, + //minLength = 5, maxLength = support.prototype.array.getMaxLength(titles), fallbackLength = 10, maxWidth = ns.app.centerRegion.getWidth(), @@ -3153,7 +3153,7 @@ fallbackLength = len < fallbackLength ? len : fallbackLength; - for (var i = len, width; i >= minLength; i--) { + for (var i = len, width; i > 0; i--) { newTitles = []; for (var j = 0, title, numberOfChars, newTitle; j < titles.length; j++) {