Home Overview Examples Support Download Purchase

Odesys Charts 2.0.1 README

(Odesys Charts 2.0.1 is a maintenance release that contains bug fixes and some minor changes)

1. INTRODUCTION

Odesys Charts 2.0.1 is a set of chart components, applets and utility classes that allow various charts to be shown in web pages as applets or images, or used directly in the GUI of Java applets and applications.
Odesys Charts 2.0.1 is packeged in two editions Client Edition (CE) and Server Edition (SE). The Client Edition allows the charts to be shown in web pages as Java applets. It includes all chart components that can also be used by other Java applets or applicatons. The Server Edition allows chart images to be dynamically generated on the web server and shown in web pages.

2. SYSTEM REQUIREMENTS

Odesys Charts 2.0.1 CE requires the client browsers to be Java enabled. It is build using JDK 1.0.2 and therefore should theoretically work on any JDK 1.0.2 compliant browser.
Odesys Charts 2.0.1 SE is built using JDK 1.2 and uses the package com.sun.image.codec.jpeg, which is not part of the Java 2 Platform, but is provided with Sun's Java 2 SDK. Therefore Odesys Charts 2.0.1 SE requres Sun's Java 2 Runtime Environment. Odesys Charts 2.0.1 SE will most likely be used by either Servlet or JSP so it requires a Servlet/JSP enabled web server.

3. INSTALATION

Odesys Charts 2.0.1 CE is a set of Java applets packaged in the charts20ce.jar file and its instalation is no diferent that the instalation of any other applet. The jar file has to be placed in a shared location on your web server so the web browsers can load the jar when a chart applet is used in a web page. See the examples for how to place the chart applets in web pages.
Odesys Charts 2.0.1 SE contains the charts20se.jar file that contains classes and packages needed to generate chart images. It will most likely be used by either Servlet or JSP. The jar file has to be in the classpath when the particular Servlet or JSP is executed. All used packages should be imported by the Servlet/JSP. See the server-side examples for more details. The easiest way to run the Odesys Charts 2.0.1 SE examples locally with Tomcat 3.X is to add the following context definition to the server.xml file. It assumes that Odesys Charts 2.0.1 SE files are placed in the c:/charts20se directory. If you choose to use another directory you have to modify the docBase attribute to point to the correct location.

<Context path="/charts20se" 
         docBase="c:/charts20se/webapp" 
         crossContext="true"
         debug="0" 
         reloadable="true" 
         trusted="false"> 
</Context>
Then you can point your browser to http://localhost:8080/charts20se to see the example web page. You may need to use a different port depending on the way Tomcat is configured.

4. WHAT IS NEW

4.1. The setChartFont method in the chart init script is changed to set the font of the ChartView only.
4.2. A new setLegendFont method is added to set the font of the LegendView.
4.3. A new setFont method is added to change the default font of the Chart. Please note that setFont takes only two parameters (fontName and fontStyle) as the size of the default font is calculated automatically. For details look at the ChartApplet in the API documentation.

5. BUG FIXES

5.1. The Bar chart is drawn using the default font of the chart instead of using the font of the BarChartView. (fixed)
5.2. The Pie chart is drawn using the default font of the chart instead of using the font of the PieChartView. (fixed)
5.3. The size of the labels in Odesys Charts 2.0 SE is not calculated correctly for some font sizes and the text is cut-off. (fixed)

Copyright © 2001 Odesys, LLC. All rights reserved.