Quantcast
Channel: West Wind Message Board Messages
Viewing all articles
Browse latest Browse all 10393

Re: wwWebGraphs

$
0
0
Re: wwWebGraphs
Web Connection 5.0
Re: wwWebGraphs
12/08/2011
12:55:37 PM
3DN0ROL00 Show this entire thread in new window
From:
To:
Attachments:
None

I looked at Google Charting tools a while back and didn't find them very complete and a bit clunky to work with. Made it a little painful to create reusable code.

OWC definitely isn't a great choice at this point - I've been meaning to update some of that code into FoxGraph which is much nicer and more lightweight to use.

Not a high priority though :-)

+++ Rick ---


There are other options for graphing.

I've been using Google Chart Tools to create complex graphs for our Intranet. Easy to use, reliable, and nothing extra to load on our servers.
http://code.google.com/apis/chart/

Another quick graphing option was demonstrated by Michael Hogan a few years ago at one of Westwind's training sessions. Michael demonstrated how to dynamically create simple bar graphs.

Here is the HTML from an example graph:

<table> <tr valign="bottom" bgcolor="#F1F1F1"> <td align="center"><img src="singleBlue.gif" width="20" height="122" border="0" align="bottom" title="$3,355"></td> <td align="center"><img src="singleBlue.gif" width="20" height="94" border="0" align="bottom" title="$2,603"></td> <td align="center"><img src="singleBlue.gif" width="20" height="139" border="0" align="bottom" title="$3,834"></td> <td align="center"><img src="singleBlue.gif" width="20" height="135" border="0" align="bottom" title="$3,740"></td> <td align="center"><img src="singleBlue.gif" width="20" height="79" border="0" align="bottom" title="$2,176"></td> <td align="center"><img src="singleBlue.gif" width="20" height="88" border="0" align="bottom" title="$2,434"></td> <td align="center"><img src="singleBlue.gif" width="20" height="122" border="0" align="bottom" title="$3,374"></td> </tr> </table>

The image height is calculated to scale. The image is aligned along the bottom, which creates the bar graph. Every image is filled with a single pixel JPG, which repeats itself to fill the entire bar with, in this case, blue. The image title with the actual amount allows the user to hover their mouse over any coloured bar and see the dollar figure.

I've been using these for years (thanks Michael) in lots of places when I want a fast visual representation of, for example, monthly sales to a particular customer.

.. Geoff

I would like to use wwWebGraphs class but i am facing a problem.
that show me ("Graphing Error","The Office Web Components are not installed on the server.")
What web components i need to installed on the server?





Rick Strahl
West Wind Technologies

Where do you want to surf today?
Reader Version: 5.0

from Maui, Hawaii



Viewing all articles
Browse latest Browse all 10393

Trending Articles