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
Copy file name to clipboardExpand all lines: docs/trex_release-notes.md
+48Lines changed: 48 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,54 @@ layout: docs
12
12
See also: [Known Issues]({{site.baseurl}}/docs/trex_known_issues.html)
13
13
14
14
15
+
16
+
17
+
18
+
### Tableau Dashboard Extensions API version 1.8
19
+
20
+
*November 2021*
21
+
22
+
* Tableau Dashboard Extensions API library: `tableau.extensions.1.8.0.js` <br>(download or clone the Extensions API repository on [GitHub](https://github.com/tableau/extensions-api){:target="_blank"}.) <br/>
23
+
24
+
* Certain features in this release are only available in Tableau 2021.4 or later. Preview the features and test your extension with the latest version of Tableau in the Developer Sandbox. To gain access to the Developer Sandbox, join the [Tableau Developer Program](http://www.tableau.com/developer){:target="_blank"} and request your own Tableau Online developer site.
25
+
26
+
About this release:
27
+
28
+
This release contains updates for [Tableau Viz]({{site.baseurl}}/docs/trex_tableau_viz.html){:target="_blank"}, including:
29
+
30
+
* Added support for setting the size of a bar mark to be manual (`VizImageSizeSettingType.Manual`) or fixed (`VizImageSizeSettingType.Fixed`). If the type is manual, you can set the mark’s size. If the type is fixed, you can set the alignment (`VizImageSizeSettingAlignmentType`).
31
+
32
+
* Added support for sorting. You can sort a field (continuous or discrete) by ascending or descending values (`VizImageSortDirectionType.Ascending`, `VizImageSortDirectionType.Descending`).
* For continuous fields, you can set the color palette to a custom-diverging, or custom-sequential color palette. You are not restricted to using only a Tableau defined palate, such as, `green_blue_white_diverging_10_0`.
39
+
For example, you could set the custom palette as shown in the following examples:
* Added support to show or hide grid lines in the view for rows or columns, or both.
56
+
57
+
* Starting with the v1.8 release of the Dashboard Extensions API library and Tableau 2021.4, Tableau Viz now uses Tableau fonts as the default font for text in the output SVG image.
58
+
59
+
For more information, see [Tableau Viz Reference]({{site.baseurl}}/docs/trex_tableau_viz_ref.html){:target="_blank"}
@@ -138,17 +139,18 @@ Within these properties, you must specify the field to encode and its type (`tab
138
139
139
140
---
140
141
141
-
#### `columns` and `rows`
142
+
#### encoding: `columns` and `rows`
142
143
143
144
| Property | Value |
144
145
|:--- |:--- |
145
146
|`field`| The name of the field to encode. |
146
147
|`type`| The type of field, either `tableau.VizImageEncodingType.Discrete` (blue "pill") or `tableau.VizImageEncodingType.Continuous` (green "pill"). |
147
148
|`hidden`| Boolean (`true`, `false`). Specifies whether to show or hide the column or row header. |
149
+
|`showgridline`| Boolean (`true`, `false`). Specifies whether to show or hide the gridlines. |
148
150
|`title`| Specifies a custom field label (x-axis, or header) or custom axis title (y-axis) for the columns and rows. |
149
151
|`showtitle`| Boolean (`true`, `false`). Specifies whether to show or hide the custom column or row title. |
150
152
151
-
The following is an example of how you might specify the encodings for columns and rows:
153
+
The following are examples of how you might specify the encodings for columns and rows:
Specifies the size encoding of the mark. The `size` property corresponds to the Size button on the Marks card. For continuous fields, you can set the bar mark to either manual or fixed size. You can also set the mark’s alignment.
176
+
177
+
|`size` Property | Value |
178
+
|:--- |:--- |
179
+
|`field`| The name of the field to encode. |
180
+
|`type`| The way the data is distributed in the view (discrete or continuous).|
181
+
|`setting`| For continuous fields of the bar mark type, specifies the size and alignment properties of a mark. The options are manual (`tableau.VizImageSizeSettingType.Manual`) or fixed size (`tableau.VizImageSizeSettingType.Fixed`). For manual, you can specify a `size` value from `0` to `2`. For fixed, you can set the alignment and width in axis units. See the `setting` properties for more information. |
182
+
|`showlegend`| Boolean (`true`, `false`). Specifies whether to show or hide the color legend. |
183
+
184
+
185
+
|`setting` Property | Value |
186
+
|:--- |:--- |
187
+
|`tableau.VizImageSizeSettingType.Fixed`| Mark size is fixed. When `Fixed` is selected, you can set the `alignment` to `tableau.VizImageSizeSettingAlignmentType.Right`, `tableau.VizImageSizeSettingAlignmentType.Left`, or `tableau.VizImageSizeSettingAlignmentType.Center`. You can set the `width_in_axis_units` to a fixed number of units (floating point values accepted). |
188
+
|`tableau.VizImageSizeSettingType.Manual`| Specifies that the mark size type is manual. When this is selected, set the `marksize` value (from 0 to 2, floating point values accepted). |
Specifies the sort order for a field (continuous or discrete). Supports sorting the field by ascending or descending values (`VizImageSortDirectionType.Ascending`, `VizImageSortDirectionType.Descending`), based on the `sortby` criteria you provide.
The `color` property corresponds to the Color button on the Marks card. The color can contain additional properties:
165
226
166
227
| Property | Value |
167
228
|:--- |:--- |
168
229
|`field`| The name of the field to encode. |
169
-
|`type`| The way the data is distributed in the view (`discrete` or `continuous`).|
170
-
|`palette`| Specifies color encoding for the field from the Tableau palette. Note that there are separate palettes for `discrete` or `continuous` fields. |
230
+
|`type`| The way the data is distributed in the view (discrete or continuous).|
231
+
|`palette`| Specifies color encoding for the field from the Tableau palette. Note that there are separate palettes for discrete or continuous fields. You can also create custom color palettes for continuous fields. See [Create Custom Color Palettes](#create-custom-color-palettes). |
171
232
|`showlegend`| Boolean (`true`, `false`). Specifies whether to show or hide the color legend. |
172
233
173
-
174
234
**`palette` names for continuous fields**
175
235
176
236
You can specify one of the following Tableau color palettes with the `palette` property for continuous fields. Note that the list of available palettes depends upon the version of Tableau that is being used. Be aware that the palette colors are subject to change.
177
237
178
-
The following is an example that shows how you might encode a continuous field with a Tableau palette.
238
+
The following is an example that shows how you might encode a continuous field with a Tableau palette. You can also create custom color palettes for continuous fields. See [Create Custom Color Palettes](#create-custom-color-palettes).
You can set the color palette to a custom diverging or custom sequential color palette that you specify, and not just the Tableau defined palates, such as, `green_blue_white_diverging_10_0`.
283
+
284
+
285
+
| Custom Palette Property | Value |
286
+
|:--- |:--- |
287
+
|`tableau.VizImagePaletteType.CustomDiverging`| Defines a custom diverging palette. Specify the `start` value and an `end` value, each as a hexadecimal value. |
288
+
|`tableau.VizImagePaletteType.CustomSequential`| Defines a custom sequential palette. Specify the `end` value as a hexadecimal value. |
289
+
290
+
291
+
For example, you could set a custom palette as shown in the following examples:
<p>Consult the <ahref="{{ site.baseurl }}/docs/index.html" target="_blank">Tableau Extensions API Reference</a> and <ahref="{{{site.baseurl}}/docs/trex_tableau_viz_ref.html">Tableau Viz Reference</a> while you build your extensions.</p>
37
+
<p>Consult the <ahref="{{ site.baseurl }}/docs/index.html" target="_blank">Tableau Extensions API Reference</a> and <ahref="{{site.baseurl}}/docs/trex_tableau_viz_ref.html">Tableau Viz Reference</a> while you build your extensions.</p>
0 commit comments