Nothing
add_legend()
can be used to display the color palette used within the tableadd_icon_legend()
can be used to display the icon set used within icon_sets()
title
or footer
add_legend()
can be adjusted with bins
embed_img()
, an image within background_img()
will take up the entire contents of a cellbackground_img()
can also be used in conjunction with embed_img()
shape
cell_style()
can be used to customize the appearance of certain cells within a table. For example, if you wanted to display a particular value or set of values in a column as bold and in red text, you can do so by specifying either the row number or values themselvescell_style()
by default, but can be turned off by setting to 'none'show_min_max
to TRUEdata_bars()
are available in gauge_chart()
google_font()
add_title()
, add_subtitle()
, and add_source()
with the html()
helper functionpill_buttons()
can be used to surround text or numeric values in a colored pill button. It is similar to color_tiles()
but is more condensed and round and the width of the pill dynamically adjusts based on the size of the text/valuescolor_tiles()
, color_scales()
, and data_bars()
, colors can be conditionally assigned from another column in the dataset and many of the other options available in color_tiles()
are available in pill_buttons()
box_shadow
to TRUE to apply a box shadow to the buttonsreact_sparkline()
and react_sparkbar()
color_scales()
)cell
of reactable::colDef
margin()
data_bars()
can now be controlled with animate
. The animate
parameter has also been added to color_scales()
, color_tiles()
, icon_sets()
, and icon_assign()
. The duration and timing function of the animation can be changed within animate
or the animation can be turned off by setting it to 'none'. For available timing functions, see CSS Transitionsbox_shadow
to TRUE to apply a box shadow to the tilestext_size
border_style
, border_width
, and border_color
optionsbox_shadow
to TRUE to apply a box shadow to the barshorizontal_align
option align_icons
. Previously, icons could only be aligned to the lefticon_set
. Options are "ski rating", "medals", and "batteries". Can be used with add_icon_legend()
color_scales()
, color_tiles()
, and data_bars()
if there was no variance within the columnicon_assign()
that displayed an error for columns containing all zeros fill_color
within data_bars()
and icon_assign()
has been changed to #67a9cftext_position
within data_bars()
has been changed from "outside-end" to "inside-end"data_bars()
by defaultdata_bars()
can now be changed with text_size
save_reactable()
from {webshot2} to {webshot}. The {webshot} package is available on CRAN, so there is no need for users to manually download {webshot2} from GitHubcentered
to TRUE within any of the {reactablefmtr} themes data_bars()
can now handle columns with positive and negative values. data_bars_pos_neg()
is being depreciateddata_bars()
can create color gradients when more than two colors are provided with fill_gradient = TRUE
. data_bars_gradient()
is being depreciatedcolors
argument in data_bars()
has been renamed to fill_color
bar_height
background
has been changed from white to transparentdata_bars()
can now be either right-aligned or left-aligned with the align_bars
argument by specifying either "left" or "right". By default, data_bars()
are aligned leftdata_bars()
with the text_position
argument. Labels can be placed either outside the filled bars with "outside-end" or "outside-base", inside the filled bars with "inside-end", "inside-base", or "center", or labels can be hidden with "none". By default, labels are placed on the "outside-end" of the filled barstext_color
argument. The default color is blackbold_text
logical argumentbrighten_text
logical argument. The color of brighten_text_color
can be changed to any colordata_bars()
can be provided from another column by referencing the name of the column containing the colors within fill_color_ref
. This is useful for assigning conditions or assigning colors to the bars for different groups within the datasetfill_opacity
by providing a value between 0 and 1 (from transparent to opaque)data_bars()
can be adjusted with the max_value
argument. By default, the maximum width is the maximum value contained in the column. Ex. if showing percentages and the maximum value is 80%, by default, 80% will look 100% filled (since it's 80% out of 80%). By changing max_value = 1
(or max_value = 100
depending on how your percentages are displayed), it will shrink the 80% to be relative to 100%. If a maximum value is provided, a minimum value can also be set with min_value
icon
or icon_ref
icon_color
or icon_color_ref
img
or img_ref
color_ref
. This is useful for assigning conditions or assigning colors to the bars for different groups within the dataset. If color_ref
is used within reactable::defaultColDef
, every column in the dataset, regardless of whether they are numeric or not, will receive the conditional colors. opacity
by providing a value between 0 and 1text_color
argument. The default color is blackbold_text
logical argumentbrighten_values
has been renamed to brighten_text
brighten_values
applied can be changed with brighten_text_color
. The default color is whiteshow_text
to FALSEicon_size
fill_color
and empty_color
can be adjusted with fill_opacity
and empty_opacity
respectively, by providing a value between 0 and 1 (from transparent to opaque)show_values
icon_position
. Previously icons could only be positioned to the right of the valuesicon_size
opacity
by providing a value between 0 and 1 (from transparent to opaque)icon_ref
icon_color_ref
save_reactable()
add_title()
and add_subtitle()
add_source()
Added 24 new table themes, including:
colors
argument in data_bars()
has been renamed to fill_color
brighten_values
argument in color_scales()
and color_tiles()
has been renamed to brighten_text
data_bars_gradient()
color_tiles()
embed_img()
scales
package using the number_fmt()
optioncolor_scales()
and color_tiles()
packages will automatically be shown in black or white color depending on the saturation of the background color of the cell. This option can be turned off by setting bright_values = FALSE
data_bars()
, data_bars_pos_neg()
, data_bars_gradient()
)span
option within color_scales()
and color_tiles()
. Special thanks to June Chao for the contribution for this feature.icon_assign()
data_bars()
did not always align properly has been fixednumber_fmt()
which allows for the use of formatters from the scales
package, the add_plus_sign()
formatter will be retired in the next CRAN release as well as the commas
option in the data_bars()
formatter, and the percent
option in the data_bars_pos_neg()
and icon_sets()
formattersAny scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.