In App Charts allow for a graphical Report (chart) to be contained within a Record. The Field is simple in that it renders a defined Chart, but the Chart itself needs to be built as a Report first within App Studio. The In App Chart requires following a three step process.
Step 1: There needs to be a source for the data that is in the chart. Create a GridField with Grid Sub Fields that can become the axes, series and labels for the charts. Grid Fields have to be used for Charts at the In-App Record level in order to ensure categorical data is displayed fully. For example, if the x-axis was 'Month' and Sub Fields for Jan-Dec were not made, when the Chart is in a Record it would only display data for the Month specified in the Record, say January for example and not any others.
Step 2: Create the chart in the Report area of App Studio. When building your chart select the Grid Field that you have created in Step 1 as the 'In-App Data Source Field'. You will then be able to choose from the Fields in the chosen GridField to build up the configuration on your chart.
Step 3: Render the chart in the Record. Create a new Field and select Field type 'InAppChart'. Then select the Report that you have built in Step 2 and add this new Field to your Template.
Make sure to click the 'Save' button when making any changes in order for them to be added to the next app version. Once you have made all the changes you need to an application you are then ready to publish it to workspace.
Comments
0 comments
Article is closed for comments.