skip to main content
Developing with design tools > Using the Designer > Next steps after the Designer > Integrating the styling into an application
 
Integrating the styling into an application
This allows you to use a different data source. The .icpr file is not used in this approach.
*To do this, set the data source and the styling separately.
Example 2 – Setting the Data Source and the Styling Separately
 
IlvChart chart = new IlvChart();
IlvDataSource myDataSource = ...;
chart.setDataSource(myDataSource);
chart.setStyleSheet("myproject.css");
A complete example can be found in <installdir>/jviews-charts/codefragments/chart/styling/src/ChartCSSExample.java.
See Extending the Data Model in Developing with the SDK for how to develop a custom data source.
It is a good idea to run the Designer on a snapshot of real data from your data source. Once you have implemented your custom data source, you can import data into the Designer by following the procedure explained in Reading and writing data from an XML source in Developing with the SDK, namely by using IlvXMLDataWriter to create an XML file with snapshot data.

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