源程序如下:
<APPLET align=center code=JavaChart height=400 id=JavaChart 
            name=JavaChart width=400><PARAM NAME="ChartType" VALUE="0"><PARAM NAME="RowCount" VALUE="1"><PARAM NAME="ColumnCount" VALUE="3"><PARAM NAME="groupGaps" VALUE="10"><PARAM NAME="leftGaps" VALUE="40"><PARAM NAME="ColumnColor" VALUE="188,0,0,;55,255,255,;125,55,25,;155,155,255,;215,155,215,;155,155,255,;255,255,255,;155,255,155,;155,155,55,;55,55,55,;"><PARAM NAME="Data" VALUE="45,45,180,18,;90,180,90,;90,60,10,;"><PARAM NAME="Diameter" VALUE="150"><PARAM NAME="barWidth" VALUE="20"><PARAM NAME="barGaps" VALUE="12"><PARAM NAME="FontSize" VALUE="15"><PARAM NAME="TitleText" VALUE="statistics (click me)"><PARAM NAME="showLegend" VALUE="true"><PARAM NAME="showControlBar" VALUE="true1"><PARAM NAME="ColumnLabel" VALUE="C++;Basic;Java;"><PARAM NAME="RowLabel" VALUE=";;;"><PARAM NAME="YAxisUnit" VALUE="number"><PARAM NAME="XAxisUnit" VALUE="generic"><PARAM NAME="align" VALUE="center"><PARAM NAME="code" VALUE="JavaChart"><PARAM NAME="height" VALUE="400"><PARAM NAME="id" VALUE="JavaChart"><PARAM NAME="name" VALUE="JavaChart"><PARAM NAME="width" VALUE="400"><PARAM NAME="codeBase" VALUE="http://www.chinajavaworld.com/java/chart/">
            <!--  these must be input --><!--<PARAM NAME=ColumnColor 
            value="blue;red;green;black;cyan;darkGray;gray;lightGray;magenta;orange;pink;yellow;">
            --><!-- thest must be input or not      according to the ChartType
            --><!-- these need not be input if you donot like to  --></APPLET>