From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.5 required=5.0 tests=BAYES_05,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,bf1120cc5ca0ddec X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!t31g2000cwb.googlegroups.com!not-for-mail From: "Gene" Newsgroups: comp.lang.ada Subject: Re: 2d graph Date: 24 Mar 2006 19:12:25 -0800 Organization: http://groups.google.com Message-ID: <1143256345.188013.158890@t31g2000cwb.googlegroups.com> References: NNTP-Posting-Host: 70.101.174.178 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1143256350 26606 127.0.0.1 (25 Mar 2006 03:12:30 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sat, 25 Mar 2006 03:12:30 +0000 (UTC) In-Reply-To: User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: t31g2000cwb.googlegroups.com; posting-host=70.101.174.178; posting-account=ZFTPUQ0AAABW8AYEou9RtrBd-zTxz0_y Xref: g2news1.google.com comp.lang.ada:3597 Date: 2006-03-24T19:12:25-08:00 List-Id: Anders Wirzenius wrote: > I want to produce a 2d graph to be presented as an image on a HTML page. > Does anyone have an Ada example for, say, SVG? I don't have an ada example, but you can do all the graph drawing with standard javascript so that your ada code only needs to generates a javascript call. An example that uses tables and stretched bitmaps to draw histograms is at http://www.dean.usma.edu/feedback/report.htm Click on any of the "histogram" links. You're welcome to use the javascript graphing routines you'll find in the listing of the left hand frame. If you need a line graph, you can use the same approach with the javascript graphics library at http://www.walterzorn.com/jsgraphics/jsgraphics_e.htm See the "function plotter" link for example. I have used this successfully on several small projects. Again, your ada has little to do. Just set up calls to javascript routines.