?? piechart.html
字號(hào):
<HTML>
<body bgcolor="#ffffff" topmargin="0" leftmargin="0" rightmargin="0" marginheight="0" marginwidth="0">
<table cellspacing=0 cellpadding=5 border=0 width=100%>
<tr bgcolor="#c6d3f7"><td>
<font face="Arial,Verdana,Helvetica" size=-2>
<b>
<a href="../index.html">main</a> |
<a href="index.html">documentation</a> |
<a href="../examples/index.html">examples</a> |
<a href="../presales_questions.html">common questions</a> |
<a href="../changes.html">changes</a> |
<a href="http://objectplanet.com/EasyCharts/license_details.html">licensing</a>
</b>
</font>
</td>
</tr>
</table>
<table BORDER=0 CELLSPACING=0 CELLPADDING=10 WIDTH=500>
<tr>
<td colspan=3>
<font face="Arial,Verdana,Helvetica" size=-1 color="#333333">
<p><br>
<font size=-0>
<b>EASYCHARTS DOCUMENTATION : PIECHART</b>
</font>
</td>
</tr>
<tr><td valign=top>
<font face="verdana,arial,helvetica" size=-1>
<b><a href="#loading_data">1. Loading Data</a></b><br>
<a href="#sample_values">1.1 sample values</a><br>
<a href="#sample_count">1.2 sample count</a><br>
<a href="#empty_values">1.3 empty values</a><br>
<a href="#multiple_data_series">1.4 multiple data series</a><br>
<a href="#dynamically_loading_data">1.5 dynamically loading data</a><br>
<A href="#data_help">1.6 loading data from a url</a><br>
<p>
<b><a href="#labels_and_fonts">2. Labels and Fonts</a></b><br>
<a href="#chart_title">2.1 chart title</a><br>
<a href="#sample_labels">2.2 sample labels</a><br>
<a href="#series_labels">2.3 series labels</a><br>
<a href="#legend_labels">2.4 legend labels</a><br>
<a href="#value_labels">2.5 value labels</a><br>
<a href="#percent_labels">2.6 percent labels</a><br>
<a href="#pie_labels">2.7 pie labels</a><br>
<a href="#anywhere_labels">2.8 anywhere labels</a><br>
</font>
</td>
<td valign=top>
<font face="verdana,arial,helvetica" size=-1>
<b><a href="#chart_colors">3. Chart Colors</a></b><br>
<a href="#sample_colors">3.1 sample colors</a><br>
<a href="#background_color">3.2 background color</a><br>
<a href="#foreground_color">3.3 foreground color</a><br>
<p>
<b><a href="#chart_style">4. Chart Style</a></b><br>
<a href="#3dmode">4.1 3D mode</a><br>
<a href="#selection_style">4.2 selection style</a><br>
<a href="#detached_slices">4.3 detached slices</a><br>
<a href="#slice_seperator">4.4 slice seperator</a><br>
<p>
<b><a href="#miscellaneous">5. Miscellaneous</a></b><br>
<a href="#url_and_drilldown">5.1 urls and drilldown</a><br>
<a href="#graph_insets">5.2 graph insets</a><br>
</font>
</td>
</tr>
</table>
<p>
<a name="parameters"></a>
<table BORDER=0 CELLSPACING=10 CELLPADDING=0 WIDTH=750>
<tr>
<td colspan=6>
<font face="Verdana,Arial,Helvetica" size=-1>
<b>CHART PARAMETERS</b>
</font>
</td>
</tr>
<tr>
<td valign=top><font face="arial,verdana,helvetica" size=-2>
<a href="#3DModeOn">3DModeOn</a>
<br><a href="#angle">angle</a>
<br><a href="#antialias">antialias</a>
<br><a href="#automaticRefreshTime">automaticRefreshTime</a>
<br><a href="#background">background</a>
<br><a href="#chart">chart</a>
<br><a href="#chartClass_pie">chartClass_pie</a>
<br><a href="#chartTitle">chartTitle</a>
<br><a href="#data">data</a>
<br><a href="#dataInterval">dataInterval</a>
<br><a href="#depth">depth</a>
<br><a href="#detachedDistance">detachedDistance</a>
</font></td>
<td valign=top><font face="arial,verdana,helvetica" size=-2>
<a href="#detachedSlices">detachedSlices</a>
<br><a href="#doubleBufferingOff">doubleBufferingOff</a>
<br><a href="#floatingLabelFont">floatingLabelFont</a>
<br><a href="#floatingOnLegendOff">floatingOnLegendOff</a>
<br><a href="#font">font</a>
<br><a href="#foreground">foreground</a>
<br><a href="#graphInsets">graphInsets</a>
<br><a href="#insideLabelFont">insideLabelFont</a>
<br><a href="#insideLabelColor">insideLabelColor</a>
<br><a href="#labelDelimiter">labelDelimiter</a>
<br><a href="#label">label</a>
<br><a href="#labelposition">labelPosition</a>
</font></td>
<td valign=top><font face="arial,verdana,helvetica" size=-2>
<a href="#labelurl">labelURL</a>
<br><a href="#labelurltarget">labelURLTarget</a>
<br><a href="#legendColors">legendColors</a>
<br><a href="#legendFont">legendFont</a>
<br><a href="#legendImage">legendImage</a>
<br><a href="#legendLabels">legendLabels</a>
<br><a href="#legendOn">legendOn</a>
<br><a href="#legendPosition">legendPosition</a>
<br><a href="#locale">locale</a>
<br><a href="#outsideLabelFont">outsideLabelFont</a>
<br><a href="#outsideLabelColor">outsideLabelColor</a>
</font></td>
<td valign=top><font face="arial,verdana,helvetica" size=-2>
<a href="#percentDecimalCount">percentDecimalCount</a>
<br><a href="#percentLabelsOn">percentLabelsOn</a>
<br><a href="#percentLabelStyle">percentLabelStyle</a>
<br><a href="#pieLabelFont">pieLabelFont</a>
<br><a href="#pieLabelsOn">pieLabelsOn</a>
<br><a href="#pieRotationOn">pieRotationOn</a>
<br><a href="#pointingLabelFont">pointingLabelFont</a>
<br><a href="#pointingLabelColor">pointingLabelColor</a>
<br><a href="#printAsBitmap">printAsBitmap</a>
<br><a href="#sampleColors">sampleColors</a>
<br><a href="#sampleCount">sampleCount</a>
</font></td>
<td valign=top><font face="arial,verdana,helvetica" size=-2>
<a href="#sampleDecimalCount">sampleDecimalCount</a>
<br><a href="#sampleLabelColors">sampleLabelColors</a>
<br><a href="#sampleLabels">sampleLabels</a>
<br><a href="#sampleLabelsOn">sampleLabelsOn</a>
<br><a href="#sampleLabelStyle">sampleLabelStyle</a>
<br><a href="#sampleValues">sampleValues</a>
<br><a href="#selectionStyle">selectionStyle</a>
<br><a href="#seriesCount">seriesCount</a>
<br><a href="#seriesLabelColors">seriesLabelColors</a>
<br><a href="#seriesLabels">seriesLabels</a>
<br><a href="#seriesLabelsOn">seriesLabelsOn</a>
</font></td>
<td valign=top><font face="arial,verdana,helvetica" size=-2>
<a href="#singleClickURLOn">singleClickURLOn</a>
<br><a href="#sliceSeperatorColor">sliceSeperatorColor</a>
<br><a href="#sliceSeperatorOn">sliceSeperatorOn</a>
<br><a href="#titleFont">titleFont</a>
<br><a href="#thousandsDelimiter">thousandsDelimiter</a>
<br><a href="#valueLabelPrefix">valueLabelPrefix</a>
<br><a href="#valueLabelPostfix">valueLabelPostfix</a>
<br><a href="#valueLabelsOn">valueLabelsOn</a>
<br><a href="#valueLabelStyle">valueLabelStyle</a>
<br><a href="#url">url</a>
<br><a href="#urltarget">urltarget</a>
</font></td>
</tr>
</table>
<p>
<table BORDER=0 CELLSPACING=8 CELLPADDING=2 WIDTH=700>
<tr>
<td colspan=3>
<font face="verdana, arial" size=-1><b>PARAMETERS TO SET CHART VALUES</b></font>
</td>
</tr>
<tr bgcolor="#e0e0e0">
<a name="sampleValues"></a>
<td colspan=2><font face="verdana,arial,helvetica" size=-1><b>sampleValues</b></font></td></tr>
<tr><td valign=top width=40%><font face="verdana, arial" size=-1>
Sets the values of the pie. Only positive values can be used in the pie chart.
If multiple data series are used, there will be one pie per sample set, and
the number of slices per pie is the number of data series used.
</td>
<td valign=top width=60%><font face="verdana, arial" size=-2>
<param name="sampleValues" value="10.5, 30.5, 20, 5.1234"><hr size=1 color="#c0c0c0">
setSampleValues(0, new double[] {10.5,30.5,20,5.1234});<hr size=1 color="#c0c0c0">
sampleValues=10.5,30.5,20,5.1234
</font>
</td>
</tr>
<tr bgcolor="#e0e0e0">
<a name="sampleCount"></a>
<td colspan=2><font face="verdana,arial,helvetica" size=-1><b>sampleCount</b></font></td></tr>
<tr><td valign=top width=40%><font face="verdana, arial" size=-1>
Sets the number of pie slices if one data series is used or number of
pies if multiple data series are used.
</td>
<td valign=top width=60%><font face="verdana, arial" size=-2>
<param name="sampleCount" value=5><hr size=1 color="#c0c0c0">
setSampleCount(5);<hr size=1 color="#c0c0c0">
sampleCount=5
</td></tr>
<tr bgcolor="#e0e0e0">
<a name="seriesCount"></a>
<td colspan=2><font face="verdana,arial,helvetica" size=-1><b>seriesCount</b></font></td></tr>
<tr><td valign=top width=40%><font face="verdana, arial" size=-1>
Sets the number of data series in the chart. If multiple data series are
used, the slices in each pie will represent one data series.
Set the values per data series with the sampleValues_N parameter.
</td>
<td valign=top width=60%><font face="verdana, arial" size=-2>
<param name="seriesCount" value=3><hr size=1 color="#c0c0c0">
setSeriesCount(3);<hr size=1 color="#c0c0c0">
seriesCount=3
</td></tr>
<tr bgcolor="#e0e0e0">
<td colspan=2><font face="verdana,arial,helvetica" size=-1><b>sampleValues_N</b></font></td></tr>
<tr><td valign=top width=40%><font face="verdana, arial" size=-1>
Sets the sample values for the specified data series. You must
set the series count first.
</td>
<td valign=top width=60%><font face="verdana, arial" size=-2>
<param name="sampleValues_0" value="200,100,300,250,400"><br>
<param name="sampleValues_1" value="300,150,200,150,300"><hr size=1 color="#c0c0c0">
setSampleValues(0, new double[] {200,100,300,250,400});<br>
setSampleValues(1, new double[] {300,150,200,150,300});<hr size=1 color="#c0c0c0">
sampleValues_0=200,100,300,250,400<br>
sampleValues_1=200,100,300,250,400<br>
</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>
<param name="chartTitle" value="This is my title"><br>
<param name="chartTitle" value="Linebreak\nin title"><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>
<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 appears in the
legend, as tooltip like labels when the mouse moves over the pie slices
or as static labels within each slice. Use the legendOn, sampleLabelsOn,
and sampleLabelStyle parameter to control how the labels are displayed.
</td>
<td valign=top width=60%><font face="verdana, arial" size=-2>
<param name="sampleLabels" value="one,two,three,four"><hr size=1 color="#c0c0c0">
setSampleLabels(new String[] {"one","two","three","four"});<br>
setSampleLabel(0, "first label");<br>
setSampleLabel(1, "second label");<hr size=1 color="#c0c0c0">
sampleLabels=one,two,three,four
</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 displayed in the legend.
</td>
<td valign=top width=60%><font face="verdana, arial" size=-2>
<param name="sampleLabelColors" value="red, #7f0000, blue"><hr size=1 color="#c0c0c0">
setSampleLabelColor(0, Color.red);<br>
setSampleLabelColor(1, new Color(0x7f0000));<br>
setSampleLabelColor(2, Color.blue);<hr size=1 color="#c0c0c0">
sampleLabelColors=red,%237f0000,blue
</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 are displayed
in the legend when multiple data series are used.
</td>
<td valign=top width=60%><font face="verdana, arial" size=-2>
<param name="seriesLabels" value="2000,2001,2001"><hr size=1 color="#c0c0c0">
setSeriesLabels(new String[] {"2000","2001","2002"});<br>
setSeriesLabel(0, "first label");<hr size=1 color="#c0c0c0">
seriesLabels=2000,2001,2002
</font>
</td>
</tr>
<tr bgcolor="#e0e0e0">
<a name="seriesLabelColors"></a>
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -