A Chart.
Once you create a Chart
Chart chart = Box.box(["A":[1,10,20],"B":[45,39,10],"C":[2,4,9],"D":[14,15,19]])
You can show it as an interactive app:
chart.show()
or you can save it to a File:
chart.save(file)
or you can get an image (which is useful when using geoscript-groovyConsole:
chart.image
| Type | Name and description | 
|---|---|
private JFreeChart  | 
                            chartThe wrapped JFreeChart  | 
                        
| Constructor and description | 
|---|
                                Chart
                                (JFreeChart chart)Create a new Chart wrapping a JFreeChart  | 
                        
                                Chart
                                () | 
                        
| Type Params | Return Type | Name and description | 
|---|---|---|
 | 
                            void | 
                            dispose()Dispose of this Chart.  | 
                        
 | 
                            java.awt.image.BufferedImage | 
                            getImage(java.util.Map options)Get an image of this Chart 
  | 
                        
 | 
                            void | 
                            overlay(List charts)Overlay a List of Charts over this Chart 
  | 
                        
 | 
                            void | 
                            save(java.util.Map options, File file)Svae this Chart to a File 
  | 
                        
 | 
                            void | 
                            show(java.util.Map options)Open this Chart in a Window.  | 
                        
| Methods inherited from class | Name | 
|---|---|
class java.lang.Object | 
                            java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() | 
                        
The wrapped JFreeChart
Create a new Chart wrapping a JFreeChart
chart -  The wrapped JFreeChartDispose of this Chart.
Get an image of this Chart
options -  Named parameters options
 Overlay a List of Charts over this Chart
charts -  A List of ChartsSvae this Chart to a File
options -  Named parameters options
 file -  The FileOpen this Chart in a Window.
options -  Named parameters options
 Groovy Documentation