AW: chart in jsp

2003-03-13 Thread Wollbold Gerhard , ITS-IT
JFreeChart verwende ich für die Routerüberwachung.
Dort wird angeblich das 2d Api korrekt unterstütz. Damit müßte das Teil auch
serverseitig vernünftig laufen.

Gerhard

-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Gesendet am: Montag, 26. März 2001 14:33
An: [EMAIL PROTECTED]
Betreff: RE: chart in jsp 

Hello Altug,

You could try jFreeChart, an open source project found at
http://www.jrefinery.com/jfreechart/index.html.  

JFreeChart is an open-source Java class library for generating charts and
has the following features: 
* supports bar charts (horizontal and vertical), line charts, pie
charts, xy-plots 
  (numerical and time series) and high/low/open/close charts; 
* uses data from any source that supports the defined interfaces; 
* based on the Java 2D API; 
* available in source code form (subject to the terms of the GNU
Lesser General Public Licence); 
* requires JDK 1.2.2 or later; 


You could also have a look at jetchart. It's a very easy to use and
versatile java applet.
I'ts not a free package but it's not too expensive (around $160).  You can
find it at:
 www.jinsight.com

You can trap interaction with the graphic (if the user clicks on a bar, you
can branch to an hyperlink, etc).

Hope that helps,

Regards,
Todd G. Nist


-Original Message-
From: Altug Altintas (Koç.Net) [mailto:[EMAIL PROTECTED]
Sent: Monday, March 26, 2001 5:25 AM
To: '[EMAIL PROTECTED]'
Subject: chart in jsp 



are there  any way to draw a dynamic chart in jsp ? 

any source  or idea ? 

thanks .. 


The information in this electronic mail (e-mail) message may
be confidential and for use of only the named recipient.  The
information may be protected by privilege, work product immunity
or other applicable law.  If you are not the intended recipient
the retention, dissemination, distribution or copying of this
e-mail message is strictly prohibited.  If you receive this e-mail
message in error please notify us immediately by telephone
at 770-723-1011 or [EMAIL PROTECTED]  Thank you. 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: chart in jsp

2001-03-30 Thread Simon Timothy McMenzie

Jeff,

do you have any examples we all could take a look at please?

Regards,

Simon Mc
Cheshire, UK.

- Original Message -
From: "Noll, Jeff HS" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: 27 March 2001 16:15
Subject: RE: chart in jsp


With a little bit of effort, you can make some pretty impressive completely
dynamic graphs using SVG. I actually use a servlet for this that transforms
XML data from oracle into SVG. Then I use a jsp:include to get the graph
into the jsp page. Of course, the one caveat is that it requires an SVG
plugin to view the graph, but once you have it its a great tool.

I've got it set up so that once the query to get the XML out of Oracle is
written, I can do bar, pie, and line graphs complete with drill down views
of just about any data. The real work is in the XSL stylesheet you create,
which definately isn't a trivial task.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 27, 2001 12:21 AM
To: [EMAIL PROTECTED]
Subject: Re: chart in jsp



The only dynamic charts I've seen have used fixed size images combined
dynamically to form a graph, chart, tree, etc.

sorry, no code.

Neill Laney
http://home.nc.rr.com/nlaney
--
Web Developer/Technical Support Specialist.





Altuð

Altýntaþ To:
"'[EMAIL PROTECTED]'"
(Koç.Net)[EMAIL PROTECTED]

[EMAIL PROTECTED]cc:

et      Subject: chart in jsp



03/26/2001

05:24 AM

Please

respond to

tomcat-user










are there  any way to draw a dynamic chart in jsp ?

any source  or idea ?

thanks ..







Re: chart in jsp

2001-03-29 Thread stefan werner

hi jeff ,hi all,
the servlet you use is a servlet 2.3 stuff, i think.
is there any url to take a look at this code?
i am involved in creating svg's and not very familar with writing servlets.
but i'd like to show my interactive work.
i tried this ( i found in german java-magazin 04/2001):

import javax.servlet.*;
import javax.servlet.http.*;
import java.util.*;
import org.apache.batik.transcoder.*;
import org.xml.sax.*;
import java.io.*;

public class BatikFilter implements Filter{
  private FilterConfig config = null;
  private String format = "jpeg";



  public BatikFilter() {
  }
  public void doFilter(ServletRequest parm1, ServletResponse parm2,
FilterChain parm3) throws java.io.IOException,
javax.servlet.ServletException {

SpoofResponse spoof = new SpoofResponse();
parm3.doFilter(parm1, spoof);
String uri = "";

if (parm1 instanceof HttpServletRequest)
{
  HttpServletRequest httpReq = (HttpServletRequest) parm1;

  uri = httpReq.getRequestURI().toString();
}

String localFormat = (String) parm1.getParameter("format");
if (localFormat != null) format = localFormat;

try
{
  String ctype = parm1.getContentType();

  if ((ctype == null) | ((ctype != null)  (ctype.indexOf("svg")
!= -1)))
  {
Class transcoderClass = (Class) handlers.get(format);
if (transcoderClass == null) return;

Transcoder trans = (Transcoder) transcoderClass.newInstance();


trans.addTranscodingHint(org.apache.batik.transcoder.XMLAbstractTranscoder.K
EY_XML_PARSER_CLASSNAME,
 "org.xml.sax.XMLReader");
ByteArrayOutputStream os = new ByteArrayOutputStream();

TranscoderInput tip = new TranscoderInput (new InputStreamReader
(new ByteArrayInputStream (spoof.getBuffer(;
tip.setURI(uri);

TranscoderOutput top;

if (format.equals ("svg"))
{
  top = new TranscoderOutput (new OutputStreamWriter (os));
}
else
{
  top = new TranscoderOutput (os);
}

trans.transcode(tip, top);

byte[] buffer = os.toByteArray();

parm2.setContentType((String) mimetypes.get(format));
parm2.getOutputStream().write(buffer);

  }
  else
  {
String result = "htmlbodyContent filtered!/body/html";
parm2.setContentType("text/html");
parm2.reset();
parm2.getWriter().print(result);
  }
}
catch (Exception ex)
{
  ex.printStackTrace();
}
  }
  public FilterConfig getFilterConfig() {
return config;
  }
  public void setFilterConfig(FilterConfig parm1) {
config = parm1;
  }

  private static Map handlers = new HashMap();
  private static Map mimetypes = new HashMap();
  {
handlers.put ("jpeg",
org.apache.batik.transcoder.image.JPEGTranscoder.class);
handlers.put ("png",
org.apache.batik.transcoder.image.PNGTranscoder.class);
handlers.put ("svg",
org.apache.batik.transcoder.svg2svg.SVGTranscoder.class);

mimetypes.put ("jpeg", "image/jpeg");
mimetypes.put ("png", "image/png");
mimetypes.put ("svg", "image/svg+xml");
  }
}

class SpoofResponse extends ResponseBase { }


but sax isn't instanciated correctly( no empty public constructor)
any idea that makes me happy?
thanks
stefan
- Original Message -
From: "Noll, Jeff HS" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, March 27, 2001 5:15 PM
Subject: RE: chart in jsp


With a little bit of effort, you can make some pretty impressive completely
dynamic graphs using SVG. I actually use a servlet for this that transforms
XML data from oracle into SVG. Then I use a jsp:include to get the graph
into the jsp page. Of course, the one caveat is that it requires an SVG
plugin to view the graph, but once you have it its a great tool.

I've got it set up so that once the query to get the XML out of Oracle is
written, I can do bar, pie, and line graphs complete with drill down views
of just about any data. The real work is in the XSL stylesheet you create,
which definately isn't a trivial task.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 27, 2001 12:21 AM
To: [EMAIL PROTECTED]
Subject: Re: chart in jsp



The only dynamic charts I've seen have used fixed size images combined
dynamically to form a graph, chart, tree, etc.

sorry, no code.

Neill Laney
http://home.nc.rr.com/nlaney
--
Web Developer/Technical Support Specialist.





Altuð

Altýntaþ To:
"'[EMAIL PROTECTED]'"
(Koç.Net)[EMAIL PROTECTED]

[EMAIL PROTECTED]cc:

et  Subject: chart in jsp



    03/26/2001

 

RE: chart in jsp

2001-03-27 Thread guyr

See http://www.jguru.com/faq/view.jsp?EID=37785.  We are using jFreeChart
successfully.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 27, 2001 12:21 AM
To: [EMAIL PROTECTED]
Subject: Re: chart in jsp



The only dynamic charts I've seen have used fixed size images combined
dynamically to form a graph, chart, tree, etc.

sorry, no code.

Neill Laney
http://home.nc.rr.com/nlaney
--
Web Developer/Technical Support Specialist.



 

Altuð

Altýntaþ To:
"'[EMAIL PROTECTED]'"   
(Koç.Net)[EMAIL PROTECTED]

[EMAIL PROTECTED]cc:

et  Subject: chart in jsp

 

03/26/2001

05:24 AM

Please

respond to

tomcat-user

 

 






are there  any way to draw a dynamic chart in jsp ?

any source  or idea ?

thanks ..






chart in jsp

2001-03-26 Thread Altu Altnta (Ko.Net)


are there  any way to draw a dynamic chart in jsp ?

any source  or idea ?

thanks ..

Altug



RE: chart in jsp

2001-03-26 Thread tnist

Hello Altug,

You could try jFreeChart, an open source project found at
http://www.jrefinery.com/jfreechart/index.html.  

JFreeChart is an open-source Java class library for generating charts and
has the following features: 
* supports bar charts (horizontal and vertical), line charts, pie
charts, xy-plots 
  (numerical and time series) and high/low/open/close charts; 
* uses data from any source that supports the defined interfaces; 
* based on the Java 2D API; 
* available in source code form (subject to the terms of the GNU
Lesser General Public Licence); 
* requires JDK 1.2.2 or later; 


You could also have a look at jetchart. It's a very easy to use and
versatile java applet.
I'ts not a free package but it's not too expensive (around $160).  You can
find it at:
 www.jinsight.com

You can trap interaction with the graphic (if the user clicks on a bar, you
can branch to an hyperlink, etc).

Hope that helps,

Regards,
Todd G. Nist


-Original Message-
From: Altug Altintas (Ko.Net) [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 26, 2001 5:25 AM
To: '[EMAIL PROTECTED]'
Subject: chart in jsp 



are there  any way to draw a dynamic chart in jsp ? 

any source  or idea ? 

thanks .. 


The information in this electronic mail ("e-mail") message may
be confidential and for use of only the named recipient.  The
information may be protected by privilege, work product immunity
or other applicable law.  If you are not the intended recipient
the retention, dissemination, distribution or copying of this
e-mail message is strictly prohibited.  If you receive this e-mail
message in error please notify us immediately by telephone
at 770-723-1011 or [EMAIL PROTECTED]  Thank you. 





Re: chart in jsp

2001-03-26 Thread Ludovic Maitre

Altu Altnta (Ko.Net) wrote:
 
 are there  any way to draw a dynamic chart in jsp ?
 
 any source  or idea ?
 
 thanks ..
 
 Altug

Perhaps that you can generate an SVG image (cf www.w3.org) from your
data but it's more easy with XML than with JSP.
And your public must have a SVG plugin on their browser.

Regards,

-- 
 [EMAIL PROTECTED]

 INRIA - 2004 route des lucioles - BP 93Tel: (33/0) 4 92 38 50 41
 06902   SOPHIA-ANTIPOLIS cedex (France)Fax: (33/0) 4 92 38 76 02



Re: chart in jsp

2001-03-26 Thread Kenneth Westelinck

Hi,


Maybe you should use an applet.


regards,

Kenneth Westelinck

From: Ludovic Maitre [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: chart in jsp
Date: Mon, 26 Mar 2001 14:34:46 +0200

Altuð Altýntaþ (Koç.Net) wrote:
 
  are there  any way to draw a dynamic chart in jsp ?
 
  any source  or idea ?
 
  thanks ..
 
  Altug

Perhaps that you can generate an SVG image (cf www.w3.org) from your
data but it's more easy with XML than with JSP.
And your public must have a SVG plugin on their browser.

Regards,

--
  [EMAIL PROTECTED]

  INRIA - 2004 route des lucioles - BP 93Tel: (33/0) 4 92 38 50 41
  06902   SOPHIA-ANTIPOLIS cedex (France)Fax: (33/0) 4 92 38 76 02

_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.




RE: chart in jsp

2001-03-26 Thread Todd Sussman

We use a program called ESPRESS Chart.  It is used to show ECG readings
to a web based application.

Todd

-Original Message-
From: Kenneth Westelinck [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 26, 2001 2:50 PM
To: [EMAIL PROTECTED]
Subject: Re: chart in jsp


Hi,


Maybe you should use an applet.


regards,

Kenneth Westelinck

From: Ludovic Maitre [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: chart in jsp
Date: Mon, 26 Mar 2001 14:34:46 +0200

Altu Altnta (Ko.Net) wrote:
 
  are there  any way to draw a dynamic chart in jsp ?
 
  any source  or idea ?
 
  thanks ..
 
  Altug

Perhaps that you can generate an SVG image (cf www.w3.org) from your
data but it's more easy with XML than with JSP.
And your public must have a SVG plugin on their browser.

Regards,

--
  [EMAIL PROTECTED]

  INRIA - 2004 route des lucioles - BP 93Tel: (33/0) 4 92 38 50 41
  06902   SOPHIA-ANTIPOLIS cedex (France)Fax: (33/0) 4 92 38 76 02


_
Get Your Private, Free E-mail from MSN Hotmail at
http://www.hotmail.com.




Re: chart in jsp

2001-03-26 Thread Sunil Chandurkar


Applet is time consuming stuff for genrating dynamic chart.. go for XML.. thats only 
recommended solution

sunil
--- "Kenneth Westelinck" [EMAIL PROTECTED]
 wrote:
Hi,


Maybe you should use an applet.


regards,

Kenneth Westelinck

From: Ludovic Maitre [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: chart in jsp
Date: Mon, 26 Mar 2001 14:34:46 +0200

Altuð Altýntaþ (Koç.Net) wrote:
 
  are there  any way to draw a dynamic chart in jsp ?
 
  any source  or idea ?
 
  thanks ..
 
  Altug

Perhaps that you can generate an SVG image (cf www.w3.org) from your
data but it's more easy with XML than with JSP.
And your public must have a SVG plugin on their browser.

Regards,

--
  [EMAIL PROTECTED]

  INRIA - 2004 route des lucioles - BP 93Tel: (33/0) 4 92 38 50 41
  06902   SOPHIA-ANTIPOLIS cedex (France)Fax: (33/0) 4 92 38 76 02

_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

_
Get LifeTime Free email Visit  --- http://www.nagpurcity.net



Re: chart in jsp

2001-03-26 Thread nmlaneyREMOVE


The only dynamic charts I've seen have used fixed size images combined
dynamically to form a graph, chart, tree, etc.

sorry, no code.

Neill Laney
http://home.nc.rr.com/nlaney
--
Web Developer/Technical Support Specialist.



   
   
Altuð  
   
Altýntaþ To: "'[EMAIL PROTECTED]'"
   
(Koç.Net)[EMAIL PROTECTED]  
   
[EMAIL PROTECTED]cc:   
   
et  Subject: chart in jsp 
   
   
   
03/26/2001 
   
05:24 AM   
   
Please 
   
respond to 
   
tomcat-user
   
   
   
   
   





are there  any way to draw a dynamic chart in jsp ?

any source  or idea ?

thanks ..