Subversion-Projekte lars-tiefland.php_share

Revision

Blame | Letzte Änderung | Log anzeigen | RSS feed

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
<LINK REL="Start" HREF="index.html">
<LINK REL="Contents" HREF="toc.html">
<LINK REL="Prev" HREF="82Bargraphs.html">
<LINK REL="Next" HREF="822Displayingthevalueofeachbar.html">
<STYLE TYPE="text/css"><!--
BODY { font-family: serif }
H1 { font-family: sans-serif }
H2 { font-family: sans-serif }
H3 { font-family: sans-serif }
H4 { font-family: sans-serif }
H5 { font-family: sans-serif }
H6 { font-family: sans-serif }
SUB { font-size: smaller }
SUP { font-size: smaller }
PRE { font-family: monospace }
A { text-decoration: none }
--></STYLE>
</HEAD>
<BODY>
<A HREF="toc.html">Contents</A>
<A HREF="82Bargraphs.html">Previous</A>
<A HREF="822Displayingthevalueofeachbar.html">Next</A>
<HR NOSHADE>
<H3><A NAME="8_2_1">8.2.1 Adjusting the width of the bars</A></H3>
<P> JpGraph allows you to easy customize the appearance of the bar
 graph, for example to change the width of each bar. The width of each
 bar can be specified either as a fraction of the width between each
 major tick or as an absolute width (in pixels).</P>
<P> To set the width in fraction you use the method <A href="../ref/BarPlot.html#_BARPLOT_SETWIDTH">
 SetWidth()</A> and to set the width in pixels you use the <A href="../ref/BarPlot.html#_BARPLOT_SETABSWIDTH">
 SetAbsWidth()</A></P>
<P> As an example let's take the previous example and set the width to
 100% of the distance between the ticks. The example will now become</P>
<P><DIV class="example">
<BR> <A href="exframes/frame_example20.html" target="blank"><IMG border="0"
HEIGHT="200"  src="img/example20.png" WIDTH="300"></A>
<BR><B>Figure 30:</B> Setting the width of the bars to 100% of the tick
 width <A href="exframes/frame_example20.html" target="blank">[src]</A>&nbsp;
<P></P>
</DIV></P>
<P></P>
<HR NOSHADE>
<A HREF="toc.html">Contents</A>
<A HREF="82Bargraphs.html">Previous</A>
<A HREF="822Displayingthevalueofeachbar.html">Next</A>
</BODY>
</HTML>