graph chart

2D / 3D Horizontal Bar Graph - Solutions

[ Bar Graph Home ] [ Tutorials ] [ Documentation ] [ Examples & Demos ] [ Getting Started ]

Solutions to Common Problems

Applet

I have just licensed the software but still see the pop-up trial message.
solution - click here

I have the graphing applet implemented within a dynamic page ( PHP, JSP or ASP) but the graph is not displayed and the browser says "cannot find HbarchartApplet.class".
solution - click here

 

Servlet

I have implemented the graphing servlet as directed but still no graph image appears within my web page.
solution - click here

The graph image produced is oversized and the characters of the text elements are very large.
solution - click here

 

If you experience any problem or require help / advice implementing this graphing function then please feel free to contact us at Support.

 


I have just licensed the software but still see the pop-up trial message.

Sometimes a browser will cache a jar file in order to improve the page load speed on the next visit. Therefore the most likely cause is that the your browser has cached the trial version of the applet.
To remedy this simply clear your browser cache and restart the browser. In 99% of cases this solves the problem - if not then please contact us at - Support.


^back to top


I have the graphing applet implemented within a dynamic page ( PHP, JSP or ASP) but the graph is not displayed and the browser says "cannot find HbarchartApplet.class".

When a page is served via a dynamic server side script, the document root of that page is not necessarily the directory in which the page resides (as it is with static html pages). In this case the browser is attempting to locate the jar file in another directory (usually the root of the server scripting language).
The solution is to add the "CODEBASE" parameter to the applet tag. This will tell the browser exactly where to locate the jar file. For example if you have your page and jar file in the location http://www.yourdomain.com/graph/ then the CODEBASE parameter would be:-

CODEBASE="http://www.yourdomain.com/graph/"

and you full APPLET tag would be:-

<applet code="HbarchartApplet.class" archive="Hbargraph.jar" codebase="http://www.yourdomain.com/graph/" width="450" height="440" mayscript>

In addition any URLs you have specified within the configuration parameters (eg. data files, image files etc) should be Absolute (Full Path) URLs rather than Relative URLs.
ie.

<PARAM name="chartproperties" value="http://www.yourdomain.com/graph/barprops.txt">

rather than

<PARAM name="chartproperties" value="barprops.txt">

 

If this does not solve the problem then please contact us at - Support.


^back to top


I have implemented the graphing servlet as directed but still no graph image appears within my web page.

With the servlet form of the graph there can be a number of reasons why the graph image is failing to display. The most common are:-

Servlet Engine not in operation on the Server
Double check your Servlet Engine is working correctly and that the graph servlet has been placed in the correct directory.
Further Info.

Missing Graphics Environment
If you are running an MS Windows OS then this will not be the problem.
If you are running UNIX or Linux then check that your graphics environment has been implemented (usually X11) and that your Servlet engine is aware of it and able to use it.
Further Info.

Error in the configuration data
Double check all URLs specified in the configuration parameters. We suggest always using Absolute (Full Path) URLs rather than Relative URLs. in order to avoid any ambiguity.

To determine the cause the best place to look is in the Servlet Engine's Error Log. The error message should provide a clue. If you are unsure of what the error message is telling you then please feel free to send it to us at - Support and we will more than happy to help.


^back to top


The graph image produced is oversized and the characters of the text elements are very large.

In the Servlet form of the graph the size of the image produced is taken from the width and height specified in the configuration file (not the IMG tag). If the parameters are missing then the image produced defaults to 100 pixels by 100 pixels. If the width and height specified in the image tag are greater then the browser will "Stretch" the image to fit - hence producing some very strange results.

The solution is to add the width and height parameters to the configuration file and set the values to match those of your <IMG> tag.

eg.

width: 450
height: 440


^back to top


If you experience a problem or require help / advice implementing this graphing function then please feel free to contact us at Support.

[ Bar Graph Home ] [ Tutorials ] [ Documentation ] [ Examples & Demos ] [ Getting Started ]

Getting Started

Tutorials

Documentation

Examples