Class LivePivotWidget

All Implemented Interfaces:
com.fishlib.base.log.LogOutputAppendable, Deflatable<LivePivotWidget>, CloseableWidget, ContextAwareLiveWidget<LivePivotWidget>, LiveWidget<LivePivotWidget>, LiveWidgetAclFilterable<LivePivotWidget>, LivenessManager, LivenessNode, LivenessReferent, Serializable

See Also:
  • Constructor Details

    • LivePivotWidget

      public LivePivotWidget(Table tableToPivot, String[] rows, String columnTitleColumn, String valueColumn, LivePivotWidget.Aggregation aggregation, @NotNull PivotOptions options)
      This constructor is used to create the widget.
      Parameters:
      tableToPivot - the table to pivot
      rows - the key columns for the rows
      columnTitleColumn - the column used as a title for each column
      valueColumn - the column containing the value of interest
      aggregation - how to aggregate the data
      options - a struct of booleans that control how the widget presents the data
    • LivePivotWidget

      public LivePivotWidget(Table tableToPivot, String[] rows, String columnTitleColumn, String[] valueColumns, String[] filterColumns, String[] requiredFilterColumns, LivePivotWidget.Aggregation aggregation, @NotNull PivotOptions options, Function<Object,Object> colorFormat, Function<Object,Object> columnNameTransform)
      This constructor is used to create the widget.
      Parameters:
      tableToPivot - the table to pivot
      rows - the key columns for the rows
      columnTitleColumn - the column used as a title for each column
      valueColumns - the columns containing the values of interest
      aggregation - how to aggregate the data
      options - a struct that control how the widget presents the data
      colorFormat - an optional function for creating heatmap colors
      columnNameTransform - an optional function for transforming column names
    • LivePivotWidget

      public LivePivotWidget(Table tableToPivot, String[] rows, String columnTitleColumn, String[] valueColumns, String[] filterColumns, String[] requiredFilterColumns, LivePivotWidget.Aggregation aggregation, @NotNull PivotOptions options, Function<Object,Object> colorFormat, Function<Object,Object> columnNameTransform, Comparable<?>[] userRowOrder, Comparable<?>[] userColumnOrder)
      This constructor is used to create the widget.
      Parameters:
      tableToPivot - the table to pivot
      rows - the key columns for the rows
      columnTitleColumn - the column used as a title for each column
      valueColumns - the columns containing the values of interest
      aggregation - how to aggregate the data
      options - a struct that control how the widget presents the data
      colorFormat - an optional function for creating heatmap colors
      columnNameTransform - an optional function for transforming column names
      userRowOrder - A custom order for row-columns
    • LivePivotWidget

      public LivePivotWidget(Table tableToPivot, String[] rows, String columnTitleColumn, String[] valueColumns, String[] filterColumns, String[] requiredFilterColumns, LivePivotWidget.Aggregation aggregation, @NotNull PivotOptions options, Function<Object,Object> colorFormat, Map<String,Function<Object,Object>> colorFormats, Function<Object,Object> columnNameTransform)
      This constructor is used to create the widget.
      Parameters:
      tableToPivot - the table to pivot
      rows - the key columns for the rows
      columnTitleColumn - the column used as a title for each column
      valueColumns - the columns containing the values of interest
      aggregation - how to aggregate the data
      options - a struct that control how the widget presents the data
      colorFormat - an optional function for creating heatmap colors
      colorFormats - an optional map of columns to functions for creating heatmap colors
      columnNameTransform - an optional function for transforming column names
    • LivePivotWidget

      public LivePivotWidget(Table tableToPivot, String[] rows, String columnTitleColumn, String[] valueColumns, String[] filterColumns, String[] requiredFilterColumns, LivePivotWidget.Aggregation aggregation, @NotNull PivotOptions options, Function<Object,Object> colorFormat, Map<String,Function<Object,Object>> colorFormats, Function<Object,Object> columnNameTransform, Comparable<?>[] userRowColumnOrder, Comparable<?>[] userColumnOrder)
      This constructor is used to create the widget.
      Parameters:
      tableToPivot - the table to pivot
      rows - the key columns for the rows
      columnTitleColumn - the column used as a title for each column
      valueColumns - the columns containing the values of interest
      aggregation - how to aggregate the data
      options - a struct that control how the widget presents the data
      colorFormat - an optional function for creating heatmap colors
      colorFormats - an optional map of columns to functions for creating heatmap colors
      columnNameTransform - an optional function for transforming column names
      userRowColumnOrder - a user specified row column ordering
  • Method Details