Documentation menu
Table Sizes Object
A tableSizes
object stores size settings for columns and rows.
You can also modify the size of the cells through the UI.
Properties
Name | Type | Description |
---|---|---|
columns | Array of Column Sizes Objects | optional Contains width configurations for particular columns. |
rows | Array of Row Sizes Objects | optional Contains height configurations for particular rows. |
Table Sizes subobjects:
A Column Sizes object contains width configurations for particular columns in the report:
Name | Type | Description |
---|---|---|
width | Number | The width of the column, specified in pixels. |
idx | Number | An index representing the position of the column in the table, starts from 0 . |
tuple | Array of strings | Includes unique names of members that identify the column. |
measure | String | optional The unique name of the measure connected with the column. Must be used with the tuple property.Define this property only if “Measures” is located in columns in the slice. |
Note. When setting column sizes, specify the target column using either idx
or a tuple
, but not both simultaneously.
A Row Sizes object contains height configurations for particular rows in the report:
Name | Type | Description |
---|---|---|
height | Number | The height of the row, specified in pixels. |
idx | Number | An index representing the position of the row in the table, starts from 0 . |
tuple | Array of strings | Includes unique names of members that identify the row. |
measure | String | optional The unique name of the measure connected with the row. Must be used with the tuple property.Define this property only if “Measures” is located in rows in the slice. |
Note. When setting row sizes, specify the target row using either idx
or a tuple
, but not both simultaneously.
Example
tableSizes: {
columns: [
{
tuple: [
"Country.France"
],
measure: "Price",
width: 150
},
{
tuple: [],
measure: "Price",
width: 200
}
],
rows: [
{
idx: 4,
height: 80
}
],
}
Try it on CodePen.