⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 plotterchart.html

📁 java图形报表制作Applet
💻 HTML
📖 第 1 页 / 共 3 页
字号:
&lt;param name="seriesLabels" value="2000, 2001, 2002"&gt;<hr size=1 color="#c0c0c0">
setSeriesLabels(new String[] {"2000","2001","2002"});<br>
setSeriesLabel(0, "another label");<hr size=1 color="#c0c0c0">
seriesLabels=2000,2001,2002
</font>
</td>
</tr>

<tr bgcolor="#e0e0e0">
<a name="seriesLabelColors"></a>
<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.
</td>
<td valign=top width=60%><font face="verdana, arial" size=-2>
&lt;param name="seriesLabelColors" value="red, #7f0000, blue"&gt;<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="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>
Turns on the series labels on the grid or floating.
</td>
<td valign=top width=60%><font face="verdana, arial" size=-2>
&lt;param name="seriesLabelsOn" value="true"&gt;<hr size=1 color="#c0c0c0">
setSeriesLabelsOn(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>
Controls how the series labels are displayed. The series labels can either 
be displayed over, under or in the center of the sample point on the chart grid or floating 
above a sample point when the mouse moves over it.
</td>
<td valign=top width=60%><font face="verdana, arial" size=-2>
&lt;param name="seriesLabelStyle" value="over"&gt;<br>
&lt;param name="seriesLabelStyle" value="under"&gt;<br>
&lt;param name="seriesLabelStyle" value="center"&gt;<br>
&lt;param name="seriesLabelStyle" value="floating"&gt;<hr size=1 color="#c0c0c0">
setSeriesLabelStyle(LineChart.OVER);<br>
setSeriesLabelStyle(LineChart.UNDER);<br>
setSeriesLabelStyle(LineChart.CENTER);<br>
setSeriesLabelStyle(LineChart.FLOATING);<hr size=1 color="#c0c0c0">
seriesLabelStyle=over<br>
seriesLabelStyle=under<br>
seriesLabelStyle=center<br>
seriesLabelStyle=floating
</font>
</td>
</tr>

<tr bgcolor="#e0e0e0">
<a name="seriesLabelFont"></a>
<td colspan=2><font face="verdana,arial,helvetica" size=-1><b>seriesLabelFont</b></font></td></tr>
<tr><td valign=top width=40%><font face="verdana, arial" size=-1>
Sets the font used for the series labels.
</td>
<td valign=top width=60%><font face="verdana, arial" size=-2>
&lt;param name="seriesLabelFont" value="Dialog, plain, 12"&gt;<hr size=1 color="#c0c0c0">
setFont("seriesLabelFont", new Font("Dialog", Font.PLAIN, 12));<hr size=1 color="#c0c0c0">
seriesLabelFont=Dialog,plain,12
</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 that displays the series labels. The position of the
legend can be set using the legendPosition parameter.
</td>
<td valign=top width=60%><font face="verdana, arial" size=-2>
&lt;param name="legendOn" value=true&gt;<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, 
or bottom. The default position is to the right.
</td>
<td valign=top width=60%><font face="verdana, arial" size=-2>
&lt;param name="legendPosition" value="right"&gt;<br>
&lt;param name="legendPosition" value="left"&gt;<br>
&lt;param name="legendPosition" value="top"&gt;<br>
&lt;param name="legendPosition" value="bottom"&gt;<hr size=1 color="#c0c0c0">
setLegendPosition(LineChart.RIGHT);<br>
setLegendPosition(LineChart.LEFT);<br>
setLegendPosition(LineChart.TOP);<br>
setLegendPosition(LineChart.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 which are taken from the
seriesLabels parameter.
</td>
<td valign=top width=60%><font face="verdana, arial" size=-2>
&lt;param name="legendLabels" value="2000, 2001, 2002"&gt;<hr size=1 color="#c0c0c0">
setLegendLabels(new String[] {"2000","2001","2002"});<hr size=1 color="#c0c0c0">
legendLabels=2000,2001,2002
</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 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>
&lt;param name="legendColors" value="red, #7f0000"&gt;<hr size=1 color="#c0c0c0">
setLegendColors(new Color[] {Color.red, new Color(0x7f0000));<br>
setLegendColor(1, Color.blue);<hr size=1 color="#c0c0c0">
legendColors=red,%237f0000
</font>
</td>
</tr>

<tr bgcolor="#e0e0e0">
<a name="legendColumns"></a>
<td colspan=2><font face="verdana,arial,helvetica" size=-1><b>legendColumns</b></font></td></tr>
<tr><td valign=top width=40%><font face="verdana, arial" size=-1>
Sets the number of columns that should be used to display legend labels.
</td>
<td valign=top width=60%><font face="verdana, arial" size=-2>
&lt;param name="legendColumns" value=4&gt;<hr size=1 color="#c0c0c0">
setLegendColumns(3);<hr size=1 color="#c0c0c0">
legendColumns=5
</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>
&lt;param name="legendImage_0" value="blue_ball.gif"&gt;<br>
&lt;param name="legendImage_1" value="images/red_ball.gif"&gt;<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="XValueLabelsOn"></a>
<td colspan=2><font face="verdana,arial,helvetica" size=-1><b>XValueLabelsOn</b></font></td></tr>
<tr><td valign=top width=40%><font face="verdana, arial" size=-1>
Turns on the x value labels for the points in a serie.
Use XValueLabelsOn_N to control the value labels per data series.
</td>
<td valign=top width=60%><font face="verdana, arial" size=-2>
&lt;param name="XValueLabelsOn" value=true&gt;<br>
&lt;param name="XValueLabelsOn_2" value=false&gt;<hr size=1 color="#c0c0c0">
setXValueLabelsOn(true);<br>
setXValueLabelsOn(1, false);<hr size=1 color="#c0c0c0">
XValueLabelsOn=true
</font>
</td>
</tr>

<tr bgcolor="#e0e0e0">
<a name="YValueLabelsOn"></a>
<td colspan=2><font face="verdana,arial,helvetica" size=-1><b>YValueLabelsOn</b></font></td></tr>
<tr><td valign=top width=40%><font face="verdana, arial" size=-1>
Turns on the y value labels for the points in a serie.
Use YValueLabelsOn_N to control the value labels per data series.
</td>
<td valign=top width=60%><font face="verdana, arial" size=-2>
&lt;param name="YValueLabelsOn" value=true&gt;<br>
&lt;param name="YValueLabelsOn_2" value=false&gt;<hr size=1 color="#c0c0c0">
setYValueLabelsOn(true);<br>
setYValueLabelsOn(1, false);<hr size=1 color="#c0c0c0">
YValueLabelsOn=true
</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>
Sets the display style of the value labels. The value labels can be painted 
directly over or under the point, centered with the sample point, 
or floating above the sample point when the mouse hovers over it.
</td>
<td valign=top width=60%><font face="verdana, arial" size=-2>
&lt;param name="valueLabelStyle" value="over"&gt;<br>
&lt;param name="valueLabelStyle" value="under"&gt;<br>
&lt;param name="valueLabelStyle" value="center"&gt;<br>
&lt;param name="valueLabelStyle" value="floating"&gt;<hr size=1 color="#c0c0c0">
setValueLabelStyle(Chart.OVER);<br>
setValueLabelStyle(Chart.UNDER);<br>
setValueLabelStyle(Chart.CENTER);<br>
setValueLabelStyle(Chart.FLOATING);<hr size=1 color="#c0c0c0">
valueLabelStyle=outside<br>
valueLabelStyle=inside
</font>
</td>
</tr>

<tr bgcolor="#e0e0e0">
<a name="XValueDecimalCount"></a>
<td colspan=2><font face="verdana,arial,helvetica" size=-1><b>XValueDecimalCount</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 x value labels.
Use XValueDecimalCount_N to control the decimals per data series.
</td>
<td valign=top width=60%><font face="verdana, arial" size=-2>
&lt;param name="XValueDecimalCount" value=3&gt;<br>
&lt;param name="XValueDecimalCount_2" value=0&gt;<hr size=1 color="#c0c0c0">
setXValueDecimalCount(-1, 3); // -1 specifies all series<br>
setXValueDecimalCount(0, 2); &nbsp;// serie 0, 2 decimals<hr size=1 color="#c0c0c0">
XValueDecimalCount=3<br>
XValueDecimalCount_2=0
</font>
</td>
</tr>

<tr bgcolor="#e0e0e0">
<a name="YValueDecimalCount"></a>
<td colspan=2><font face="verdana,arial,helvetica" size=-1><b>YValueDecimalCount</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 y value labels.
Use YValueDecimalCount_N to control the decimals per data series.
</td>
<td valign=top width=60%><font face="verdana, arial" size=-2>
&lt;param name="YValueDecimalCount" value=3&gt;<br>
&lt;param name="YValueDecimalCount_2" value=0&gt;<hr size=1 color="#c0c0c0">
setYValueDecimalCount(-1, 3); // -1 specifies all series<br>
setYValueDecimalCount(0, 2); &nbsp;// serie 0, 2 decimals<hr size=1 color="#c0c0c0">
YValueDecimalCount=3<br>
YValueDecimalCount_2=0
</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>
&lt;param name="floatingOnLegendOff" value="true"&gt;<hr size=1 color="#c0c0c0">
setFloatingOnLegendOn(false);
</font>
</td>
</tr>

<tr bgcolor="#e0e0e0">
<a name="XValueLabelPrefix"></a>
<td colspan=2><font face="verdana,arial,helvetica" size=-1><b>XValueLabelPrefix</b></font></td></tr>
<tr><td valign=top width=40%><font face="verdana, arial" size=-1>
Adds a prefix before all x 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>
&lt;param name="XValueLabelPrefix" value="$"&gt;<br>
&lt;param name="XValueLabelPrefix_2" value="

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -