skip to main content
Developing with design tools > Using the Designer > Next steps after the Designer > Integrating the project file into an application
 
Integrating the project file into an application
This is particularly useful when the data to be displayed belongs to one of the predefined data source types.
The result of working with the Designer is a JViews Charts project file with the extension .icpr and a CSS style sheet with the extension .css. The project file contains a reference to the style sheet.
Using a project file with a predefined data source
*Integrate the data source and the styling into the chart by busing the following code:
Example 1 – Integrating Data Source and Styling From the Project File
 
IlvChart chart = new IlvChart();
URL project = (new File("myproject.icpr")).toURL();
chart.setProject(project);
A complete example can be found in <installdir>/jviews-charts/codefragments/chart/project-viewer/src/ProjectViewer.java.
Customizing a chart loaded from a project file
It is possible to customize a chart loaded from a project file.
*Customize your chart by adding interactors:
 
chart.addInteractor(my3DInteractor);
A complete example can be found in <installdir>/jviews-charts/codefragments/chart/project-based/src/ProjectBased.java.

Copyright © 2018, Rogue Wave Software, Inc. All Rights Reserved.