I'm working on a new chart type and want to get some ideas from others. Let me first explain what the new chart type looks like.
It's a "geographical chart" with a map as it's background. Each data item (which might be some air-pollution-value meassured at some location) is represented by a colored dot (e.g, green for lower values and red for high/critical values). With each data item associated is a geographical location on the map. Such a chart could look like this:

What I have so far is:
- a GeoPlot class
- a GeoAxis class
- a GeoDataset interface
- a ValueColorMapper interface
- a GeoColoredShapeRenderer class
The GeoPlot is responsible for drawing the map and calling the draw() methods of the axes and renderer.
The GeoAxis class basically converts geographical coordinates to pixels on the Rectangle2D area. Therefore it has to know about the minimal and maximal geographical coordinates of the background map.
The GeoDataset interface extends the SeriesDataset and provides methods for querying the value and the geographical position of a data item. The geographical position is provided as latitude and longitude (see http://en.wikipedia.org/wiki/Geographic ... ate_system).
The ValueColorMapper interface provides a method which returns a color for a given value. Thus a classification of values to "ok", "bad", and "critical" can easily be done by creating a new ValueColorMapper.
And finally the GeoColoredShapeRenderer class renders the dataset by drawing a shape (currently a dot) with the appropriate color on the appropriate position.
What do you think about the new chart. Would it be useful for others as well?
And as this is my first coding in the JFreeChart project any suggestions/critics/whatever is very welcome!
cheers,
- martin