| This is documentation for Semarchy xDM 2023.2, which is no longer supported. For more information, see our Global Support and Maintenance Policy. | 
Create a chart
This page provides the basic steps to create a chart in xDM Dashboard.
| Before creating a chart, make sure that you have created the datasource and query to connect to your data. | 
To create a chart:
- 
Select Charts in the navigation drawer. 
 The Charts list opens.
- 
Click on the Create new chart floating action button in the lower-right corner of the screen. 
- 
In the New Chart dialog: - 
Select the Query returning the data you want to base your chart on. 
- 
Select a Chart Type. You will be able to change this chart type later. 
- 
Enter a Label for the chart. This label appears to users. 
- 
Enter a Name for the chart. This name is used to refer to this chart, for example from a dashboard. 
- 
Click Create. 
 The chart editor opens.
 
- 
- 
Define the Measures: - 
In the Measures field, select an attribute from the query. 
- 
Click the chip named after this attribute in the Measures field. + The properties side nav opens. 
- 
Change the Aggregation type (Count, Sum, etc) used to compute the measure from the attribute. 
- 
In the Display properties, configure the Format and the other properties of your measures. 
- 
In the sidenav header, use the Rename button to change the name and label of this measure. 
- 
Repeat the previous operations for all the measures that you want to define. 
 
- 
- 
Define the Categories: - 
In the Categories (Rows) field, select an attribute from the query. 
- 
Click the chip named after this attribute in the Categories (Rows) field. 
 The properties side nav opens.
- 
In the Display properties, configure the Format and the other properties to display the values of your row. 
- 
In the sidenav header, use the Rename button to change the name and label of this row. 
- 
In the Subtotals section, define whether subtotals should be displayed for this category. The Pivot Table chart type provides more options to define how the subtotals are computed and displayed. 
- 
In the Sorting section, define how the category values should be sorted: - 
Sort by the current Dimension value, according to the Sort Order. 
- 
Sort by a Measure value, according to the Sort Order. You must select the measure used to sort in the Measure path. 
 
- 
- 
Repeat the previous operations for all the categories that you want to define. 
 
- 
- 
Define the Series similarly to the categories, using the Series (Column) field. 
- 
Click the Save button in the toolbar to save the query. 
You can now proceed and configure the chart, its axes and series.