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

📄 barchart.html

📁 java图形报表制作
💻 HTML
📖 第 1 页 / 共 4 页
字号:

<tr bgcolor="#e0e0e0">
<a name="rangeLabelFont"></a>
<td colspan=2><font face="verdana,arial,helvetica" size=-1><b>rangeLabelFont</b></font></td></tr>
<tr><td valign=top width=40%><font face="verdana, arial" size=-1>
Sets the font for the range labels.
</td>
<td valign=top width=60%><font face="verdana, arial" size=-2>
&lt;param name="rangeLabelFont" value="Dialog, plain, 12"&gt;<hr size=1 color="#c0c0c0">
setFont("rangeLabelFont", new Font("Dialog", Font.PLAIN, 12));<hr size=1 color="#c0c0c0">
rangeLabelFont=Dialog, plain, 12
</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_2" value="#"&gt;<hr size=1 color="#c0c0c0">
setLabel("rangeLabelPrefix", "$");<br>
setLabel("rangeLabelPrefix_2", "#");<hr size=1 color="#c0c0c0">
rangeLabelPrefix=$<br>
rangeLabelPrefix_2=#
</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_2" value="%"&gt;<hr size=1 color="#c0c0c0">
setLabel("rangeLabelPostfix", "&");<br>
setLabel("rangeLabelPostfix_2", "%");<hr size=1 color="#c0c0c0">
rangeLabelPostfix=&<br>
rangeLabelPostfix_2=%
</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="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>
Displays the sample labels inside or outside each bar. Use the sampleLabels
parameter to set these labels.
<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="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>
Displays the sample labels inside or ouside each bar. 
Default style is outside.
</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;<hr size=1 color="#c0c0c0">
setSampleLabelStyle(Chart.INSIDE);<br>
setSampleLabelStyle(Chart.OUTSIDE);<hr size=1 color="#c0c0c0">
sampleLabelStyle=inside<br>
sampleLabelStyle=outside<br>
</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="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.
</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="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="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 can appear in the
legend, or inside or outside each bar in the chart. Use the legendOn parameter
to display them in the legend. Use the seriesLabelStyle parameter to
display the labels inside or outside each bar.
</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">
setSeriesLabels(new String[] {"2000","2001","2002"});<hr size=1 color="#c0c0c0">
seriesLabels=2000,2001,2002
</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>
Displays the series labels inside or outside each bar. The default style
is outside, and can be set with the seriesLabelStyle parameter.
<td valign=top width=60%><font face="verdana, arial" size=-2>

⌨️ 快捷键说明

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