Web applications generating Active Charts (Client Controls) as opposed to chart images take additional time to download all the required components. This wait time can be associated with the connection speed of the end user as well as the process which the .NET Framework utilizes in order to display the active chart controls.
The first time a browser encounters an active chart control in a page, the .NET Framework is loaded. In addition, the "main" control (in this case the Chart FX for Java Internet Client Control) is downloaded to compare against the version in the download cache (this is done on a per-session basis).
In order to prevent the entire Chart FX for Java Internet Client Control from being downloaded each time, a smaller wrapper control is downloaded with the version information and is compared to the version of the Chart FX for Java Internet Client Control in the downloaded cache. If the version is compatible, the control in cache is used instead of initiating another download.
To change the Chart FX behavior so your charts generate an object with a small "wrapper" control, you can set the MainClient property of the chart (in your JSP page) to true.
chart1.setMainClient(true);
|
You may configure this attribute for all charts generated on the server without setting the MainClient property using the ChartFX.Internet.config. This XML file is located in the web application's /lib directory (with the chartfx.jar and cfxjava.lic files). The ChartFX.Internet.Client.DLL version is specified in this file allowing the component to determine if the latest component has already been downloaded. If you utilize this feature, it is important to ensure the version of the ChartFX.Internet.Client.DLL and the version specified in the XML match. Here is a sample of the ChartFX.Internet.config XML:
<chartfxconfig> <MainClient>true</MainClient> <ClientVersion>6.0.1384.19410</ClientVersion> </chartfxconfig>
|
|