Re: Graphing
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.javascript archive

Re: Graphing

From: Dr John Stockton <jrs@merlyn.demon.co.uk>
Date: Fri Nov 04 2005 - 22:31:01 CET

JRS: In article <kPOF$NG53naDFwy4@merlyn.demon.co.uk>, dated Thu, 3 Nov
2005 21:15:37, seen in news:comp.lang.javascript, Dr John Stockton
<jrs@merlyn.demon.co.uk> posted :
>JRS: In article <Rzfaf.1283$uQ6.62881@news.optus.net.au>, dated Thu, 3
>Nov 2005 03:35:13, seen in news:comp.lang.javascript, RobG
><rgqld@iinet.net.au> posted :
>>Dr John Stockton wrote:
>>[...]
>>>
>>> TESTING very crudely in
>>> <URL:http://www.merlyn.demon.co.uk/js-tests.htm#BC>
>>> Array A is bar-charted on pressing "??".
>>>
>>> I may improve it tomorrow.
>>
>>
>>Can you add units to the style attributes for height, width, etc.?
>>
>> ...left:' + 20*(J+1) +'px; height:' + (200-20*A[J]) + 'px; width:20px"
>
>
>Easily done, though that line has changed and the whole thing is
>somewhat better now. It needs more work on scaling; and I can probably
>now grow bars up rather than anti-bars down. But the principle is
>established.

Or established for IE4. I looked at it in IE6 today and was greatly
disappointed. There's a snapshot of the best IE4 output at
       <URL:http://www.merlyn.demon.co.uk/barchart.gif> (8.5K), with one
colour wrong (my Paint seems to have its paint-pots muddled). The lines
are zero and mean.
 

-- 
 © John Stockton, Surrey, UK.  ?@merlyn.demon.co.uk   Turnpike v4.00   IE 4 ©
 <URL:http://www.jibbering.com/faq/>  JL/RC: FAQ of news:comp.lang.javascript 
 <URL:http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources.
 <URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.
Received on Mon Nov 21 03:19:26 2005