[En-Nut-Discussion] Web Charts? Use java?

Tim Tait tim.tait1 at gmail.com
Tue Feb 21 05:46:11 CET 2006


A followup to my own question, I was able to get a quick Java applet
graph working. I used the 2D Line chart applet from
<http://www.reconn.us/java.html> which has free binary for personal use.
After packing the .class into a jar, it only occupied 11K vs 22K for the
class. I guess urom does no compression?

Even managed to use ASP to fill in the graph parameter values. Cool stuff.

When I get farther into my project I think I'll write my own graph 
applet, but for now I know it can be done using only 10% off the flash 
space.

Thanks for the help Edwin.

Tim

Tim Tait wrote:
> 
> Edwin-
> 
> Thanks for the quick reply.
> 
> Edwin van den Oetelaar wrote:
> 
>> Things that come to my mind ...
>>
>> 1) Use flash (in client) let Ethernut serve XML data.  (works for sure)
> 
> 
> I'm not a fan of flash, nor have I experience any with developing using 
> it. But the include flash on the httpd sample does not work in my 
> FireFox browser. How would flash compare in size?
> 
>> 2) Use javascript in client to make nice graphic from XML (works for 
>> sure) think AJAX ..
> 
> 
> Interesting.
> 
>> 3) Let Ethernut generate page with data in JavaScript arrrays, let the 
>> client make nice graphics from this data. (no xml parse on client)
> 
> 
> Sounds easy:) I found some nice shareware that does this using VML 
> <http://www.structura.info/XYGraph/XYGraphDemo.htm>, but it only seems 
> to only work under IE not Firefox:( Plus it's a bit big... I guess Java 
> byte code has an edge there.
> 
>> 4) Let Ethernut generate PNG or GIF file from data and serve that to 
>> client (needs lots of work/memory on ethernut)
> 
> 
> I think client-side graphic generation is the way to go.
> 
>> 5) yes use java to build the graphic, but depends on VM on client 
>> which is less common then flash on client
> 
> 
> Still sounds like the best option to me... Don't most people have a java 
> VM installed? Just need that java applet code:)
> 
>>
>> Good luck,
>> Edwin van den Oetelaar
>>
> Thanks again-
> 
> Tim
> 
>> Tim Tait wrote:
>>
>>>
>>> Has anbody done anything with serving dynamic data charts from 
>>> ethernut? I want to to display simple line graph of sensor readings 
>>> over time. I am thinking that a java applet is the way to go. Most of 
>>> the applets out there seem to big, one "tChart" seems reasonable at 
>>> 17kb, put you have to pay to get source. Is there another way?
>>>
>>> Thanks-
>>>
>>> Tim
>>>





More information about the En-Nut-Discussion mailing list