My favorites | Sign in
Project Logo
                
Search
for
Updated Nov 11, 2008 by Julien.C.Chastang
gchartjava_migration_guide  
Migration from gchartjava.

This document only applies to developers who wish to migrate from gchartjava, the old name for this project.

The charts4j API is significantly different from the gchartjava API. The good news is that it is greatly improved, more intuitive and bug free, but the bad news is that backwards compatibility is broken which means developers will have to refactor parts of their code to migrate. Here are several hints for upgrading from gchartjava:

  1. You will obviously have to change the imports from com.googlecode.gchartjava to com.googlecode.charts4j
  2. There is now a strong reliance on static factory methods throughout this API. Refer to item 1 from "Effective Java" by Joshua Bloch, 2nd edition for a great discussion on static factory methods. See the Plots and GCharts classes for examples of this concept.
  3. Follow examples.
  4. Read the javadoc.

If you still have issues questions, please feel free to send me an email at julien.c.chastang at gmail dot com.


Sign in to add a comment
Hosted by Google Code