|
META TOPICPARENT |
name="CDChartDirectorDesignerAPI" |
Chart Rendering Overview |
|
This page describes the process for rendering a chart and using it in your Appx program. |
|
< < | |
| Description: |
|
< < | After you have initialized your chart, provided the data to plot and set any other desired attributes, you render the chart by calling the .CHART RENDER routine. This requires just one arguement, a field to contain the name of the generated graphic file. The routine will then invoke Chart Director, which will create the graphic file. You can also pass a file name, in which case it will create that file in the default chart directory. If you pass a complete path and file name, the chart will be rendered to that location. If you pass a blank field, the API will assign a unique name for you, using the settings in the parameter file. |
> > | After you have initialized your chart, provided the data to plot and set any other desired attributes, you render the chart by calling the .CHART RENDER routine. This requires just one argument, a field to contain the name of the generated graphic file. The routine will then invoke Chart Director, which will create the graphic file. You can also pass a file name, in which case it will create that file in the default chart directory. If you pass a complete path and file name, the chart will be rendered to that location. If you pass a blank field, the API will assign a unique name for you, using the settings in the parameter file. |
|
If you have standard colors or other attributes that should be the same across all charts, you can create your own subroutine that sets all these attributes before calling .CHART RENDER. In your applications, you would call this subroutine instead of calling .CHART RENDER directly. This would give all your charts a common look and feel. |