![]() |
||||||||||||||||
![]() |
||||||||||||||||
![]() ![]() |
||||||||||||||||
VisualForte ServletQ. How do I display a chart that I have defined? Q. How do I add a chart image into my web page?
VisualForte charts are defined by templates using an XML language called the VisualForte Markup Language (VFML). VFML templates are stored on the server. A VFML template defines the content of a chart including the graphs displayed, static data to be used, and any formatting and visual effect etc. Dynamic data and any run-time customizations may be provided as URL parameters at run-time. For more information, please consult the following documents:
Ready to use VFML templates can be downloaded from here. How do I display a chart that I have defined? Charts are generated when a HTTP request is made to the application server running VisualForte servlet. Assuming your application server is running. To generate a chart, all you have to do is make a request from your browser. Assuming all default parameters were used during installation, and "myhost" is your host machine, the request would then be:
How do I add a dynamically generated chart image into my web page? Charts can be added to your web pages using the the "<img>" HTML tag with the chart URL as the source. For example if the chart URL was
then the HTML tag which would display this chart on your web page would be
In the above example, the chart template defines the URL parameter "data", which supplies the data to be charted. Any VFML attributes can be parameterized and supplied at run-time.
|
||||||||||||||||
Copyright © 1998-2003 CodingArt Pty Ltd. All rights are reserved. Legal. |
||||||||||||||||