Data Editor

Chart FX for .Java provides a spreadsheet called Data Editor that allows users to see the data contained in the chart in tabular format. It also allows the user to modify any legend or value contained in the chart when using an active client (if allowed by the programmer).

Just like other Chart FX tools, the end user can control position and style attributes for the Data in the chart area.

The DataEditorObj property provides the developer with control over the Data Editor. With this member you can control the position, color and other important aspects of this tool in the chart. For example, to show and position the Data Editor at the bottom of the chart, the DataEditorObj property may be used as follows:


Chart1.setDataEditor(true);
Chart1.getDataEditorObj().setDocked(Docked.BOTTOM);
Chart1.getSeries(0).setLegend("Product 1");
Chart1.getSeries(1).setLegend("Product 2");
Chart1.getSeries(2).setLegend("Product 3");

And the chart will look like: