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

📄 barchart.html

📁 java图形报表制作Applet
💻 HTML
📖 第 1 页 / 共 4 页
字号:
</font>
</td>
</tr>

<tr bgcolor="#e0e0e0">
<a name="rangeLabelPrefix"></a>
<td colspan=2><font face="verdana,arial,helvetica" size=-1><b>rangeLabelPrefix</b></font></td></tr>
<tr><td valign=top width=40%><font face="verdana, arial" size=-1>
Adds a prefix before the range labels.
</td>
<td valign=top width=60%><font face="verdana, arial" size=-2>
&lt;param name="rangeLabelPrefix" value="#"&gt;<br>
&lt;param name="rangeLabelPrefix_5" value="$"&gt;<hr size=1 color="#c0c0c0">
setLabel("rangeLabelPrefix", "#");<br>
setLabel("rangeLabelPrefix_5", "$");<hr size=1 color="#c0c0c0">
rangeLabelPrefix=#<br>
rangeLabelPrefix_5=$
</font>
</td>
</tr>

<tr bgcolor="#e0e0e0">
<a name="rangeLabelPostfix"></a>
<td colspan=2><font face="verdana,arial,helvetica" size=-1><b>rangeLabelPostfix</b></font></td></tr>
<tr><td valign=top width=40%><font face="verdana, arial" size=-1>
Adds a postfix after the range labels.<br>
</td>
<td valign=top width=60%><font face="verdana, arial" size=-2>
&lt;param name="rangeLabelPostfix" value="%"&gt;<br>
&lt;param name="rangeLabelPostfix_5" value="@"&gt;<hr size=1 color="#c0c0c0">
setLabel("rangeLabelPostfix", "%");<br>
setLabel("rangeLabelPostfix_5", "@");<hr size=1 color="#c0c0c0">
rangeLabelPostfix=%<br>
rangeLabelPostfix_5=@
</font>
</td>
</tr>

<tr>
<td colspan=3>
<br>
<font face="verdana, arial" size=-1><b>PARAMETERS TO SET LABELS</b></font>
</td>
</tr>

<tr bgcolor="#e0e0e0">
<a name="chartTitle"></a>
<td colspan=2><font face="verdana,arial,helvetica" size=-1><b>chartTitle</b></font></td></tr>
<tr><td valign=top width=40%><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.
Use \n for line breaks.
</td>
<td valign=top width=60%><font face="verdana, arial" size=-2>
&lt;param name="chartTitle" value="This is my title"&gt;<br>
&lt;param name="chartTitle" value="Linebreak\nin title"&gt;<hr size=1 color="#c0c0c0">
setTitle("This is my title");<br>
setTitle("Linebreak\\nin title");<hr size=1 color="#c0c0c0">
chartTitle=This is my title
</font>
</td>
</tr>

<tr bgcolor="#e0e0e0">
<a name="titleFont"></a>
<td colspan=2><font face="verdana,arial,helvetica" size=-1><b>titleFont</b></font></td></tr>
<tr><td valign=top width=40%><font face="verdana, arial" size=-1>
Sets the font used for the chart title.
</td>
<td valign=top width=60%><font face="verdana, arial" size=-2>
&lt;param name="titleFont" value="Dialog, bold, 20"<hr size=1 color="#c0c0c0">
setFont("titleFont", new Font("Dialog", Font.BOLD, 20));<hr size=1 color="#c0c0c0">
titleFont=Dialog, bold, 20
</font>
</td>
</tr>

<tr bgcolor="#e0e0e0">
<a name="barLabels"></a>
<td colspan=2><font face="verdana,arial,helvetica" size=-1><b>barLabels</b></font></td></tr>
<tr><td valign=top width=40%><font face="verdana, arial" size=-1>
By default the bar labels are taken from the sampleLabels parameter.
The barLabels parameter overrides these labels and sets the labels
that appear below each bar.
</td>
<td valign=top width=60%><font face="verdana, arial" size=-2>
&lt;param name="barLabels" value="bar0,bar1,bar2"&gt;<hr size=1 color="#c0c0c0">
setBarLabels(new String[] {"bar0","bar1","bar2"});<hr size=1 color="#c0c0c0">
barLabels=bar0,bar1,bar2
</font>
</td>
</tr>

<tr bgcolor="#e0e0e0">
<a name="barLabelsOn"></a>
<td colspan=2><font face="verdana,arial,helvetica" size=-1><b>barLabelsOn</b></font></td></tr>
<tr><td valign=top width=40%><font face="verdana, arial" size=-1>
Turns on the bar labels. The bar labels will be displayed below each bar
in the chart.
</td>
<td valign=top width=60%><font face="verdana, arial" size=-2>
&lt;param name="barLabelsOn" value=true&gt;<hr size=1 color="#c0c0c0">
setBarLabelsOn(true);<hr size=1 color="#c0c0c0">
barLabelsOn=true
</font>
</td>
</tr>

<tr bgcolor="#e0e0e0">
<a name="barLabelColors"></a>
<td colspan=2><font face="verdana,arial,helvetica" size=-1><b>barLabelColors</b></font></td></tr>
<tr><td valign=top width=40%><font face="verdana, arial" size=-1>
Sets the colors of the bar labels. This will affect only the bar labels below the grid.
</td>
<td valign=top width=60%><font face="verdana, arial" size=-2>
&lt;param name="barLabelColors" value="red, #cc00c9, blue"&gt;<hr size=1 color="#c0c0c0">
setBarLabelColor(0, Color.red);<br>
setBarLabelColor(1, new Color(0xcc00c9));<br>
setBarLabelColor(2, Color.blue);<hr size=1 color="#c0c0c0">
barLabelColors=red,%23cc00c9,blue
</font>
</td>
</tr>

<tr bgcolor="#e0e0e0">
<a name="barLabelStyle"></a>
<td colspan=2><font face="verdana,arial,helvetica" size=-1><b>barLabelStyle</b></font></td></tr>
<tr><td valign=top width=40%><font face="verdana, arial" size=-1>
Sets the display style of the bar labels. The labels can either be displayed
below each bar, floating over each bar when the mouse moves over it, or both.
(NOTE: this parameter is DEPRECATED in favour of sampleLabelStyle)
</td>
<td valign=top width=60%><font face="verdana, arial" size=-2>
&lt;param name="barLabelStyle" value="below"&gt;<br>
&lt;param name="barLabelStyle" value="floating"&gt;<br>
&lt;param name="barLabelStyle" value="below_and_floating"&gt;<hr size=1 color="#c0c0c0">
setBarLabelStyle(Chart.BELOW);<br>
setBarLabelStyle(Chart.FLOATING);<br>
setBarLabelStyle(Chart.BELOW_AND_FLOATING);
</font>
</td>
</tr>

<tr bgcolor="#e0e0e0">
<a name="barLabelFont"></a>
<td colspan=2><font face="verdana,arial,helvetica" size=-1><b>barLabelFont</b></font></td></tr>
<tr><td valign=top width=40%><font face="verdana, arial" size=-1>
Sets the font used for the static bar labels.
</td>
<td valign=top width=60%><font face="verdana, arial" size=-2>
&lt;param name="barLabelFont" value="Dialog, plain, 12"&gt;<hr size=1 color="#c0c0c0">
setFont("barLabelFont", new Font("Dialog", Font.PLAIN, 12));<hr size=1 color="#c0c0c0">
barLabelFont=Dialog,plain,12
</font>
</td>
</tr>

<tr bgcolor="#e0e0e0">
<a name="barLabelAngle"></a>
<td colspan=2><font face="verdana,arial,helvetica" size=-1><b>barLabelAngle</b></font></td></tr>
<tr><td valign=top width=40%><font face="verdana, arial" size=-1>
Sets the clockwise angle of the bar labels.
</td>
<td valign=top width=60%><font face="verdana, arial" size=-2>
&lt;param name="barLabelAngle" value="270"&gt;<hr size=1 color="#c0c0c0">
setLabelAngle("barLabelAngle", 270);<hr size=1 color="#c0c0c0">
barLabelAngle=270
</font>
</td>
</tr>

<tr bgcolor="#e0e0e0">
<a name="autoLabelSpacingOn"></a>
<td colspan=2><font face="verdana,arial,helvetica" size=-1><b>autoLabelSpacingOn</b></font></td></tr>
<tr><td valign=top width=40%><font face="verdana, arial" size=-1>
By default all the bar labels are painted even if there is not enough
space for them all (they will overlap). If this parameter is set to true, 
only labels there are room for will be painted.
</td>
<td valign=top width=60%><font face="verdana, arial" size=-2>
&lt;param name="autoLabelSpacingOn" value=true&gt;<hr size=1 color="#c0c0c0">
setAutoLabelSpacingOn(true);<hr size=1 color="#c0c0c0">
autoLabelSpacingOn=true
</font>
</td>
</tr>

<tr bgcolor="#e0e0e0">
<a name="sampleLabels"></a>
<td colspan=2><font face="verdana,arial,helvetica" size=-1><b>sampleLabels</b></font></td></tr>
<tr><td valign=top width=40%><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 below each
bar if the bar labels are turned on.
</td>
<td valign=top width=60%><font face="verdana, arial" size=-2>
&lt;param name="sampleLabels" value="one,two,three"&gt;<hr size=1 color="#c0c0c0">
setSampleLabels(new String[] {"one","two","three"});<hr size=1 color="#c0c0c0">
sampleLabels=one,two,three
</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>
Turns on the sample labels. You can display the sample labels
outside the bars, inside the bars, below the chart grid, as tooltip labels or both below and
as tooltip. Control the style with the valueLabelStyle parameter.
<td valign=top width=60%><font face="verdana, arial" size=-2>
&lt;param name="sampleLabelsOn" value=true&gt;<hr size=1 color="#c0c0c0">
setSampleLabelsOn(true);<hr size=1 color="#c0c0c0">
sampleLabelsOn=true
</font>
</td>
</tr>

<tr bgcolor="#e0e0e0">
<a name="sampleLabelColors"></a>
<td colspan=2><font face="verdana,arial,helvetica" size=-1><b>sampleLabelColors</b></font></td></tr>
<tr><td valign=top width=40%><font face="verdana, arial" size=-1>
Sets the colors of the sample labels. This will affect the bar labels
and the legend labels if they are displayed there.
</td>
<td valign=top width=60%><font face="verdana, arial" size=-2>
&lt;param name="sampleLabelColors" value="red, #cc00c9, blue"&gt;<hr size=1 color="#c0c0c0">
setSampleLabelColor(0, Color.red);<br>
setSampleLabelColor(1, new Color(0xcc00c9));<br>
setSampleLabelColor(2, Color.blue);<hr size=1 color="#c0c0c0">
sampleLabelColors=red,%23cc00c9,blue
</font>
</td>
</tr>

<tr bgcolor="#e0e0e0">
<a name="sampleLabelSelectionColor"></a>
<td colspan=2><font face="verdana,arial,helvetica" size=-1><b>sampleLabelSelectionColor</b></font></td></tr>
<tr><td valign=top width=40%><font face="verdana, arial" size=-1>
Sets the color used for the sample labels when a sample is selected.
</td>
<td valign=top width=60%><font face="verdana, arial" size=-2>
&lt;param name="sampleLabelSelectionColor" value="#cc00c9"&gt;<hr size=1 color="#c0c0c0">
setSampleLabelSelectionColor(Color.red);
</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>
Sets the style of the sample labels. The sample labels can be inside each bar,
outside each bar, below the chart grid, floating above each bar as the mouse 
moves over it or both below and floating.
The default is below.
</td>
<td valign=top width=60%><font face="verdana, arial" size=-2>
&lt;param name="sampleLabelStyle" value="inside"&gt;<br>
&lt;param name="sampleLabelStyle" value="outside"&gt;<br>
&lt;param name="sampleLabelStyle" value="below"&gt;<br>
&lt;param name="sampleLabelStyle" value="floating"&gt;<br>
&lt;param name="sampleLabelStyle" value="below_and_floating"&gt;<hr size=1 color="#c0c0c0">
setSampleLabelStyle(BarChart.INSIDE);<br>
setSampleLabelStyle(BarChart.OUTSIDE);<br>
setSampleLabelStyle(BarChart.BELOW);<br>
setSampleLabelStyle(BarChart.FLOATING);<br>
setSampleLabelStyle(BarChart.BELOW_AND_FLOATING);<hr size=1 color="#c0c0c0">
sampleLabelStyle=inside<br>
sampleLabelStyle=outside<br>
sampleLabelStyle=below
</font>
</td>
</tr>

<tr bgcolor="#e0e0e0">
<a name="sampleLabelFont"></a>
<td colspan=2><font face="verdana,arial,helvetica" size=-1><b>sampleLabelFont</b></font></td></tr>
<tr><td valign=top width=40%><font face="verdana, arial" size=-1>
Sets the font used for the static sample labels.
</td>
<td valign=top width=60%><font face="verdana, arial" size=-2>
&lt;param name="sampleLabelFont" value="Dialog, plain, 12"&gt;<hr size=1 color="#c0c0c0">
setFont("sampleLabelFont", new Font("Dialog", Font.PLAIN, 12));<hr size=1 color="#c0c0c0">
sampleLabelFont=Dialog,plain,12
</font>
</td>
</tr>

<tr bgcolor="#e0e0e0">
<a name="sampleLabelAngle"></a>
<td colspan=2><font face="verdana,arial,helvetica" size=-1><b>sampleLabelAngle</b></font></td></tr>
<tr><td valign=top width=40%><font face="verdana, arial" size=-1>
Sets the clockwise angle of the static sample labels. 
</td>
<td valign=top width=60%><font face="verdana, arial" size=-2>
&lt;param name="sampleLabelAngle" value="270"&gt;<hr size=1 color="#c0c0c0">
setLabelAngle("sampleLabelAngle", 270);<hr size=1 color="#c0c0c0">
sampleLabelAngle=270
</font>
</td>
</tr>

<tr bgcolor="#e0e0e0">
<a name="seriesLabels"></a>
<td colspan=2><font face="verdana,arial,helvetica" size=-1><b>seriesLabels</b></font></td></tr>
<tr><td valign=top width=40%><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.
</td>
<td valign=top width=60%><font face="verdana, arial" size=-2>
&lt;param name="seriesLabels" value="2000, 2001, 2002"&gt;<hr size=1 color="#c0c0c0">

⌨️ 快捷键说明

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