SAIL Recipes give you an opportunity to explore different interface design patterns. To learn how to directly use SAIL recipes within your interfaces, see Adapt a SAIL Recipe to Work with My Applications.
Aggregate data from a data store entity, specifically the total number of employees in a given department, to display in a pie chart.
This recipe uses an employee data structure and objects created through the Use the Write to Data Store Entity Smart Service Function on an Interface recipe. Make sure that recipes has been built first in order to see data in this recipe. This scenario demonstrates:
lastNamecolumns so that only the
Let's take a look at the expression to see how it relates to what we configured.
The field selected in the "Chart Labels" configuration determines the labels that are displayed with each pie slice. This is the same as the label configuration in
a!chartSeries(). The field selected in the "Chart Data Series" configuration determines the data used to create the pie chart slices. This is the same as the data parameter in