Purpose
The Pie Chart Widget 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 the product. If it is not restricted, it will report the counts for all products on file.
Screenshots

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 PieChart Widget, do the following:
- Copy the PieChart.class, and PieChartImage.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.
- 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="PieChart"> <param name="class" value="com.wmpnj.bugz.portlets.PieChart" /> </create>
- 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>PieChartImage</servlet-name> <servlet-class>com.wmpnj.bugz.portlets.PieChartImage</servlet-class> <load-on-startup>26</load-on-startup> </servlet>
Move further down the file to the lasttag and paste the following in:
<servlet-name>PieChartImage</servlet-name> <url-pattern>/piechart</url-pattern> </servlet-mapping>
- 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 Pie 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=pie Chart portlet25.column=1 portlet25.package=com.wmpnj.bugz.portlets.PieChart portlet25.className=PieChart portlet25.method=getText portlet25.stylesheet= portlet25.javascript= portlet25.desc= portlet25.call= portlet25.restrictTo= portlet25.params=DWRUtil.getValue("piechart")
You may change the title and column, but do NOT change the package, className, or method
