Free Republic
Browse · Search
General/Chat
Topics · Post Article

To: Ray76
Making a bar chart

Bar Graph Title
Item  Value  Percent
  A   44.52  12.49%  
  B   33.05   9.28%  
  C   28.65   8.04%  
  D   27.23   7.64%  
  E   26.97   7.57%  
  F   25.78   7.23%  
  G   23.21   6.51%  
You will need a small image file to supply one unit of bar. The image will be stretched to fill the height and width you specify.
81 posted on 09/07/2016 3:52:24 PM PDT by Ray76 (Americanism, not globalism, will be our credo!)
[ Post Reply | Private Reply | To 70 | View Replies ]


To: Ray76
Here is another way to make a bar chart

Bar Graph Title

  A   44.52  12.49%  
  B   33.05   9.28%  
  C   28.65   8.04%  
  D   27.23   7.64%  
  E   26.97   7.57%  
  F   25.78   7.23%  
  G   23.21   6.51%  

This method uses table cells filled with a clear image. The color of each bar is determined by the background color of the cell, not by the color of an image. The cell contains the clear image, the image width is stretched to the width specified on the img tag, which causes the table cell to expand to fit the image.

There's a little more setup involved than in the first method, for example in order for each bar to have a unique length each row in the chart must be it's own table, but it's worth the effort.

82 posted on 09/07/2016 4:54:13 PM PDT by Ray76 (Americanism, not globalism, will be our credo!)
[ Post Reply | Private Reply | To 81 | View Replies ]

Free Republic
Browse · Search
General/Chat
Topics · Post Article


FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson