Home > Domino Tips > Developer > How to create a dynamic SVG graph using a Lotus Notes agent
Domino Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

AGENT

How to create a dynamic SVG graph using a Lotus Notes agent


William Beh
07.11.2006
Rating: -3.62- (out of 5) Hall of fame tip of the month winner


Lotus Notes, Domino, Workplace and WebSphere tips and advice
Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


Scalable Vector Graphic (SVG) is a language for describing two-dimensional graphics and graphical applications in XML. It can be used to create dynamic graphs for a Web site. You can use the Lotus Notes agent in this tip to generate a dynamic SVG. Take a look at a sample graph on my blog.

  
Create a Lotus Notes agent (name "svgagent"). 
Sub Initialize
Print |Content-type:image/svg+xml|
 
Print |<?xml version="1.0"?>|
Print |<!DOCTYPE svg PUBLIC 
"-//W3C//DTD SVG 1.0//EN"
"http://www.w3.org/TR/2001/
REC-SVG-20010904/DTD/svg10.dtd">|
Print |<svg width="200" height="200" 
xmlns=
"http://www.w3.org/2000/svg" 
xmlns:xlink="http://www.w3.org/1999/xlink">|
Print |<desc>polyline</desc>|
Print |<g>|
Print |<polyline id="lens" points=
"10,180 40,120 70,140 100,90 130,40 160,100" 
fill="none" stroke="purple" stroke-width="2"/>|
'processing and draw the graph
Print |</g>|
Print |</svg>|
End Sub

Then, in your Web page, you can embed the code below. For Firefox and Netscape, use the following:

<object type="image/svg+xml" 
data="svgagent?OpenAgent" 
width="200" height="200">
</object>

For Internet Explorer use this:

<embed src="svgagent?OpenAgent"
 width="200" height="200" pluginspage=
"http://www.adobe.com/svg/viewer/install/">
<embed>

Do you have comments on this tip? Let us know.

This tip was submitted to the SearchDomino.com tip library by member William Beh. Please let others know how useful it is via the rating scale below. Do you have a useful Lotus Notes, Domino, Workplace or WebSphere tip or code snippet to share? Submit it to our monthly tip contest and you could win a prize.

Rate this Tip
To rate tips, you must be a member of SearchDomino.com.
Register now to start rating these tips. Log in if you are already a member.




Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


RELATED CONTENT
Web Development for Lotus Notes Domino
Top 10 issues when developing Lotus Notes Domino Internet applications
Top 10 Lotus Notes Domino programming and development tips of 2007
Programmatically copy and hide attachments in Lotus Notes rich-text fields
Programmatically edit a rich-text field table from within the Lotus Notes client
Troubleshooting Lotus Notes Domino tabbed table problems
How to validate Lotus Notes forms on a Domino server without losing entered data
A simpler pagination view for Lotus Notes documents on the Web
A bevy of Notes/Domino development tips
Sizer
Top 10 Notes/Domino developer tips of 2006

Lotus Notes Domino Agents
Open documents in Lotus Notes from the Web without a UNID
Fix and update Lotus Notes documents with limited access
Verify scheduled agent status with Domino Extensible Language (DXL)
Top 10 Lotus Notes Domino programming and development tips of 2007
How to export data from a Lotus Notes database to a CSV file
Must-know Lotus Notes Domino agents -- 10 tips in 10 minutes
Enable or disable scheduled agents without opening the Lotus Notes database design
Creating custom views in Lotus Notes databases
Editing fields in a Lotus Notes view with Ajax
Troubleshooting a scheduled agent not running on a Global Notes Architecture (GNA) server

Web
Hosting multiple Lotus Domino servers at one IP address without a VPN
Upgrading and patching Firefox: Security considerations for administrators
Admin2005 Learning Guides
Making old, new flavors of Domino SSO work
A fun site, with serious code
Creating corporate welcome pages with Lotus Notes
Domino Web traffic analyzers
LotusScript error detection on the Web
One URL for all Webmail
Reasons to chat-enable your web site

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary

DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



Domino & Lotus Notes Security Solutions: Authentication, Antispam, Encryption and Antivirus
HomeTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersDomino IT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Reprints  |  Site Map




All Rights Reserved, Copyright 1999 - 2008, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts