logo To Foot
© J R Stockton, ≥ 2010-02-25

Plot Web Site Statistics.

No-Frame * Framed Index * Frame This
Links within this site :-
This page needs JavaScript & include1.js
and wants styles-a.css.

Plot

This page was written chiefly for my own use. It plots statistics which I log for my Demon Homepages web site, and anything else compatible. Except for MSIE ≤ 8+, where only inferior plotting is available, the page can save plots as PNG files, which can be used in Web pages.

File :
Timeout :                   Test Only

Operation

First, read the rest of this page. Try the "Sample" button, which reads the editable "Sample Data" set below. Then use the controls which have appeared. To plot a real file, set the "File" field and press "Read File".

"Timeout" should not need to be changed; see Check Local Links and Anchors.

The effect of checking "Test Only" is undefined and variable.

Plotting uses a canvas element; see External Links. MSIE ≤ 8+ does not support the canvas element. Creating a positioned div per point is crude, but works in all my browsers. By default, it is used only if MSIE is detected.

"Daily" shows one point for each listed date. "Weekly" shows an average over seven points centred on the listed date. "Both" shows both. If "Zero" is checked, the baseline represents zero.

Display

Plotting (except for MSIE ≤ 8 mode) is done on a yellow-bordered canvas. When plotting is completed successfully, the canvas is visually replaced by a corresponding lime-bordered PNG img. To get a PNG file, right-click the image and use "Save Image As"; or copy'n'paste into Windows Paint; or similar.

With my recent versions, Firefox 3.0.15 and Opera 10.10 seemingly cannot put text on a canvas, but Firefox 3.5.5, Safari and Chrome can.

If the span of an ordinate crosses a given limit, that limit will be shown by a red line. Default values are for current Demon Homepages.

Below the baseline, the longer daily X-axis ticks mark Saturday and Sunday. Lower marks or numbers show new months. Faint vertical lines mark dates with data.

Sample Data

The design expects one valid data line per date, no more, but tolerates missing days. Valid lines are those matching the numbers/whitespace pattern shown. This sample data set is editable.

COUNT is plotted differentially; MB and GB/Mo are plotted as given.

Pending

Want to read just counts for a day with missing quotas. Could have better treatment of missing days in "Weekly"?

External Links

Home Page
Mail: no HTML
© Dr J R Stockton, near London, UK.
All Rights Reserved.
These pages are tested mainly with Firefox 3.0 and W3's Tidy.
This site, http://www.merlyn.demon.co.uk/, is maintained by me.
Head.