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="72Bargraphs.html"><LINK REL="Next" HREF="722Displayingthevalueofeachbar.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="72Bargraphs.html">Previous</A><A HREF="722Displayingthevalueofeachbar.html">Next</A><HR NOSHADE><H3><A NAME="7_2_1">7.2.1 Adjusting the width of the bars</A></H3><P> JpGraph allows you to easy customize the appearance of the bargraph, for example to change the width of each bar. The width of eachbar can be specified either as a fraction of the width between eachmajor 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 to100% 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/img/img/img/img/img/example20.png" WIDTH="300"></A><BR><B>Figure 34:</B> Setting the width of the bars to 100% of the tickwidth <A href="exframes/frame_example20.html" target="blank">[src]</A> <P></P></DIV></P><P></P><HR NOSHADE><A HREF="toc.html">Contents</A><A HREF="72Bargraphs.html">Previous</A><A HREF="722Displayingthevalueofeachbar.html">Next</A></BODY></HTML>