📄 bar_legend.html
字号:
<html>
<body>
<font face="verdana, arial, helvetica" size=-1>
Turn on the legend and set the font used for the labels.
<p>
<applet code=com.objectplanet.chart.BarChartApplet
archive=chart.jar width=300 height=200 VIEWASTEXT id=Applet1>
<param name=sampleValues value="10,20,30,40,50">
<param name=sampleLabels value="one,two,three,four,five">
<param name=multiColorOn value=true>
<param name=legendOn value=true>
<param name=legendFont value="Arial, bold, 14">
</applet>
<p>
<applet code=com.objectplanet.chart.BarChartApplet<br>
archive=chart.jar width=300 height=200><br>
<param name=sampleValues value="10,20,30,40,50"><br>
<param name=sampleLabels value="one,two,three,four,five"><br>
<param name=multiColorOn value=true><br>
<param name=legendOn value=true><br>
<param name=legendFont value="Arial, bold, 14"><br>
</applet><br>
<p>
You can set the legend position to left, bottom, top, or right.
<p>
<applet code=com.objectplanet.chart.BarChartApplet
archive=chart.jar width=200 height=133 VIEWASTEXT id=Applet1>
<param name=sampleValues value="10,20,30,40,50">
<param name=sampleLabels value="one,two,three,four,five">
<param name=multiColorOn value=true>
<param name=legendOn value=true>
<param name=legendPosition value=left>
</applet>
<applet code=com.objectplanet.chart.BarChartApplet
archive=chart.jar width=215 height=133 VIEWASTEXT id=Applet1>
<param name=sampleValues value="10,20,30,40,50">
<param name=sampleLabels value="one,two,three,four,five">
<param name=multiColorOn value=true>
<param name=legendOn value=true>
<param name=legendPosition value=top>
</applet>
<applet code=com.objectplanet.chart.BarChartApplet
archive=chart.jar width=215 height=133 VIEWASTEXT id=Applet1>
<param name=sampleValues value="10,20,30,40,50">
<param name=sampleLabels value="one,two,three,four,five">
<param name=multiColorOn value=true>
<param name=legendOn value=true>
<param name=legendPosition value=bottom>
</applet>
<p>
<applet code=com.objectplanet.chart.BarChartApplet<br>
archive=chart.jar width=300 height=200><br>
<param name=sampleValues value="10,20,30,40,50"><br>
<param name=sampleLabels value="one,two,three,four,five"><br>
<param name=multiColorOn value=true><br>
<param name=legendOn value=true><br>
<param name=legendPosition value=left><br>
</applet><br>
<p>
You can set the color of the legend boxes.
<p>
<applet code=com.objectplanet.chart.BarChartApplet
archive=chart.jar width=300 height=200 VIEWASTEXT>
<param name=sampleValues value="10,-20,-30,40,50">
<param name=sampleColors value="blue, red, red, blue, blue">
<param name=multiColorOn value=true>
<param name=legendLabels value="good,bad">
<param name=legendColors value="blue, red">
<param name=legendOn value=true>
</applet>
<p>
<applet code=com.objectplanet.chart.BarChartApplet<br>
archive=chart.jar width=300 height=200 VIEWASTEXT><br>
<param name=sampleValues value="10,-20,-30,40,50"><br>
<param name=sampleColors value="blue, red, red, blue, blue"><br>
<param name=multiColorOn value=true><br>
<param name=legendLabels value="good,bad"><br>
<param name=legendColors value="blue, red"><br>
<param name=legendOn value=true><br>
</applet>
<p>
You can set an image instead of any legend box.<br>
NOTE: For security reasons, the browser may not let you load the images
so the legend entries might have the default boxes instead of the images.
<p>
<applet code=com.objectplanet.chart.BarChartApplet
archive=chart.jar width=300 height=200 VIEWASTEXT>
<param name=sampleValues value="10,20,30,40,50">
<param name=sampleLabels value="one,two,three,four,five">
<param name=multiColorOn value=true>
<param name=legendOn value=true>
<param name=multiColorOn value=true>
<param name=legendImage_0 value="../api/images/blue-ball.gif">
<param name=legendImage_1 value="../api/images/yellow-ball.gif">
<param name=legendImage_2 value="../api/images/magenta-ball.gif">
<param name=legendImage_3 value="../api/images/red-ball.gif">
<param name=legendImage_4 value="../api/images/green-ball.gif">
</applet>
<p>
<applet code=com.objectplanet.chart.BarChartApplet<br>
archive=chart.jar width=300 height=200><br>
<param name=sampleValues value="10,20,30,40,50"><br>
<param name=sampleLabels value="one,two,three,four,five"><br>
<param name=multiColorOn value=true><br>
<param name=legendOn value=true><br>
<param name=legendImage_0 value="../api/images/blue-ball.gif"><br>
<param name=legendImage_1 value="../api/images/yellow-ball.gif"><br>
<param name=legendImage_2 value="../api/images/magenta-ball.gif"><br>
<param name=legendImage_3 value="../api/images/red-ball.gif"><br>
<param name=legendImage_4 value="../api/images/green-ball.gif"><br>
</applet><br>
<font>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -