News

News Archieve

Latest news

JSLab Plot Tool

6. November 2008

As part of a larger animation framework I have created a plotting tool for visualizing functions. It is made entirely in JavaScript, uses no graphics and the generated source code is W3C compliant.

The first beta is ready for public viewing (and hopefully feedback) and currently supports

Right now only one function can be plotted at a time but I hope to add support for multiple plots later on as well as some numerical methods for line intersection and maybe integrals and differentiation. (any math geeks out there are welcome to join the project)

The program uses an absolute positioned div for the graph canvas area. Each point on the curve is internally calculated and stored as the real function values. When the point is plotted it is converted to a div and positioned relative to the canvas taken axis scaling into account.

This creates a lot of divs but IE, Firefox, Opera and Safari seems to cope fine when the number is no greater than 1500 points.

All the positioning which is done unfortunately throws of IE6 and I haven't tested in IE8 (as it is still beta) but otherwise it seems to be pretty stable.

You can find it at http://www.jslab.dk/tools.plot.php

Navigation overview

Projects

In the project section you will find the major scripts which I am working on. If you are curious about the Element Prototype Extension (EPE) and/or the Uniform Event Model (UEM) go here for a wealth of information.

Standard Library

My collection of general purpose utility functions. Go here for extensions to the Array object, the Date object, XMLHttpRequest object etc.

Articles

Small pieces on various techniques. Only updated when I have the time - which is not often. List of articles.

Tools

A collection of tools and resources for web development..

The rest of the pages should be self-explanatory.