1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118
|
<html>
<head>
<LINK REL=StyleSheet HREF="../style/style.css" TYPE="text/css">
</head>
<a href="area.html"><--previous</a> |
<a href="../index.html">contents</a> |
<a href="hlc.html">next--></a>
<hr>
<body>
<h1>Floating Bar Graphs</h1>
<table width="80%">
<tr>
<td>
<center>
<img src="../images/float.png">
</center>
</td>
<td>
<center>
<img src="../images/float3D.png">
</center>
</td>
</tr>
<tr>
<td>
<center>
<b> FloatingBar </b>
</center>
</td>
<td>
<center>
<b> FloatingBar3D </b>
</center>
</td>
</tr>
</table>
<h2> Data Format </h2>
<p> The FloatingBar .setData() method accepts an arbitrary number of tuples.
The first element of the tuple is a list of the lower values of the floating
bar, and the second element is a list of the upper values. Here is an example
that plots a single set of data (spaced for clarity):</p>
<code>
<table width="100%" cellpadding="1" cellspacing="0" border="0" bgcolor="#B82619">
<tr>
<td>
<table cellpadding="5" cellspacing="0" border="0" bgcolor="#FFFFFF" width="100%">
<tr>
<td valign="top">
<pre><font color="#000000">x</font><font color="#0000C0">.</font><font color="#000000">setData</font><font color="#0000C0">(</font>
<font color="#0000C0">(</font>
<font color="#0000C0">[</font><font color="#0080C0">10</font><font color="#0000C0">,</font> <font color="#0080C0">20</font><font color="#0000C0">,</font> <font color="#0080C0">40</font><font color="#0000C0">,</font> <font color="#0080C0">20</font><font color="#0000C0">,</font> <font color="#0080C0">0</font><font color="#0000C0">]</font><font color="#0000C0">,</font>
<font color="#0000C0">[</font><font color="#0080C0">60</font><font color="#0000C0">,</font> <font color="#0080C0">90</font><font color="#0000C0">,</font> <font color="#0080C0">80</font><font color="#0000C0">,</font> <font color="#0080C0">50</font><font color="#0000C0">,</font> <font color="#0080C0">80</font><font color="#0000C0">]</font>
<font color="#0000C0">)</font>
<font color="#0000C0">)</font><font color="#000000"></font></pre>
</td>
</tr>
</table>
</td>
</tr>
</table>
</code>
<p> ... and for multiple sets we might do the following: </p>
<code>
<table width="100%" cellpadding="1" cellspacing="0" border="0" bgcolor="#B82619">
<tr>
<td>
<table cellpadding="5" cellspacing="0" border="0" bgcolor="#FFFFFF" width="100%">
<tr>
<td valign="top">
<pre><font color="#000000">x</font><font color="#0000C0">.</font><font color="#000000">setData</font><font color="#0000C0">(</font>
<font color="#0000C0">(</font>
<font color="#0000C0">[</font><font color="#0080C0">10</font><font color="#0000C0">,</font> <font color="#0080C0">20</font><font color="#0000C0">,</font> <font color="#0080C0">40</font><font color="#0000C0">,</font> <font color="#0080C0">20</font><font color="#0000C0">,</font> <font color="#0080C0">0</font><font color="#0000C0">]</font><font color="#0000C0">,</font>
<font color="#0000C0">[</font><font color="#0080C0">60</font><font color="#0000C0">,</font> <font color="#0080C0">90</font><font color="#0000C0">,</font> <font color="#0080C0">80</font><font color="#0000C0">,</font> <font color="#0080C0">50</font><font color="#0000C0">,</font> <font color="#0080C0">80</font><font color="#0000C0">]</font>
<font color="#0000C0">)</font><font color="#0000C0">,</font>
<font color="#0000C0">(</font>
<font color="#0000C0">[</font><font color="#0080C0">0</font><font color="#0000C0">,</font> <font color="#0080C0">80</font><font color="#0000C0">,</font> <font color="#0080C0">40</font><font color="#0000C0">,</font> <font color="#0080C0">10</font><font color="#0000C0">,</font> <font color="#0080C0">0</font><font color="#0000C0">]</font><font color="#0000C0">,</font>
<font color="#0000C0">[</font><font color="#0080C0">30</font><font color="#0000C0">,</font> <font color="#0080C0">100</font><font color="#0000C0">,</font> <font color="#0080C0">90</font><font color="#0000C0">,</font> <font color="#0080C0">20</font><font color="#0000C0">,</font> <font color="#0080C0">40</font><font color="#0000C0">]</font>
<font color="#0000C0">)</font>
<font color="#0000C0">)</font><font color="#000000"></font></pre>
</td>
</tr>
</table>
</td>
</tr>
</table>
</code>
</body>
<hr>
<table width="100%">
<tr>
<td>
<a href="area.html"><--previous</a> |
<a href="../index.html">contents</a> |
<a href="hlc.html">next--></a>
</td>
<td align="right">
(12/31/03)
</td>
</tr>
</table>
<center> PyGDChart User's Manual </center>
</html>
|