Forums

This topic is locked

Any way to create dynamic bar graphs?

Posted 10 Sep 2001 22:49:23
1
has voted
10 Sep 2001 22:49:23 Mark Pickus posted:
Is there any way in Ultra Dev to create a dynamic bar graph based on the records returned from search parameters submitted on a form?

Replies

Replied 11 Sep 2001 21:08:34
11 Sep 2001 21:08:34 Owen Eastwick replied:
Yes, If your selection is a numerical value that can be represented as a percentage. For instance, lets say that you have some radio buttons or a list/menu that asks to select a value between 1 and 10.
<pre id=code><font face=courier size=2 id=code>
varOriginalValue = Request("RadioButtonName"
varPercent = varOriginalValue * 10</font id=code></pre id=code>

Then use varPercent to represent the width (or height) of an image so as to represent a bar. Something like:
<pre id=code><font face=courier size=2 id=code>
&lt;td&gt;&lt;img src="Images/RatingBar.gif" width="&lt;% = varPercent %&gt;%" height="17"&gt;&lt;/td&gt;</font id=code></pre id=code>

Regards

Owen.

Multiple Parameter UD4 / Access 2000 Database Search Tutorial:
www.tdsf.co.uk/tdsfdemo

Reply to this topic