Bar Chart

Purpose:

The Bar Chart Portlet provides a 3D image of the number of priorities or severities on file. If the portlet is restricted to a single product, it will report the counts for the components within that product. If it is not restricted, it will report the counts for all products on file.

Screenshots:

If restricted to a single product, the bar chart portlet will report on the components of that product.
If the portlet is restricted to a single product, it will report on counts only for that particular product.

 

An unrestricted bar chart portlet will report on all products.
If the portlet is not restricted to a single product, it will report on counts for all products.

 

The 3D Bar Chart Portlet can report on Severities as well as Priorities.
The portlet can also report on the number of severities.

Installation:

Note: This version will only work with Bugs Dashboard v3.2.2 and up due to the use of the "params" parameter.

 

To use the BarChart Portlet, do the following:

  1. Copy the BarChart.class, BarChartImage$CustomBarRenderer3D.class and BarChartImage.class files from com/wmpnj/bugz/portlets into the deployed web application directory; i.e. /webapps/bugs/WEB-INF/classes/com/wmpnj/bugz/portlets. This may require that you also copy the directory "portlets" if this is the first portlet you are deploying.
  2. Update the dwr.xml file in the deployed web application WEB-INF directory; i.e. /webapps/bugs/WEB-INF. Edit the file with a text editor and add the following after the last </create> statement:
    <create creator="new" javascript="BarChart">
      <param name="class" value="com.wmpnj.bugz.portlets.BarChart" />
    </create>
    
  3. Update the web.xml file in the deployed web application WEB-INF directory; i.e. /webapps/bugs/WEB-INF. Edit the file with a text editor and add the following after the last </servlet> statement, changing the number for the "load-on-startup" value to one more than the last servlet in the list above the point you paste the following:
    <servlet>
      <servlet-name>BarChartImage</servlet-name>
      <servlet-class>com.wmpnj.bugz.portlets.BarChartImage</servlet-class>
      <load-on-startup>26</load-on-startup>
    </servlet>
    

     

    Move further down the file to the last </servlet-mapping> tag and paste the following in:

    <servlet-name>BarChartImage</servlet-name>
      <url-pattern>/barchart</url-pattern>
    </servlet-mapping>
    
  4. Update the appropriate portlets.properties file in the deployed web application classes directory; i.e. /webapps/bugs/WEB-INF/classes/projectA_portlets_en_US.properties or 2080_portlets_en_US.properties:
    • Update the total count of portlets by incrementing the count of portlets by 1
    • Add the following in the position that you want the portlet to appear within your desired column. For example, if you want the Bar Chart to appear at the top of the right-most column in a three column portal, you must insert this ahead of any other portlet whose column is "2". After adding the following block, you MUST then renumber the portlets appropriately, beginning with 0, i.e. "portlet0", "portlet1".
            portlet25.title=Bar Chart
            portlet25.column=1
            portlet25.package=com.wmpnj.bugz.portlets.BarChart
            portlet25.className=BarChart
            portlet25.method=getText
            portlet25.stylesheet=
            portlet25.javascript=
            portlet25.desc=
            portlet25.call=
            portlet25.restrictTo=
            portlet25.params=DWRUtil.getValue("barchart")
      

You may change the title and column, but do NOT change the package, className,or method!

Download:

v3.2 BarChart_v32.zip
v3.2.2 BarChart_v322.zip