?? piechart.html
字號:
<td colspan=2><font face="verdana,arial,helvetica" size=-1><b>seriesLabelColors</b></font></td></tr>
<tr><td valign=top width=40%><font face="verdana, arial" size=-1>
Sets the colors of the series labels in the legend.
</td>
<td valign=top width=60%><font face="verdana, arial" size=-2>
<param name="seriesLabelColors" value="red, #7f0000, blue"><hr size=1 color="#c0c0c0">
setSeriesLabelColor(0, Color.red);<br>
setSeriesLabelColor(1, new Color(0x7f0000));<br>
setSeriesLabelColor(2, Color.blue);<hr size=1 color="#c0c0c0">
seriesLabelColors=red,%237f0000,blue
</font>
</td>
</tr>
<tr bgcolor="#e0e0e0">
<a name="legendOn"></a>
<td colspan=2><font face="verdana,arial,helvetica" size=-1><b>legendOn</b></font></td></tr>
<tr><td valign=top width=40%><font face="verdana, arial" size=-1>
Turns on the legend. The legend displays the sample labels or series labels
depending on the value of the seriesCount parameter.
</td>
<td valign=top width=60%><font face="verdana, arial" size=-2>
<param name="legendOn" value=true><hr size=1 color="#c0c0c0">
setLegendOn(true);<hr size=1 color="#c0c0c0">
legendOn=true
</font>
</td>
</tr>
<tr bgcolor="#e0e0e0">
<a name="legendPosition"></a>
<td colspan=2><font face="verdana,arial,helvetica" size=-1><b>legendPosition</b></font></td></tr>
<tr><td valign=top width=40%><font face="verdana, arial" size=-1>
Sets the legend position. Possible positions are right, left, top,
and bottom. Default position is right.
</td>
<td valign=top width=60%><font face="verdana, arial" size=-2>
<param name="legendPosition" value="right"><br>
<param name="legendPosition" value="left"><br>
<param name="legendPosition" value="top"><br>
<param name="legendPosition" value="bottom"><hr size=1 color="#c0c0c0">
setLegendPosition(PieChart.RIGHT);<br>
setLegendPosition(PieChart.LEFT);<br>
setLegendPosition(PieChart.TOP);<br>
setLegendPosition(PieChart.BOTTOM);<hr size=1 color="#c0c0c0">
legendPosition=left
</font>
</td>
</tr>
<tr bgcolor="#e0e0e0">
<a name="legendLabels"></a>
<td colspan=2><font face="verdana,arial,helvetica" size=-1><b>legendLabels</b></font></td></tr>
<tr><td valign=top width=40%><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.
</td>
<td valign=top width=60%><font face="verdana, arial" size=-2>
<param name="legendLabels" value="2000, 2001, 2002"><br>
<param name="legendLabels" value="sampleLabels"><br>
<param name="legendLabels" value="seriesLabels"><hr size=1 color="#c0c0c0">
setLegendLabels(new String[] {"2000","2001","2002"});<hr size=1 color="#c0c0c0">
legendLabels=2000,2001,2002<br>
legendLabels=sampleLabels<br>
legendLabels=seriesLabels
</font>
</td>
</tr>
<tr bgcolor="#e0e0e0">
<a name="legendFont"></a>
<td colspan=2><font face="verdana,arial,helvetica" size=-1><b>legendFont</b></font></td></tr>
<tr><td valign=top width=40%><font face="verdana, arial" size=-1>
Sets the font for the labels used in the legend.
</td>
<td valign=top width=60%><font face="verdana, arial" size=-2>
<param name="legendFont" value="Dialog, plain, 12"><hr size=1 color="#c0c0c0">
setFont("legendFont", new Font("Dialog", Font.Plain, 12));<hr size=1 color="#c0c0c0">
legendFont=Dialog,plain,12
</font>
</td>
</tr>
<tr bgcolor="#e0e0e0">
<a name="legendColors"></a>
<td colspan=2><font face="verdana,arial,helvetica" size=-1><b>legendColors</b></font></td></tr>
<tr><td valign=top width=40%><font face="verdana, arial" size=-1>
Sets the colors for the default legend boxes. If this is not set,
the colors are taken from the sampleColors parameter.
</td>
<td valign=top width=60%><font face="verdana, arial" size=-2>
<param name="legendColors" value="red, #7f0000"><hr size=1 color="#c0c0c0">
Color[] c = new Color[] {Color.red, new Color(0x7f0000));<br>
setLegendColors(c);<hr size=1 color="#c0c0c0">
legendColors=red,%237f0000
</font>
</td>
</tr>
<tr bgcolor="#e0e0e0">
<a name="legendImage"></a>
<td colspan=2><font face="verdana,arial,helvetica" size=-1><b>legendImage</b></font></td></tr>
<tr><td valign=top width=40%><font face="verdana, arial" size=-1>
Sets an image to be used in front of the legend label instead of the
default legend box. For the applet the image is specified as a relative URL.
This only works if the applet is allowed to connect back to the web server.
</td>
<td valign=top width=60%><font face="verdana, arial" size=-2>
<param name="legendImage_0" value="blue_ball.gif"><br>
<param name="legendImage_1" value="images/red_ball.gif"><hr size=1 color="#c0c0c0">
Image image = ... load image blue_ball.gif from disk<br>
addImage("legendImage_0", image);<br>
setLegendImage(0, "legendImage_0");
</font>
</td>
</tr>
<tr bgcolor="#e0e0e0">
<a name="labelDelimiter"></a>
<td colspan=2><font face="verdana,arial,helvetica" size=-1><b>labelDelimiter</b></font></td></tr>
<tr><td valign=top width=40%><font face="verdana, arial" size=-1>
By default the sampleLabels, seriesLabel, and legendLabels
parameters 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 in the applet or servlet.
</td>
<td valign=top width=60%><font face="verdana, arial" size=-2>
<param name="labelDelimiter" value=":"><hr size=1 color="#c0c0c0">
labelDelimiter=:
</font>
</td>
</tr>
<tr bgcolor="#e0e0e0">
<a name="thousandsDelimiter"></a>
<td colspan=2><font face="verdana,arial,helvetica" size=-1><b>thousandsDelimiter</b></font></td></tr>
<tr><td valign=top width=40%><font face="verdana, arial" size=-1>
Use this parameter to control the thousands delimiter in numerical labels.
</td>
<td valign=top width=60%><font face="verdana, arial" size=-2>
<param name="thousandsDelimiter" value=","><hr size=1 color="#c0c0c0">
setThousandsDelimiter(",");<hr size=1 color="#c0c0c0">
thousandsDelimiter=,
</font>
</td>
</tr>
<tr bgcolor="#e0e0e0">
<a name="locale"></a>
<td colspan=2><font face="verdana,arial,helvetica" size=-1><b>locale</b></font></td></tr>
<tr><td valign=top width=40%><font face="verdana, arial" size=-1>
Sets the locale of the chart. The locale affects the display of
value and range labels, with the correct grouping and decimal signs.
<br><a href="http://www.ics.uci.edu/pub/ietf/http/related/iso639.txt">Language codes</a>
<br><a href="http://www.chemie.fu-berlin.de/diverse/doc/ISO_3166.html">Country codes</a>
</td>
<td valign=top width=60%><font face="verdana, arial" size=-2>
<param name=locale value="en, gb"><br>
<param name=locale value="en, us"><hr size=1 color="#c0c0c0">
setLocale(new Locale("EN", "GB");<br>
setLocale(new Locale("EN", "US");<hr size=1 color="#c0c0c0">
locale=en,gb<br>
locale=en,us
</font>
</td>
</tr>
<tr bgcolor="#e0e0e0">
<a name="sampleLabelsOn"></a>
<td colspan=2><font face="verdana,arial,helvetica" size=-1><b>sampleLabelsOn</b></font></td></tr>
<tr><td valign=top width=40%><font face="verdana, arial" size=-1>
By turning on the sample labels, the sample label for a pie segment will
appear floating on top of the segment when the mouse pointer moves across
the segment or the sample label in the legend. The sample labels can also
be displayed statically by using the sampleLabelStyle parameter.
</td>
<td valign=top width=60%><font face="verdana, arial" size=-2>
<param name="sampleLabelsOn" value=true><hr size=1 color="#c0c0c0">
setSampleLabelsOn(true);<hr size=1 color="#c0c0c0">
sampleLabelsOn=true
</font>
</td>
</tr>
<tr bgcolor="#e0e0e0">
<a name="sampleLabelStyle"></a>
<td colspan=2><font face="verdana,arial,helvetica" size=-1><b>sampleLabelStyle</b></font></td></tr>
<tr><td valign=top width=40%><font face="verdana, arial" size=-1>
The sample labels can be displayed floating over the pie slices, statically inside the slices,
outside the slices or pointing to the slices.
</td>
<td valign=top width=60%><font face="verdana, arial" size=-2>
<param name="sampleLabelStyle" value="floating"><br>
<param name="sampleLabelStyle" value="inside"><br>
<param name="sampleLabelStyle" value="outside"><br>
<param name="sampleLabelStyle" value="pointing"><hr size=1 color="#c0c0c0">
setSampleLabelStyle(Chart.FLOATING);<br>
setSampleLabelStyle(Chart.INSIDE);<br>
setSampleLabelStyle(Chart.OUTSIDE);<br>
setSampleLabelStyle(Chart.POINTING);<hr size=1 color="#c0c0c0">
sampleLabelStyle=inside<br>
sampleLabelStyle=outside<br>
sampleLabelStyle=pointing
</font>
</td>
</tr>
<tr bgcolor="#e0e0e0">
<a name="seriesLabelsOn"></a>
<td colspan=2><font face="verdana,arial,helvetica" size=-1><b>seriesLabelsOn</b></font></td></tr>
<tr><td valign=top width=40%><font face="verdana, arial" size=-1>
By turning on the series labels, the series labels for a pie segment will
appear floating on top of the segment when the mouse pointer moves across the
segment or the label in the legend. The series labels can also be displayed
statically inside each slice by using the seriesLabelStyle parameter.
</td>
<td valign=top width=60%><font face="verdana, arial" size=-2>
<param name="seriesLabelsOn" value=true><hr size=1 color="#c0c0c0">
setSeriesLabelsOn(true);<hr size=1 color="#c0c0c0">
seriesLabelsOn=true
</font>
</td>
</tr>
<tr bgcolor="#e0e0e0">
<a name="seriesLabelStyle"></a>
<td colspan=2><font face="verdana,arial,helvetica" size=-1><b>seriesLabelStyle</b></font></td></tr>
<tr><td valign=top width=40%><font face="verdana, arial" size=-1>
The series labels can be displayed floating over the pie slices,statically inside the slices,
outside the slices or pointing to the slices.
</td>
<td valign=top width=60%><font face="verdana, arial" size=-2>
<param name="seriesLabelStyle" value="floating"><br>
<param name="seriesLabelStyle" value="inside"><br>
<param name="seriesLabelStyle" value="outside"><br>
<param name="seriesLabelStyle" value="pointing"><hr size=1 color="#c0c0c0">
setSeriesLabelStyle(PieChart.FLOATING);<br>
setSeriesLabelStyle(PieChart.INSIDE);<br>
setSeriesLabelStyle(PieChart.OUTSIDE);<br>
setSeriesLabelStyle(PieChart.POINTING);<hr size=1 color="#c0c0c0">
seriesLabelStyle=inside<br>
seriesLabelStyle=outside<br>
seriesLabelStyle=pointing
</font>
</td>
</tr>
<tr bgcolor="#e0e0e0">
<a name="valueLabelsOn"></a>
<td colspan=2><font face="verdana,arial,helvetica" size=-1><b>valueLabelsOn</b></font></td></tr>
<tr><td valign=top width=40%><font face="verdana, arial" size=-1>
By turning the value labels on, the value for a pie segment will appear
floating on top of the segment when the mouse pointer moves across
the segment or the sample label in the legend. The value labels can also
be displayed statically by using the valueLabelStyle parameter.
</td>
<td valign=top width=60%><font face="verdana, arial" size=-2>
<param name="valueLabelsOn" value=true><hr size=1 color="#c0c0c0">
setValueLabelsOn(true);<hr size=1 color="#c0c0c0">
valueLabelsOn=true&valueLabelStyle=inside
</font>
</td>
</tr>
<tr bgcolor="#e0e0e0">
<a name="valueLabelStyle"></a>
<td colspan=2><font face="verdana,arial,helvetica" size=-1><b>valueLabelStyle</b></font></td></tr>
<tr><td valign=top width=40%><font face="verdana, arial" size=-1>
The value labels can be displayed floating over the pie slices, statically inside the slices,
outside the slices or pointing to the slices.
</td>
<td valign=top width=60%><font face="verdana, arial" size=-2>
<param name="valueLabelStyle" value="floating"><br>
<param name="valueLabelStyle" value="inside"><br>
<param name="valueLabelStyle" value="outside"><br>
<param name="valueLabelStyle" value="pointing"><hr size=1 color="#c0c0c0">
setValueLabelStyle(Chart.FLOATING);<br>
setValueLabelStyle(Chart.INSIDE);<br>
setValueLabelStyle(Chart.OUTSIDE);<br>
setValueLabelStyle(Chart.POINTING);<hr size=1 color="#c0c0c0">
valueLabelsOn=true&valueLabelStyle=inside<br>
valueLabelsOn=true&valueLabelStyle=outside<br>
valueLabelsOn=true&valueLabelStyle=pointing
</font>
</td>
</tr>
<tr bgcolor="#e0e0e0">
<a name="sampleDecimalCount"></a>
<td colspan=2><font face="verdana,arial,helvetica" size=-1><b>sampleDecimalCount</b></font></td></tr>
<tr><td valign=top width=40%><font face="verdana, arial" size=-1>
Sets the number of fixed decimals to use for the value labels.
</td>
<td valign=top width=60%><font face="verdana, arial" size=-2>
<param name="sampleDecimalCount" value=3><hr size=1 color="#c0c0c0">
setSampleDecimalCount(3);<hr size=1 color="#c0c0c0">
sampleDecimalCount=3
</font>
</td>
</tr>
<tr bgcolor="#e0e0e0">
<a name="floatingOnLegendOff"></a>
<td colspan=2><font face="verdana,arial,helvetica" size=-1><b>floatingOnLegendOff</b></font></td></tr>
<tr><td valign=top width=40%><font face="verdana, arial" size=-1>
By default floating labels are displayed for all the samples in the
selected series when the mouse moves over a series label in the legend.
This parameter turns this behavior off.
</td>
<td valign=top width=60%><font face="verdana, arial" size=-2>
<param name="floatingOnLegendOff" value="true"><hr size=1 color="#c0c0c0">
setFloatingOnLegendOn(false);
</font>
</td>
</tr>
<tr bgcolor="#e0e0e0">
<a name="valueLabelPrefix"></a>
<td colspan=2><font face="verdana,arial,helvetica" size=-1><b>valueLabelPrefix</b></font></td></tr>
<tr><td valign=top width=40%><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.
</td>
<td valign=top width=60%><font face="verdana, arial" size=-2>
<param name="valueLabelPrefix" value="$"><br>
<param name="valueLabelPrefix_2" value="
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -