public static String getDistributionBarAsHTMLString(final Map<Status, Long> statusTotalCountMap) {
        final StringBuilder htmlString = new StringBuilder();
        final Map<Status, Long> statusMapWithNonZeroValues = getStatusMapWithNonZeroValues(statusTotalCountMap);
        final Long totalValue = getTotalSizes(statusTotalCountMap);
        if (statusMapWithNonZeroValues.size() <= 0) {
            return getUnintialisedBar();
        }
        int partIndex = 1;
        htmlString.append(getParentDivStart());
        for (final Map.Entry<Status, Long> entry : statusMapWithNonZeroValues.entrySet()) {
            if (entry.getValue() > 0) {
                htmlString.append(getPart(partIndex, entry.getKey(), entry.getValue(), totalValue,
                        statusMapWithNonZeroValues.size()));
                partIndex++;
            }
        }
        htmlString.append(HTML_DIV_END);
        return htmlString.toString();
    }
public static String getDistributionBarAsHTMLString ( final Map < Status , Long > statusTotalCountMap ) { final StringBuilder htmlString = new StringBuilder ( ) ; final Map < Status , Long > statusMapWithNonZeroValues = getStatusMapWithNonZeroValues ( statusTotalCountMap ) ; final Long totalValue = getTotalSizes ( statusTotalCountMap ) ; if ( statusMapWithNonZeroValues . size ( ) <= 0 ) { return getUnintialisedBar ( ) ; } int partIndex = 1 ; htmlString . append ( getParentDivStart ( ) ) ; for ( final Map . Entry < Status , Long > entry : statusMapWithNonZeroValues . entrySet ( ) ) { if ( entry . getValue ( ) > 0 ) { htmlString . append ( getPart ( partIndex , entry . getKey ( ) , entry . getValue ( ) , totalValue , statusMapWithNonZeroValues . size ( ) ) ) ; partIndex ++ ; } } htmlString . append ( HTML_DIV_END ) ; return htmlString . toString ( ) ; }
Returns a string with details of status and count .

@param statusTotalCountMap
map with status and count

@return string of format "status1:count,status2:count"