Thanks Simon,
FusionCharts does look really swish and is probably where I should aim to end 
up. For the moment though I think I'll get things working with J plot before I 
investigate FusionCharts more fully.

I came across the answer of how to use platimg to save pd output on the 
jwiki/Addons/platimg page, where it explains how to Capture Graphics from a 
isigraph control.

Instead of:
   pd 'visible 0'
   pd 'isi'
   pd 'save png'

I can substitute:
   pd 'visible 0'
   pd 'isi'
   'plot.png' writeimg~ glqall''

Or without writing a file:
   plotpng=: 'png' putimg~ glqall''

I notice that the PNG files created by platimg are bigger than their image3 
equivalents. I suspect that this is because they include the alpha channel?  Is 
there a way to write a PNG without alpha channel using platimg (or even better 
only 256 colours?)?  If not I suppose I could just write a GIF instead of PNG.

--Simon Ampleman wrote:
> I suggest you take a look at FusionCharts v3. 
> http://fusioncharts.com It is using Flash, and you provide 
> the data with XML files (easy to output in J), it gives 
> amazing results on the web and it has a very small footprint.
> 
> However, if you still want to use J plot, you can simply 
> output them in BMP and use a simple BMP2PNG.exe free software 
> (http://pmt.sourceforge.net/bmp2png/index.html for example), 
> to get the PNG output. It will only add a few millisecond in 
> your overall process. 
> We used this method for years before using FusionCharts.
> 
> Have a nice day!
> 
> Simon
> 
> 
> Le 2007-10-01 20:00, Sherlock, Ric a écrit :
> > I've been investigating interactively creating plots for 
> display on a 
> > web site. Although the ideal option would be to have some 
> vector-based 
> > format (e.g. SVG) that will display inline on a web page, there 
> > doesn't seem to be a realistic cross-browser option at the 
> moment. So 
> > I'm resigned to using a pixel-based image format (probably PNG) for 
> > the time being.
> > 
> > As far as I've been able to figure out, plot & pd use the 
> image3 addon 
> > to provide PNG creation However from a post in an earlier 
> thread I got 
> > the impression that the much "lighter" platimg addon may 
> also be used. 
> > Is this true and if so how?
> > 
> > Also, it would be nice to have an option in Plot to stream 
> the image 
> > contents rather than write them to a file (in the same way as there 
> > are the PDF and PDFR output options).
 
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to