Table#
Table #
Table(
data: Union[DataType, DataFrame],
*,
columns: Optional[TableColumns] = None,
widget_id: Optional[str] = None,
title: WidgetTitleType = None,
styling: Optional[TableStyling] = None,
row_selection: int = 1,
rows_per_page: int = 10,
initial_state: Optional[InitialState] = None,
has_search_box: bool = False,
has_filter_row: bool = False,
has_header_filter: bool = False,
group_columns: Optional[List[Group]] = None
)
Construct table widget.
Construct a table widget with customizable parameters such as data source, columns, title, styling, row selection, pagination, search box, and more.
Constructor for Table widget.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
data |
Union[DataType, DataFrame]
|
data to be used by widget. Accepts DataSource as well as raw data. |
required |
columns |
Optional[TableColumns]
|
header(s)/column(s) into the Table Widget. When this is of type string, it is assumed to be a text column. |
None
|
widget_id |
Optional[str]
|
unique widget id in a dashboard. |
None
|
title |
WidgetTitleType
|
title of widget can be either a string (fixed value) or determined by a value from another widget using a WidgetField. |
None
|
styling |
Optional[TableStyling]
|
styling of table widget. |
None
|
row_selection |
int
|
number of rows that can be selected. |
1
|
rows_per_page |
int
|
number of rows shown in each page. |
10
|
initial_state |
Optional[InitialState]
|
initial state of table widget. |
None
|
has_search_box |
bool
|
show search box. |
False
|
has_filter_row |
bool
|
show filter row. |
False
|
has_header_filter |
bool
|
show header filter. |
False
|
group_columns |
Optional[List[Group]]
|
list of columns that should be grouped. |
None
|
Examples:#
Create a minimal Table Widget
Create Table with custom columns
InitialState #
Define initial state for table widget.
Define the initial state for the table widget, including the default page, search text, and pre-selected rows.
Constructor for InitialState.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
page |
int
|
the default initial page. |
0
|
search_text |
str
|
Initial string in the search box. |
''
|
selected |
Optional[List[str]]
|
List of rows pre-selected by default. |
None
|
TableStyling #
TableStyling(
*,
has_borders: bool = True,
has_column_lines: bool = True,
has_body_column_lines: bool = True,
has_row_lines: bool = True,
single_height_row: bool = True
)
Visual styling options for table widget.
Specify the visual styling options for the table widget, including borders, column lines, row lines, and row height.
Constructor for TableStyling.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
has_borders |
bool
|
whether the outer border of the table are shown. |
True
|
has_column_lines |
bool
|
whether vertical lines that separate columns are visible. |
True
|
has_body_column_lines |
bool
|
whether vertical lines that separate body columns are visible. |
True
|
has_row_lines |
bool
|
whether horizontal lines that separate rows are visible. |
True
|
single_height_row |
bool
|
whether row has single height (True) or double height (False). |
True
|
Group #
Define group column for table widget.
Define a group column for the table widget, which allows grouping rows based on specified columns.
Constructor for Group.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
data_column |
Union[str, WidgetField]
|
column that will be used to group the table rows. |
required |
label |
Union[str, WidgetField]
|
table group label. |
required |
Headers#
Header #
Header(
columns: TableColumns,
label: Union[str, GenericLink],
tooltip_text: Optional[
List[TemplatedStringItem]
] = None,
)
Specify header columns with optional tooltips for table widget.
Specify the columns to be displayed as headers above the normal columns in the table widget, along with optional tooltip text.
Constructor for Header.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
columns |
TableColumns
|
header(s)/column(s) into the Table Widget. When this is of type string, it is assumed to be a text column. |
required |
label |
Union[str, GenericLink]
|
label to be displayed for this column. |
required |
tooltip_text |
Optional[List[TemplatedStringItem]]
|
info text to explain column. Each element of list is displayed as a separate paragraph. |
None
|
Examples:#
Create a Table widget with Header
Columns#
AreaChartColumn #
AreaChartColumn(
*,
data_column: Union[str, WidgetField],
data_key: Union[str, WidgetField],
label: Optional[Union[str, GenericLink]] = None,
formatting: Optional[NumberFormatting] = None,
styling: Optional[
Union[Palette, AreaChartStyling]
] = None,
display_first_value: bool = True,
display_last_value: bool = True,
reference_line: Optional[ReferenceLineType] = None,
hiding_priority: int = 0,
tooltip_text: Optional[
List[TemplatedStringItem]
] = None,
min_width: Optional[int] = None,
sortable: bool = True,
optional: bool = False,
tooltip: Optional[ChartTooltip] = None
)
Define table widget column area.
Define a column in the table widget that displays an area sparkline chart, including options for data, formatting, styling, and more.
Constructor for AreaChartColumn.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
data_column |
Union[str, WidgetField]
|
name of column in pandas dataframe(s) used for this widget. |
required |
data_key |
Union[str, WidgetField]
|
key in object that contains the value for the line chart. |
required |
label |
Optional[Union[str, GenericLink]]
|
label to be displayed for this column. |
None
|
formatting |
Optional[NumberFormatting]
|
formatting spec. |
None
|
styling |
Optional[Union[Palette, AreaChartStyling]]
|
styling spec for area chart. |
None
|
display_first_value |
bool
|
display first value before chart. |
True
|
display_last_value |
bool
|
display last value after chart. |
True
|
reference_line |
Optional[ReferenceLineType]
|
reference line that will be added to the chart created. |
None
|
hiding_priority |
int
|
columns with lower hiding_priority are hidden first if not all data can be shown. |
0
|
tooltip_text |
Optional[List[TemplatedStringItem]]
|
info text to explain column. Each element of list is displayed as a separate paragraph. |
None
|
min_width |
Optional[int]
|
min width of the column in pixels. |
None
|
sortable |
bool
|
determines if column can be sorted. |
True
|
optional |
bool
|
flag to make the column optional if there is no Data for that columns. |
False
|
tooltip |
Optional[ChartTooltip]
|
specs for tooltip. |
None
|
Examples:#
Create a Table widget with AreaChartColumn
CategoryColumn #
CategoryColumn(
*,
data_column: Union[str, WidgetField],
label: Optional[Union[str, GenericLink]] = None,
formatting: MapperFormatting,
styling: Optional[
Union[Palette, CategoryColumnStyling]
] = None,
align: HorizontalAlignment = HorizontalAlignment.LEFT,
hiding_priority: int = 0,
tooltip_text: Optional[
List[TemplatedStringItem]
] = None,
min_width: Optional[int] = None,
sortable: bool = False,
optional: bool = False
)
Define table widget column: Categorize data with source.
Define a column in the table widget that categorizes data, with options for data source, label, formatting, styling, and alignment.
Constructor for CategoryColumn.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
data_column |
Union[str, WidgetField]
|
name of column in pandas dataframe(s) used for this widget. |
required |
label |
Optional[Union[str, GenericLink]]
|
label to be displayed for this column. |
None
|
formatting |
MapperFormatting
|
formatting spec. |
required |
styling |
Optional[Union[Palette, CategoryColumnStyling]]
|
styling spec for column. One of TableColumnStylingCell, TableColumnStylingCountryFlag or TableColumnStylingDot. |
None
|
align |
HorizontalAlignment
|
column align. |
LEFT
|
hiding_priority |
int
|
columns with lower hiding_priority are hidden first if not all data can be shown. |
0
|
tooltip_text |
Optional[List[TemplatedStringItem]]
|
info text to explain column. Each element of list is displayed as a separate paragraph. |
None
|
min_width |
Optional[int]
|
min width of the column in pixels. |
None
|
sortable |
bool
|
determines if column can be sorted. |
False
|
optional |
bool
|
flag to make the column optional if there is no Data for that columns. |
False
|
Examples:#
Create a Table widget with CategoryColumn
ColumnChartColumn #
ColumnChartColumn(
*,
data_column: Union[str, WidgetField],
data_key: Union[str, WidgetField],
label: Optional[Union[str, GenericLink]] = None,
formatting: Optional[NumberFormatting] = None,
styling: Optional[
Union[Palette, ColumnChartStyling]
] = None,
display_first_value: bool = True,
display_last_value: bool = True,
reference_line: Optional[ReferenceLineType] = None,
hiding_priority: int = 0,
tooltip_text: Optional[
List[TemplatedStringItem]
] = None,
min_width: Optional[int] = None,
sortable: bool = True,
optional: bool = False,
tooltip: Optional[ChartTooltip] = None
)
Define table widget column: Column sparkline chart with data.
Define a column in the table widget that displays a column sparkline chart, including options for data, formatting, styling, and more.
Constructor for ColumnChartColumn.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
data_column |
Union[str, WidgetField]
|
name of column in pandas dataframe(s) used for this widget. |
required |
data_key |
Union[str, WidgetField]
|
key in object that contains the value for the line chart. |
required |
label |
Optional[Union[str, GenericLink]]
|
label to be displayed for this column. |
None
|
formatting |
Optional[NumberFormatting]
|
formatting spec. |
None
|
styling |
Optional[Union[Palette, ColumnChartStyling]]
|
styling spec for column chart. |
None
|
display_first_value |
bool
|
display first value before chart. |
True
|
display_last_value |
bool
|
display last value after chart. |
True
|
reference_line |
Optional[ReferenceLineType]
|
reference line that will be added to the chart created. |
None
|
hiding_priority |
int
|
columns with lower hiding_priority are hidden first if not all data can be shown. |
0
|
tooltip_text |
Optional[List[TemplatedStringItem]]
|
info text to explain column. Each element of list is displayed as a separate paragraph. |
None
|
min_width |
Optional[int]
|
min width of the column in pixels. |
None
|
sortable |
bool
|
determines if column can be sorted. |
True
|
optional |
bool
|
flag to make the column optional if there is no Data for that columns. |
False
|
tooltip |
Optional[ChartTooltip]
|
specs for tooltip. |
None
|
Examples:#
Create a Table widget with ColumnChartColumn
CountryColumn #
CountryColumn(
*,
data_column: Union[str, WidgetField],
label: Optional[Union[str, GenericLink]] = None,
formatting: Optional[TextFormatting] = None,
flag_position: FlagPositions = FlagPositions.LEFT,
align: HorizontalAlignment = HorizontalAlignment.LEFT,
hiding_priority: int = 0,
tooltip_text: Optional[
List[TemplatedStringItem]
] = None,
min_width: Optional[int] = None,
sortable: bool = False,
optional: bool = False
)
Define table widget column: Country information with data source.
Define a column in the table widget that displays country information, including options for data source, label, formatting, and alignment.
Constructor for Country Column.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
data_column |
Union[str, WidgetField]
|
name of column in pandas dataframe(s) used for this widget. Data in this column should be ISO 3166-1 alpha-2 country codes. |
required |
label |
Optional[Union[str, GenericLink]]
|
label to be displayed for this column. |
None
|
flag_position |
FlagPositions
|
position of country flag. |
LEFT
|
formatting |
Optional[TextFormatting]
|
text formatting spec. |
None
|
align |
HorizontalAlignment
|
column alignment. |
LEFT
|
hiding_priority |
int
|
columns with lower hiding_priority are hidden first if not all data can be shown. |
0
|
tooltip_text |
Optional[List[TemplatedStringItem]]
|
info text to explain column. Each element of list is displayed as a separate paragraph. |
None
|
min_width |
Optional[int]
|
min width of the column in pixels. |
None
|
sortable |
bool
|
determines if column can be sorted. |
False
|
optional |
bool
|
flag to make the column optional if there is no Data for that columns. |
False
|
Examples:#
Create a Table widget with CountryColumn
FlagPositions #
Country Column Flag Position Options.
Attributes:
Name | Type | Description |
---|---|---|
LEFT |
bool
|
Flag at the left of the country name. |
RIGHT |
bool
|
Flag at the right of the country name. |
HIDDEN |
None
|
Flag is hidden. |
DatetimeColumn #
DatetimeColumn(
*,
data_column: Union[str, WidgetField],
label: Optional[Union[str, GenericLink]] = None,
formatting: Optional[DateTimeFormatting] = None,
styling: Optional[
Union[Palette, DatetimeColumnStyling]
] = None,
align: HorizontalAlignment = HorizontalAlignment.CENTER,
hiding_priority: int = 0,
tooltip_text: Optional[
List[TemplatedStringItem]
] = None,
min_width: Optional[int] = None,
sortable: bool = True,
optional: bool = False
)
Define table widget column: Datetime information with data source.
Define a column in the table widget that displays datetime information, including options for data source, label, formatting, and alignment.
Constructor for DatetimeColumn.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
data_column |
Union[str, WidgetField]
|
name of column in pandas dataframe(s) used for this widget. |
required |
label |
Optional[Union[str, GenericLink]]
|
label to be displayed for this column. |
None
|
formatting |
Optional[DateTimeFormatting]
|
formatting spec. |
None
|
styling |
Optional[Union[Palette, DatetimeColumnStyling]]
|
styling spec for column. One of TableColumnStylingCell, TableColumnStylingCountryFlag or TableColumnStylingDot. |
None
|
align |
HorizontalAlignment
|
horizontal alignment of the column. |
CENTER
|
hiding_priority |
int
|
columns with lower hiding_priority are hidden first if not all data can be shown. |
0
|
tooltip_text |
Optional[List[TemplatedStringItem]]
|
info text to explain column. Each element of list is displayed as a separate paragraph. |
None
|
min_width |
Optional[int]
|
min width of the column in pixels. |
None
|
sortable |
bool
|
determines if column can be sorted. |
True
|
optional |
bool
|
flag to make the column optional if there is no Data for that columns. |
False
|
Examples:#
Create a Table widget with DatetimeColumn
LineChartColumn #
LineChartColumn(
*,
data_column: Union[str, WidgetField],
data_key: Union[str, WidgetField],
label: Optional[Union[str, GenericLink]] = None,
formatting: Optional[NumberFormatting] = None,
styling: Optional[
Union[Palette, LineChartStyling]
] = None,
display_first_value: bool = True,
display_last_value: bool = True,
reference_line: Optional[ReferenceLineType] = None,
hiding_priority: int = 0,
tooltip_text: Optional[
List[TemplatedStringItem]
] = None,
min_width: Optional[int] = None,
sortable: bool = True,
optional: bool = False,
tooltip: Optional[ChartTooltip] = None
)
Define table widget column: Line sparkline chart with data.
Define a column in the table widget that displays a line sparkline chart, including options for data, formatting, styling, and more.
Constructor for LineChartColumn.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
data_column |
Union[str, WidgetField]
|
name of column in pandas dataframe(s) used for this widget. |
required |
data_key |
Union[str, WidgetField]
|
key in object that contains the value for the line chart. |
required |
label |
Optional[Union[str, GenericLink]]
|
label to be displayed for this column. |
None
|
formatting |
Optional[NumberFormatting]
|
formatting spec. |
None
|
styling |
Optional[Union[Palette, LineChartStyling]]
|
styling spec for line chart. |
None
|
display_first_value |
bool
|
display first value before chart. |
True
|
display_last_value |
bool
|
display last value after chart. |
True
|
reference_line |
Optional[ReferenceLineType]
|
reference line that will be added to the chart created. |
None
|
hiding_priority |
int
|
columns with lower hiding_priority are hidden first if not all data can be shown. |
0
|
tooltip_text |
Optional[List[TemplatedStringItem]]
|
info text to explain column. Each element of list is displayed as a separate paragraph. |
None
|
min_width |
Optional[int]
|
min width of the column in pixels. |
None
|
sortable |
bool
|
determines if column can be sorted. |
True
|
optional |
bool
|
flag to make the column optional if there is no Data for that columns. |
False
|
tooltip |
Optional[ChartTooltip]
|
specs for tooltip. |
None
|
Examples:#
Create a Table widget with LineChartColumn
NumberColumn #
NumberColumn(
*,
data_column: Union[str, WidgetField],
label: Optional[Union[str, GenericLink]] = None,
formatting: Optional[NumberFormatting] = None,
styling: Optional[
Union[Palette, NumberColumnStyling]
] = None,
align: Optional[HorizontalAlignment] = None,
hiding_priority: int = 0,
tooltip_text: Optional[
List[TemplatedStringItem]
] = None,
min_width: Optional[int] = None,
sortable: bool = True,
optional: bool = False
)
Define table widget column: Numerical data with data source.
Define a column in the table widget that displays numerical data, including options for data source, label, formatting, and alignment.
Constructor for NumberColumn.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
data_column |
Union[str, WidgetField]
|
name of column in pandas dataframe(s) used for this widget. |
required |
label |
Optional[Union[str, GenericLink]]
|
label to be displayed for this column. |
None
|
formatting |
Optional[NumberFormatting]
|
formatting spec. |
None
|
styling |
Optional[Union[Palette, NumberColumnStyling]]
|
styling spec for column. One of TableColumnStylingCell, TableColumnStylingCountryFlag or TableColumnStylingDot. |
None
|
align |
Optional[HorizontalAlignment]
|
column align. By default, it is set to the Right and when using Cell or Bar styling, otherwise it is set to the center. |
None
|
hiding_priority |
int
|
columns with lower hiding_priority are hidden first if not all data can be shown. |
0
|
tooltip_text |
Optional[List[TemplatedStringItem]]
|
info text to explain column. Each element of list is displayed as a separate paragraph. |
None
|
min_width |
Optional[int]
|
min width of the column in pixels. |
None
|
sortable |
bool
|
determines if column can be sorted. |
True
|
optional |
bool
|
flag to make the column optional if there is no Data for that columns. |
False
|
Examples:#
Create a Table widget with NumberColumn
RangeColumn #
RangeColumn(
*,
data_column: Union[str, WidgetField],
label: Optional[Union[str, GenericLink]] = None,
formatting: Optional[NumberFormatting] = None,
styling: Optional[Union[Palette, RangeStyling]] = None,
hiding_priority: int = 0,
tooltip_text: Optional[
List[TemplatedStringItem]
] = None,
min_width: Optional[int] = None,
sortable: bool = True,
optional: bool = False
)
Define table widget column: Range values with data source.
Define a column in the table widget that represents a range of values, including options for data source, label, formatting, and styling.
Constructor for RangeColumn.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
data_column |
Union[str, WidgetField]
|
name of column in pandas dataframe(s) used for this widget. |
required |
label |
Optional[Union[str, GenericLink]]
|
label to be displayed for this column. |
None
|
formatting |
Optional[NumberFormatting]
|
formatting spec. |
None
|
styling |
Optional[Union[Palette, RangeStyling]]
|
styling spec for range. |
None
|
hiding_priority |
int
|
columns with lower hiding_priority are hidden first if not all data can be shown. |
0
|
tooltip_text |
Optional[List[TemplatedStringItem]]
|
info text to explain column. Each element of list is displayed as a separate paragraph. |
None
|
min_width |
Optional[int]
|
min width of the column in pixels. |
None
|
sortable |
bool
|
determines if column can be sorted. |
True
|
optional |
bool
|
flag to make the column optional if there is no Data for that columns. |
False
|
Examples:#
Create a Table widget with RangeColumn
StackedBarColumn #
StackedBarColumn(
*,
data_column: Union[str, WidgetField],
data_key: Union[str, WidgetField],
label: Optional[Union[str, GenericLink]] = None,
bar_label_key: Optional[Union[str, GenericLink]] = None,
styling: Optional[StackedBarStyling] = None,
formatting: Optional[NumberFormatting] = None,
hiding_priority: int = 0,
tooltip_text: Optional[
List[TemplatedStringItem]
] = None,
min_width: Optional[int] = None,
sortable: bool = True,
display_total_value: bool = True,
optional: bool = False,
tooltip: Optional[StackedBarTooltip] = None
)
Define table widget column: Stacked bar chart with data.
Define a column in the table widget that displays a stacked bar chart, including options for data, formatting, styling, and more.
Constructor for StackedBarColumn.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
data_column |
Union[str, WidgetField]
|
name of column in pandas dataframe(s) used for this widget. |
required |
data_key |
Union[str, WidgetField]
|
key in object that contains the value for the stack bar chart. |
required |
label |
Optional[Union[str, GenericLink]]
|
label to be displayed for this column. |
None
|
bar_label_key |
Optional[Union[str, GenericLink]]
|
key in object that contains the label for the bars. |
None
|
formatting |
Optional[NumberFormatting]
|
formatting spec. |
None
|
styling |
Optional[StackedBarStyling]
|
styling spec for stacked chart. |
None
|
hiding_priority |
int
|
columns with lower hiding_priority are hidden first if not all data can be shown. |
0
|
tooltip_text |
Optional[List[TemplatedStringItem]]
|
info text to explain column. Each element of list is displayed as a separate paragraph. It will show up as an info icon. |
None
|
min_width |
Optional[int]
|
min width of the column in pixels. |
None
|
sortable |
bool
|
determines if column can be sorted. |
True
|
display_total_value |
bool
|
display total value after stacked bars chart. |
True
|
optional |
bool
|
flag to make the column optional if there is no Data for that columns. |
False
|
tooltip |
Optional[StackedBarTooltip]
|
tooltip spec within the stacked bar chart. It will show up once the user hovers over the chart. |
None
|
Examples:#
Create a Table widget with StackedBarColumn
TextColumn #
TextColumn(
*,
data_column: Union[str, WidgetField],
label: Optional[Union[str, GenericLink]] = None,
formatting: Optional[TextFormatting] = None,
styling: Optional[
Union[Palette, TextColumnStyling]
] = None,
align: HorizontalAlignment = HorizontalAlignment.LEFT,
hiding_priority: int = 0,
tooltip_text: Optional[
List[TemplatedStringItem]
] = None,
min_width: Optional[int] = None,
sortable: bool = True,
optional: bool = False
)
Define table widget column: Text data with data source.
Define a column in the table widget that displays text data, including options for data source, label, formatting, styling, and alignment.
Constructor for TextColumn.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
data_column |
Union[str, WidgetField]
|
name of column in pandas dataframe(s) used for this widget. |
required |
label |
Optional[Union[str, GenericLink]]
|
label to be displayed for this column. |
None
|
formatting |
Optional[TextFormatting]
|
formatting spec. |
None
|
styling |
Optional[Union[Palette, TextColumnStyling]]
|
styling spec for column. One of CellStyling, CountryFlagStyling DotStyling, FontStyling or IconStyling. |
None
|
align |
HorizontalAlignment
|
align text. |
LEFT
|
hiding_priority |
int
|
columns with lower hiding_priority are hidden first if not all data can be shown. |
0
|
tooltip_text |
Optional[List[TemplatedStringItem]]
|
info text to explain column. Each element of list is displayed as a separate paragraph. |
None
|
min_width |
Optional[int]
|
min width of the column in pixels. |
None
|
sortable |
bool
|
determines if column can be sorted. |
True
|
optional |
bool
|
flag to make the column optional if there is no Data for that columns. |
False
|
Examples:#
Create a Table widget with TextColumn
EventColumn #
EventColumn(
*,
action: Actions,
label: Optional[Union[str, WidgetField]] = None,
hiding_priority: int = 0,
tooltip_text: Optional[
List[TemplatedStringItem]
] = None,
min_width: Optional[int] = None
)
Specifications for EventColumn class.
Class EventColumn is used as urlx column for the Table Widget.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
action |
Actions
|
action to be triggered on click. |
required |
label |
Optional[Union[str, WidgetField]]
|
label to be displayed for this column. |
None
|
hiding_priority |
int
|
columns with lower hiding_priority are hidden first if not all data can be shown. |
0
|
tooltip_text |
Optional[List[TemplatedStringItem]]
|
info text to explain column. Each element of list is displayed as a separate paragraph. |
None
|
min_width |
Optional[int]
|
min width of the column in pixels. |
None
|
Create a Table widget with TextColumn
Columns Styling#
AreaChartStyling #
AreaChartStyling(
*,
color_spec: ColorSpec,
data_key: Optional[Union[str, WidgetField]] = None
)
Styling options for area chart column.
Specify the styling options for an area chart column in the table widget, including color and data key.
Constructor for AreaChartStyling.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
data_key |
Optional[Union[str, WidgetField]]
|
Dictionary key, stored in data, that is used for chart. By default, will use values of column to which styling is applied. |
None
|
color_spec |
ColorSpec
|
spec for color of area chart. |
required |
ColumnChartStyling #
ColumnChartStyling(
*,
color_spec: ColorSpec,
data_key: Optional[Union[str, WidgetField]] = None
)
Styling options for column chart column.
Specify the styling options for a column chart column in the table widget, including color and data key.
Constructor for ColumnChartStyling.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
data_key |
Optional[Union[str, WidgetField]]
|
Dictionary key, stored in data, that is used for chart. By default, will use values of column to which styling is applied. |
None
|
color_spec |
ColorSpec
|
spec for color of column chart. |
required |
LineChartStyling #
LineChartStyling(
*,
color_spec: ColorSpec,
data_key: Optional[Union[str, WidgetField]] = None
)
Styling options for line chart column.
Specify the styling options for a line chart column in the table widget, including color and data key.
Constructor for LineChartStyling.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
data_key |
Optional[Union[str, WidgetField]]
|
Dictionary key, stored in data, that is used for chart. By default, will use values of column to which styling is applied. |
None
|
color_spec |
ColorSpec
|
spec for color of line chart. |
required |
RangeStyling #
RangeStyling(
*,
color_spec: ColorSpec,
data_column: Optional[Union[str, WidgetField]] = None,
shape: RangeShape = RangeShape.CIRCLE
)
Styling options for range column.
Specify the styling options for a range column in the table widget, including color, data column, and shape.
Constructor for RangeStyling.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
data_column |
Optional[Union[str, WidgetField]]
|
id of column which values are used to determine behavior of arrow. |
None
|
color_spec |
ColorSpec
|
spec for color of range value. |
required |
shape |
RangeShape
|
shape of range indicator. |
CIRCLE
|
StackedBarStyling #
StackedBarStyling(
*,
color_spec: DiscreteMap,
data_column: Optional[Union[str, WidgetField]] = None
)
Styling options for stacked bar column.
Specify the styling options for a stacked bar column in the table widget, including color, data column, and total display.
Constructor for StackedBarStyling.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
data_column |
Optional[Union[str, WidgetField]]
|
id of column which values are used for chart. |
None
|
color_spec |
DiscreteMap
|
spec for discrete color map of stacked bar column chart. |
required |
CellStyling #
CellStyling(
*,
color_spec: ColorSpec,
data_column: Optional[Union[str, WidgetField]] = None,
percentage_fill: Optional[Union[int, float]] = 1
)
Styling options for table widget cell.
Specify the styling options for a cell in the table widget, including color, data column, and percentage fill.
Constructor for CellStyling.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
data_column |
Optional[Union[str, WidgetField]]
|
id of column which values are used to determine behavior of arrow. By default, will use values of column to which styling is applied. |
None
|
percentage_fill |
Optional[Union[int, float]]
|
how much of the cell should the color fill. Default to 1, meaning the whole cell |
1
|
color_spec |
ColorSpec
|
spec for color of arrows. |
required |
CountryFlagStyling #
Styling options for country flag column.
Specify the styling options for a country flag column in the table widget, including position and data column.
Constructor for CountryFlagStyling.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
data_column |
Optional[Union[str, WidgetField]]
|
id of column which values are used to determine behavior of arrow. By default, will use values of column to which styling is applied. |
None
|
left |
bool
|
whether to put flag to the left (True) or right (False) of column value. |
True
|
DotStyling #
DotStyling(
*,
color_spec: Optional[ColorSpec] = None,
data_column: Optional[Union[str, WidgetField]] = None
)
Styling options for dot column.
Specify the styling options for a dot column in the table widget, including color and data column.
Constructor for DotStyling.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
data_column |
Optional[Union[str, WidgetField]]
|
id of column which values are used to determine behavior of color of dot. Optional if color_spec is a single color. |
None
|
color_spec |
Optional[ColorSpec]
|
spec for color of dot. |
None
|
FontStyling #
FontStyling(
*,
color_spec: ColorSpec,
data_column: Optional[Union[str, WidgetField]] = None,
highlight_background: bool = False
)
Font styling options.
Specify the font styling options for a column in the table widget, including color, data column, and background highlighting.
Constructor for FontStyling.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
data_column |
Optional[Union[str, WidgetField]]
|
id of column which values are used to determine behavior of color of dot. Optional if color_spec is a single color. |
None
|
color_spec |
ColorSpec
|
spec for color of dot. |
required |
highlight_background |
bool
|
Highlight value background. |
False
|
ArrowStyling #
ArrowStyling(
*,
data_column: Optional[Union[str, WidgetField]] = None,
mid: Union[int, float] = 0,
color_spec: Optional[ColorSpec] = None
)
Styling options for arrow column.
Specify the styling options for an arrow column in the table widget, including data column, mid value, and color.
Constructor for ArrowStyling.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
data_column |
Optional[Union[str, WidgetField]]
|
id of column which values are used to determine behavior of arrow. By default, will use values of column to which styling is applied. |
None
|
mid |
Union[int, float]
|
value that determines when arrow flips up/down. |
0
|
color_spec |
Optional[ColorSpec]
|
spec for color of arrows. By default, used the PositiveNegativeDiscreteMap. |
None
|
ColorBarStyling #
ColorBarStyling(
*,
color_spec: ColorSpec,
data_column: Optional[Union[str, WidgetField]] = None,
left_to_right: bool = True,
min_value: Optional[Union[int, float]] = None,
max_value: Optional[Union[int, float]] = None,
percentage_fill: float = 0.9
)
Styling options for split color bar column.
Specify the styling options for a color bar column in the table widget, including color, data column, direction, min/max values, and percentage fill.
Constructor for ColorBarStyling.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
color_spec |
ColorSpec
|
spec for bar color. |
required |
data_column |
Optional[Union[str, WidgetField]]
|
id of column which values are used to determine behavior of arrow. By default, will use values of column to which styling is applied. |
None
|
left_to_right |
bool
|
determines the direction of color bar. |
True
|
min_value |
Optional[Union[int, float]]
|
value that determines a 0% bar. By default, takes the minimum value in the data. |
None
|
max_value |
Optional[Union[int, float]]
|
value that determines a full bar. By default, takes the maximum value in the data. |
None
|
percentage_fill |
float
|
how much of the cell should the color fill. |
0.9
|
SplitBarStyling #
SplitBarStyling(
*,
data_column: Optional[Union[str, WidgetField]] = None,
color_spec: Optional[ColorSpec] = None,
min_value: Optional[Union[int, float]] = None,
max_value: Optional[Union[int, float]] = None,
percentage_fill: float = 0.9
)
Styling options for split color bar column.
Specify the styling options for a split color bar column in the table widget, including color, data column, min/max values, and percentage fill.
Constructor for SplitBarStyling.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
data_column |
Optional[Union[str, WidgetField]]
|
id of column which values are used to determine behavior of arrow. By default, will use values of column to which styling is applied. |
None
|
color_spec |
Optional[ColorSpec]
|
spec for color class. |
None
|
min_value |
Optional[Union[int, float]]
|
value that determines a 0% bar. By default, takes the minimum value in the data. |
None
|
max_value |
Optional[Union[int, float]]
|
value that determines a full bar. By default, takes the maximum value in the data. |
None
|
percentage_fill |
float
|
how much of the cell should the color fill. |
0.9
|
IconStyling #
Styling options for icon column.
Specify the styling options for an icon column in the table widget, including data column and position.
Constructor for IconStyling.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
data_column |
Union[str, WidgetField]
|
id of column which values are used to determine behavior of arrow. By default, will use values of column to which styling is applied. |
required |
left |
bool
|
whether to put icon to the left (True) or right (False) of column value. |
True
|