| 1 |
lars |
1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
|
|
|
2 |
<HTML>
|
|
|
3 |
<HEAD>
|
|
|
4 |
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
|
|
5 |
<LINK REL="Start" HREF="index.html">
|
|
|
6 |
<LINK REL="Contents" HREF="toc.html">
|
|
|
7 |
<LINK REL="Prev" HREF="926Addingdropshadowstotheslices.html">
|
|
|
8 |
<LINK REL="Next" HREF="93Polarplots.html">
|
|
|
9 |
<STYLE TYPE="text/css"><!--
|
|
|
10 |
BODY { font-family: serif }
|
|
|
11 |
H1 { font-family: sans-serif }
|
|
|
12 |
H2 { font-family: sans-serif }
|
|
|
13 |
H3 { font-family: sans-serif }
|
|
|
14 |
H4 { font-family: sans-serif }
|
|
|
15 |
H5 { font-family: sans-serif }
|
|
|
16 |
H6 { font-family: sans-serif }
|
|
|
17 |
SUB { font-size: smaller }
|
|
|
18 |
SUP { font-size: smaller }
|
|
|
19 |
PRE { font-family: monospace }
|
|
|
20 |
A { text-decoration: none }
|
|
|
21 |
--></STYLE>
|
|
|
22 |
</HEAD>
|
|
|
23 |
<BODY>
|
|
|
24 |
<A HREF="toc.html">Contents</A>
|
|
|
25 |
<A HREF="926Addingdropshadowstotheslices.html">Previous</A>
|
|
|
26 |
<A HREF="93Polarplots.html">Next</A>
|
|
|
27 |
<HR NOSHADE>
|
|
|
28 |
<H3><A NAME="9_2_7">9.2.7 Another variant of 2D Pie plots</A></H3>
|
|
|
29 |
<P> As mentioned in the beginning there are two versions of the 2D pie
|
|
|
30 |
plots. The normal pie plot created as an instance of <A href="../ref/PiePlot.html#_C_PIEPLOT">
|
|
|
31 |
class PiePlot</A> and a variant created as an instance of <A href="../ref/PiePlot.html#_C_PIEPLOTC">
|
|
|
32 |
class PiePlotC</A></P>
|
|
|
33 |
<P> This variant is an extension of the standard PiePlot in the sense
|
|
|
34 |
that it also have a filled circle in the center. The following example
|
|
|
35 |
illustrates this</P>
|
|
|
36 |
<P><DIV class="example">
|
|
|
37 |
<BR> <A href="exframes/frame_piecex1.html" target="blank"><IMG border="0"
|
|
|
38 |
HEIGHT="300" src="img/piecex1.png" WIDTH="300"></A>
|
|
|
39 |
<BR><B>Figure 133:</B> Example of the variant of pie plot with a filled
|
|
|
40 |
center circle <A href="exframes/frame_piecex1.html" target="blank">
|
|
|
41 |
[src]</A>
|
|
|
42 |
<P></P>
|
|
|
43 |
</DIV></P>
|
|
|
44 |
<P></P>
|
|
|
45 |
<P> Since the PiePlotC is an extension to the basic pie plot all the
|
|
|
46 |
normal formatting you can do for pie plots you can also do for the
|
|
|
47 |
PiePlotC .</P>
|
|
|
48 |
<P> The additional formatting only concerns the filled middle circle.
|
|
|
49 |
You have the option of adjusting size, fill color and all font
|
|
|
50 |
properties. You perform these operations with the methods</P>
|
|
|
51 |
<P></P>
|
|
|
52 |
<TABLE>
|
|
|
53 |
<TR><TD><A href="../ref/PiePlotC.html#_PIEPLOTC_SETMIDCOLOR">
|
|
|
54 |
PiePlotC::SetMidColor()</A></TD><TD>Set fill color of mid circle</TD></TR>
|
|
|
55 |
<TR><TD><A href="../ref/PiePlotC.html#_PIEPLOTC_SETMIDSIZE">
|
|
|
56 |
PiePlotC::SetMidSize()</A></TD><TD>Set size (fraction of radius)</TD></TR>
|
|
|
57 |
<TR><TD><A href="../ref/PiePlotC.html#_PIEPLOTC_SETMIDTITLE">
|
|
|
58 |
PiePlotC::SetMidTitle()</A></TD><TD>Set title string (may be
|
|
|
59 |
multi-lined)</TD></TR>
|
|
|
60 |
<TR><TD><A href="../ref/PiePlotC.html#_PIEPLOTC_SETMID">
|
|
|
61 |
PiePlotC::SetMid()</A></TD><TD>Set all parameters in a single method
|
|
|
62 |
call</TD></TR>
|
|
|
63 |
</TABLE>
|
|
|
64 |
<P> In addition to the normal CSIM for PiePlot:s the center area is also
|
|
|
65 |
a CSIM hotspot. You specify the target CSIM with a call to <A href="../ref/PiePlotC.html#_PIEPLOTC_SETMIDCSIM">
|
|
|
66 |
PiePlotC::SetMidCSIM()</A></P>
|
|
|
67 |
<P> The next example shows an example with some more innovative
|
|
|
68 |
formatting. In this example we have :</P>
|
|
|
69 |
<UL>
|
|
|
70 |
<LI> hidden the frame around the pie graph</LI>
|
|
|
71 |
<LI> exploded all the slices</LI>
|
|
|
72 |
<LI> added drop shadow to the individual slices (and the center filled
|
|
|
73 |
circle)</LI>
|
|
|
74 |
<LI> specified individual multi line labels.</LI>
|
|
|
75 |
<LI> changed the font for the title to a TTF font.</LI>
|
|
|
76 |
</UL>
|
|
|
77 |
<P><DIV class="example">
|
|
|
78 |
<BR> <A href="exframes/frame_piecex2.html" target="blank"><IMG border="0"
|
|
|
79 |
HEIGHT="400" src="img/piecex2.png" WIDTH="400"></A>
|
|
|
80 |
<BR><B>Figure 134:</B> PiePlotC with some more innovative formatting to
|
|
|
81 |
make it more interesting. <A href="exframes/frame_piecex2.html" target="blank">
|
|
|
82 |
[src]</A>
|
|
|
83 |
<P></P>
|
|
|
84 |
</DIV></P>
|
|
|
85 |
<P></P>
|
|
|
86 |
<P></P>
|
|
|
87 |
<HR NOSHADE>
|
|
|
88 |
<A HREF="toc.html">Contents</A>
|
|
|
89 |
<A HREF="926Addingdropshadowstotheslices.html">Previous</A>
|
|
|
90 |
<A HREF="93Polarplots.html">Next</A>
|
|
|
91 |
</BODY>
|
|
|
92 |
</HTML>
|