📄 com.estarcom.xbean.chart.piechartapplet.html
字号:
<!-- saved from url=(0022)http://internet.e-mail -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"><!--NewPage--><html><head><!-- Generated by javadoc on Fri Jul 21 14:34:23 CEST 2000 --><title> Class com.estarcom.xbean.chart.PieChartApplet</title></head><body><a name="_top_"></a><pre><h1> Class com.estarcom.xbean.chart.PieChartApplet</h1><hr><dl> <dt> public class <b>PieChartApplet</b> <dt> extends ChartApplet</dl><font face="verdana, arial" size=-1"> The pie chart applet enables you to plug a pie chart directly into your html page and customize it by setting parameters in the applet tag.<p> A simple piechart applet can be created with the following tag: <font size=+0> <pre> <applet com.estarcom.xbean.chart.PieChartApplet width=300 height=200 archive=chart.jar> <param name="sampleValues" value="100,200,300,400,500"> <applet></pre> </font> and for the JDK 1.02 compatible chart, use the following tag: <font size=+0> <pre> <applet com.estarcom.xbean.chart102.PieChartApplet width=300 height=200> <param name="sampleValues" value="100,200,300,400,500"> <applet></pre> </font> To set a chart value or feature, use the following tag<p> <font size=+0> <code> <param name="parameterName" value="valueToUse"> </code> </font> </font> <p><br> <a name="features"></a> <table BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=700> <tr> <td colspan=3> <font face="verdana, arial" size=+1><b>SAMPLE VALUES</b></font> </td> </tr> <tr> <td bgcolor="#cccccc"><font face="verdana, arial" size=-1><b>Parameter</b></font></td> <td bgcolor="#cccccc"><font face="verdana, arial" size=-1><b>Type</b></font></td> <td bgcolor="#cccccc"><font face="verdana, arial" size=-1><b>Description</b></font></td> </tr> <tr> <td valign=top><a name="sampleValues"></a><font face="verdana, arial" size=-1>sampleValues</font></td> <td valign=top><font face="verdana, arial" size=-1><a href="#decimal_array">decimal array</a></font></td> <td valign=top><font face="verdana, arial" size=-1> Sets the sample values for the first data series. If the sampleCount is not set the number of samples in the chart will be the number of values set.<br> <param name="sampleValues" value="10.5, 30.5, 20, 5.1234"> </font> </td> </tr> <tr> <td bgcolor="#e0e0e0" valign=top><a name="sampleCount"></a><font face="verdana, arial" size=-1>sampleCount</font></td> <td bgcolor="#e0e0e0" valign=top><font face="verdana, arial" size=-1><a href="#integer">integer</a></font></td> <td bgcolor="#e0e0e0" valign=top><font face="verdana, arial" size=-1> Sets the number of samples in the chart. This will override the number of values set with the sampleValues parameter.<br> <param name="sampleCount" value=5> </font> </td> </tr> <tr> <td valign=top><a name="seriesCount"></a><font face="verdana, arial" size=-1>seriesCount</font></td> <td valign=top><font face="verdana, arial" size=-1><a href="#integer">integer</a></font></td> <td valign=top><font face="verdana, arial" size=-1> Sets the number of data series in the chart. You must set this to read more than one series of data (using the sampleValues_N parameter).<br> <param name="seriesCount" value=4> </font> </td> </tr> <tr> <td bgcolor="#e0e0e0" valign=top><a name="sampleValues_N"></a><font face="verdana, arial" size=-1>sampleValues_N</font></td> <td bgcolor="#e0e0e0" valign=top><font face="verdana, arial" size=-1><a href="#decimal_array">decimal array</a></font></td> <td bgcolor="#e0e0e0" valign=top><font face="verdana, arial" size=-1> Sets the sample values for the specified data series.<br> <param name="seriesCount" value=4><br> <param name="sampleValues_0" value="200,100,300,250,400"><br> <param name="sampleValues_1" value="300,150,200,150,300"><br> <param name="sampleValues_2" value="100,50,350,300,350"><br> <param name="sampleValues_3" value="400,200,100,400,200"><br> </font> </td> </tr> <tr> <td colspan=3> <br> <font face="verdana, arial" size=+1><b>LABELS AND FONTS</b></font> </td> </tr> <tr> <td bgcolor="#cccccc"><font face="verdana, arial" size=-1><b>Parameter</b></font></td> <td bgcolor="#cccccc"><font face="verdana, arial" size=-1><b>Type</b></font></td> <td bgcolor="#cccccc"><font face="verdana, arial" size=-1><b>Description</b></font></td> </tr> <tr> <td valign=top><a name="chartTitle"></a><font face="verdana, arial" size=-1>chartTitle</font></td> <td valign=top><font face="verdana, arial" size=-1><a href="#string">string</a></font></td> <td valign=top><font face="verdana, arial" size=-1> Sets the title of the chart. The title will be displayed at the top of the chart. To set the title font use the titleFont parameter.<br> <param name="chartTitle" value="This is my title"> </font> </td> </tr> <tr> <td bgcolor="#e0e0e0" valign=top><a name="sampleLabels"></a><font face="verdana, arial" size=-1>sampleLabels</font></td> <td bgcolor="#e0e0e0" valign=top><font face="verdana, arial" size=-1><a href="#string_array">string array</a></font></td> <td bgcolor="#e0e0e0" valign=top><font face="verdana, arial" size=-1> Sets the sample labels for this chart. The sample labels will appear in the legend by setting the legendOn parameter to true, or floating above each pie slice when you move the mouse over if you set the sampleLabelsOn parameter to true.<br> <param name="sampleLabels" value="monday, tuesday, wednesday, thursday, friday"> </font> </td> </tr> <tr> <td valign=top><a name="seriesLabels"></a><font face="verdana, arial" size=-1>seriesLabels</font></td> <td valign=top><font face="verdana, arial" size=-1><a href="#string_array">string array</a></font></td> <td valign=top><font face="verdana, arial" size=-1> Sets the series labels for this chart. The series labels will appear in the legend when multiple data series are used and legendOn is turned on.<br> <param name="seriesLabels" value="1997, 1998, 1999"> </font> </td> </tr> <tr> <td bgcolor="#e0e0e0" valign=top><a name="legendLabels"></a><font face="verdana, arial" size=-1>legendLabels</font></td> <td bgcolor="#e0e0e0" valign=top><font face="verdana, arial" size=-1><a href="#string_array">string array</a></font></td> <td bgcolor="#e0e0e0" valign=top><font face="verdana, arial" size=-1> Overrides the default labels in the legend. The default labels are either the sampleLabels (if 1 data series is used) or the seriesLabels (if multiple data series is used).<br> <param name="legendLabels" value="1997, 1998, 1999"><br> <param name="legendLabels" value="sampleLabels"><br> <param name="legendLabels" value="seriesLabels"> </font> </td> </tr> <tr> <td valign=top><a name="labelDelimiter"></a><font face="verdana, arial" size=-1>labelDelimiter</font></td> <td valign=top><font face="verdana, arial" size=-1><a href="#string">string</a></font></td> <td valign=top><font face="verdana, arial" size=-1> By default the sampleLabels, seriesLabel, and legendLabels use comma (,) as a field delimiter. Use this parameter to control the label delimiter if you need a comma in the labels to be displayed.<br> <param name="labelDelimiter" value=":"> </font> </td> </tr> <tr> <td bgcolor="#e0e0e0" valign=top><a name="valueLabelPrefix"></a><font face="verdana, arial" size=-1>valueLabelPrefix</font></td> <td bgcolor="#e0e0e0" valign=top><font face="verdana, arial" size=-1><a href="#string">string</a></font></td> <td bgcolor="#e0e0e0" valign=top><font face="verdana, arial" size=-1> Adds a prefix before all value labels. You can also set the prefix for individual data series by adding the series index.<br> <param name="valueLabelPrefix" value="$"><br> <param name="valueLabelPrefix_0" value="
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -