You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
6. Select **Column Settings** to open the settings.
39
-
7. Select "total" from *Columns* and choose "Composite Bar" for *Column renderer*.
40
-
8. Set the following settings under *Composite Bar Settings*.
37
+
1. Run the query.
38
+
1. Select **Column Settings** to open the settings pane.
39
+
1. Under **Columns**, select `total`. For **Column renderer**, select `Composite Bar`.
40
+
1. Under **Composite Bar Settings**, set the following settings:
41
41
42
-
| Column Name | Color |
43
-
|-------------|--------------|
44
-
| online | Green |
45
-
| recovering | Yellow |
46
-
| offline | Red (Bright) |
42
+
| Column Name | Color |
43
+
|-------------|--------------|
44
+
| online | Green |
45
+
| recovering | Yellow |
46
+
| offline | Red (Bright) |
47
47
48
-
9. Add Label:`["online"] of ["total"] are healthy`
49
-
10. In the column settings for online, offline, and recovering you can set column renderer to "Hidden" (Optional).
50
-
11. Select *Labels* at the top and update label for the total column as "Database Status" (Optional).
51
-
12. Select on **Apply**
48
+
1. For **Label**, enter `["online"] of ["total"] are healthy`.
49
+
1. In the column settings for **online**, **offline**, and **recovering**, you can set **Column renderer** to `Hidden` (optional).
50
+
1. Select the **Labels** tab and update the label for the total column as `Database Status` (optional).
51
+
1. Select **Apply**.
52
52
53
-
The composite bar settings will look like the screenshot below:
53
+
The composite bar settings will look like the following screenshot:
54
54
55
-

55
+

56
56
57
-
The composite bar with the settings above:
57
+
The composite bar with the preceding settings:
58
58
59
-

59
+

60
60
61
61
## Composite bar settings
62
62
63
-
Select column name and corresponding color to render that column in that color as a part of composite bar. You can insert, delete, and move rows up and down.
63
+
Select the column name and corresponding color to render the column in that color as part of a composite bar. You can insert, delete, and move rows up and down.
64
64
65
65
### Label
66
66
67
-
Composite bar label is displayed at the top of the composite bar. You can use a mix of static text, columns, and parameter. If Label is empty, the value of the current columns is displayed as the label. In the previous example if we left the label field black the value of total columns would be displayed.
67
+
The composite bar label is displayed at the top of the composite bar. You can use a mix of static text, columns, and parameters. If **Label** is empty, the value of the current columns is displayed as the label. In the previous example, if we left the **Label** field blank, the value of total columns would be displayed.
68
68
69
69
Refer to columns with `["columnName"]`.
70
70
71
71
Refer to parameters with `{paramName}`.
72
72
73
-
Both column name and parameter name are case sensitive. You can also make labels a link by selecting "Make this item as a link" and then add link settings.
73
+
Both the column name and parameter name are case sensitive. You can also make labels a link by selecting **Make this item a link** and then adding link settings.
74
74
75
75
### Aggregation
76
76
77
-
Aggregations are useful for Tree/Group By visualizations. The data for a column for the group row is decided by the aggregation set for that column. There are three types of aggregations applicable for composite bars: None, Sum, and Inherit.
77
+
Aggregations are useful for Tree/Group By visualizations. The data for a column for the group row is decided by the aggregation set for that column. Three types of aggregations are applicable for composite bars: None, Sum, and Inherit.
78
78
79
79
To add Group By settings:
80
80
81
81
1. In column settings, go to the column you want to add settings to.
82
-
2. In *Tree/Group By Settings* under *Tree type*, select **Group By**
83
-
3. Select the field you would like to group by.
82
+
1. In **Tree/Group By Settings**, under **Tree type**, select **Group By**.
83
+
1. Select the field you want to group by.
84
84
85
-

85
+

86
86
87
87
#### None
88
88
89
-
Noneaggregation means display no results for that column for the group rows.
89
+
The setting of **None** for aggregation means that no results are displayed for that column for the group rows.
90
90
91
-

91
+

92
92
93
93
#### Sum
94
94
95
-
If aggregation is set as Sum, then the column in the group row will show the composite bar by using the sum of the columns used to render it. The label will also use the sum of the columns referred in it.
95
+
If aggregation is set as **Sum**, the column in the group row shows the composite bar by using the sum of the columns used to render it. The label will also use the sum of the columns referred to in it.
96
96
97
-
In the example below the online, offline, and recovering all have max aggregation set to them and the aggregation for the total column is sum.
97
+
In the following example, **online**, **offline**, and **recovering** all have max aggregation set to them and the aggregation for the total column is **Sum**.
98
98
99
-

99
+

100
100
101
101
#### Inherit
102
102
103
-
If aggregation is set as inherit, then the column in the group row will show the composite bar by using the aggregation set by users for the columns used to render it. The columns used in label also use the aggregation set by the user. If the current column renderer is composite bar and is refereed in the label (like "total" in the example above), then sum is used as the aggregation for that column.
103
+
If aggregation is set as **Inherit**, the column in the group row shows the composite bar by using the aggregation set by users for the columns used to render it. The columns used in **Label** also use the aggregation set by the user. If the current column renderer is **Composite Bar** and is referred to in the label (like **total** in the preceding example), then **Sum** is used as the aggregation for that column.
104
104
105
-
In the example below, the online, offline, and recovering all have max aggregation set to them and the aggregation for total column is inherit.
105
+
In the following example, **online**, **offline**, and **recovering** all have max aggregation set to them and the aggregation for total column is **Inherit**.
106
106
107
-

107
+

108
108
109
109
## Sorting
110
110
111
-
For grid visualizations, the sorting of the rows for the column with the composite bar renderer works based on the value that is the sum of the columns used to render the composite bar computer dynamically. In the previous examples, the value used for sorting is the sum of the online, recovering, and the offline columns for that particular row.
112
-
113
-
## Tiles visualization
114
-
115
-
1. Select **Add** and *add query*.
116
-
2. Change the data source to JSON enter the data from the [previous example](#adding-composite-bar-renderer).
117
-
3. Change visualization to *Tiles*.
118
-
4. Run query.
119
-
5. Select **Tile Settings**.
120
-
6. Select *Left* in Tile fields.
121
-
7. Enter the settings below under *Field Settings*.
122
-
1. Use column: "server".
123
-
2. Column renderer: "Text".
124
-
8. Select *Bottom* in Tile fields.
125
-
9. Enter the settings below under *Field Settings*.
126
-
1. Use column: "total".
127
-
2. Column renderer: "Composite Bar".
128
-
3. Enter Set the following settings under "Composite Bar Settings".
129
-
130
-
| Column Name | Color |
131
-
|-------------|--------------|
132
-
| online | Green |
133
-
| recovering | Yellow |
134
-
| offline | Red (Bright) |
135
-
136
-
4. Add Label:`["online"] of ["total"] are healthy`.
137
-
10. Select **Apply**.
111
+
For grid visualizations, the sorting of the rows for the column with the composite bar renderer works based on the value that's the sum of the columns used to render the composite bar computer dynamically. In the previous examples, the value used for sorting is the sum of the **online**, **recovering**, and **offline** columns for that particular row.
112
+
113
+
## Tile visualizations
114
+
115
+
To make a composite bar renderer for a tile visualization:
116
+
117
+
1. Select **Add** > **Add query**.
118
+
1. Change the data source to `JSON`. Enter the data from the [previous example](#add-the-composite-bar-renderer).
119
+
1. Change **Visualization** to `Tiles`.
120
+
1. Run the query.
121
+
1. Select **Tile Settings**.
122
+
1. Under **Tile fields**, select **Left**.
123
+
1. Under **Field settings**, set the following settings:
124
+
1. **Use column**: `server`
125
+
1. **Column renderer**: `Text`
126
+
1. Under **Tile fields**, select **Bottom**.
127
+
1. Under **Field settings**, set the following settings:
128
+
1. **Use column**: `total`
129
+
1. **Column renderer**: `Composite Bar`
130
+
1. Under **Composite Bar Settings**, set the following settings:
131
+
132
+
| Column Name | Color |
133
+
|-------------|--------------|
134
+
| online | Green |
135
+
| recovering | Yellow |
136
+
| offline | Red (Bright) |
137
+
138
+
1. For **Label**, enter `["online"] of ["total"] are healthy`.
139
+
1. Select **Apply**.
138
140
139
141
Composite bar settings for tiles:
140
142
141
-

142
-
143
-
The Composite bar view for Tiles with the above settings will look like this:
144
-
145
-

146
-
147
-
## Graphs visualization
148
-
149
-
To make a composite bar renderer for Graphs visualization (type Hive Clusters), follow the instructions below.
150
-
151
-
1. Select **Add**and *add query*.
152
-
2. Change the data source to JSON enter the data from the [previous example](#adding-composite-bar-renderer).
153
-
3. Change visualization to *Graphs*.
154
-
4. Run query.
155
-
5. Select **Graph Settings**.
156
-
6. Select *Center Content* in Node Format Settings.
157
-
7. Enter the settings below under *Field Settings*.
158
-
1. Use column: "total".
159
-
2.Column renderer: "Composite Bar".
160
-
3. Enter the following settings under *Composite Bar Settings*.
161
-
162
-
|Column Name | Color |
163
-
|-------------|--------------|
164
-
| online | Green |
165
-
| recovering | Yellow |
166
-
| offline | Red (Bright) |
167
-
168
-
4. Add Label:`["online"] of ["total"] are healthy`.
169
-
9. Enter the settings below under *Layout Settings*.
170
-
1. Graph Type: **Hive Clusters**.
171
-
2.Node ID select: "server".
172
-
3.Group By Field: "None".
173
-
4.Node Size: 100.
174
-
5.Margin between hexagons: 5.
175
-
6.Coloring Type type: **None**.
143
+

144
+
145
+
The composite bar view for tiles with the preceding settings will look like this example:
146
+
147
+

148
+
149
+
## Graph visualizations
150
+
151
+
To make a composite bar renderer for a graph visualization (type Hive Clusters):
152
+
153
+
1. Select **Add** > **Add query**.
154
+
2. Change **Data source** to `JSON`. Enter the data from the [previous example](#add-the-composite-bar-renderer).
155
+
1. Change **Visualization** to `Graphs`.
156
+
1. Run the query.
157
+
1. Select **Graph Settings**.
158
+
1. Under **Node Format Settings**, select **Center Content**.
159
+
1. Under **Field settings**, set the following settings:
160
+
1. **Use column**: `total`
161
+
1. **Column renderer**: `Composite Bar`
162
+
1. Under **Composite Bar Settings**, set the following settings:
163
+
164
+
|Column Name | Color |
165
+
|-------------|--------------|
166
+
| online | Green |
167
+
| recovering | Yellow |
168
+
| offline | Red (Bright) |
169
+
170
+
1. For **Label**, enter `["online"] of ["total"] are healthy`.
171
+
1. Under **Layout Settings**, set the following settings:
172
+
1. **Graph Type**: `Hive Clusters`
173
+
1. **Node ID**: `server`
174
+
1. **Group By Field**: `None`
175
+
1. **Node Size**: `100`
176
+
1. **Margin between hexagons**: `5`
177
+
1. **Coloring Type**: `None`
176
178
1. Select **Apply**.
177
-
179
+
178
180
Composite bar settings for graphs:
179
181
180
-

182
+

181
183
182
-
The Composite bar view for Graph with the above settings will look like this:
184
+
The composite bar view for a graph with the preceding settings will look like this example:
183
185
184
-

186
+

185
187
186
188
## Next steps
187
189
188
-
-[Getting started with Azure Workbooks](workbooks-getting-started.md).
190
+
[Get started with Azure Workbooks](workbooks-getting-started.md)
0 commit comments