Creating a Chart Area
Add a new chart area to a traditional chart definition.
Implementation:
- Open a Chart question's Properties and click Configure to open the Chart Definition interface.
- Switch to the Chart Area panel.
- Click Add to open the Chart Area dialog.
- Use the Enabled check box to determine if the chart area should be enabled or disabled. If disabled, the area will not render in the chart definition.
- Enter a unique Chart Area Name. This can be used to reference the area elsewhere, such as with the WithChartItems function.
- (Optional) To configure the axes in the chart area, select one from the Chart Area Axes list and click Edit.
- (Optional) Switch to the Title panel.
- (Optional) Enter a Chart Area Title, which will appear above the area when it renders.
- (Optional) Use the Appearance and Border tabs to configure the look of the chart area title.
- (Optional) Switch to the Appearance panel.
- (Optional) Tick the Show Legends if the chart area should contain a legend.
Each series in the chart area must be individually configured for it to appear in this legend.
- (Optional) Use the options in the Border and Background Colour sections, as well as the Alignment and 3D Area tabs, to customize the chart area's appearance.
- (Optional) Switch to the Position panel.
- (Optional) Use these options to configure the position of the chart area within the definition.
- Switch to the Data Source panel.
- Select the appropriate Data Bind Type from the drop-down menu.
- (Data source bind types only) If the selected bind type requires a data source, use the Data Source drop-down menu to select the one to use for the chart.
- (Optional) To filter the chart data tick Use a Filter with This Data Source and use the Data Source Filter drop-down menu to specify the filter to use.
- (Optional) If you need to dynamically change the filter, tick The Entered Filter Value Is a Variable Name and replace the filter name with a variable keyword. The data source will then use the filter whose name matches the variable value.
- (Data source bind types only) Use the options in the Bind Field Information and Excluded Field Information tabs to configure how the chart interacts with the data source.
- Click Save to create the new chart area.