VI. Adding visualization metrics
Last updated
Last updated
© 2024 UI Bakery
To complete the Customers page, we will add some visualization metrics.
Let’s add a Pie Chart to display the Orders of the Customer grouped by their status:
Drag a Chart onto the canvas
Change its type to Pie chart
In the Data field, assign the action {{actions.customerOrders.data}}
On the Series section, specify Status in the X-axis, grouped by Value. For Y-axis, specify orderNumber, grouped by Count.
Next, we'll add a Metric showing the total amount of payments made by a Customer.
Add a Metric to the working area.
Add a new Action - Load Table. Specify Payments table as a resource for the Action
Configure selected record fields as Customer Number ={{ activeRoute.queryParams.id}}
In the Data field, assign the Action {{ actions.customerPayments.data }}
Set a name to the Metric - Payments, total
Configure the Metric: the main field is Amount, grouped by Sum. An additional field is not required and can be skipped. In the Group by field, set Don't Group.
Check the Metric - you can see the sum of all payments made by a selected Customer.
Great job so far! 😎 You have created a new page to display all the necessary Customer information and added some visualization components. Your dashboard looks awesome! As the last step, you can share it with your colleagues.