diff --git a/articles/building-twitter-followers.html b/articles/building-twitter-followers.html index 2432d733..02004fbb 100644 --- a/articles/building-twitter-followers.html +++ b/articles/building-twitter-followers.html @@ -114,8 +114,8 @@

Candidates whose followers are loyal only to them

Share of each 2020 candidate's followers who don't follow any other candidates -
- +
+
@@ -200,8 +200,8 @@

Create a basic tablelibrary(reactable) reactable(data) -
-

You can already sort the table, but there’s no default sorting on the +

+

You can already sort the table, but there’s no default sorting on the “exclusive followers” column. The numeric columns are still unformatted and sort in ascending order (smallest to largest) by default.

Let’s customize the default sorting, add proper column names, and @@ -230,8 +230,8 @@

Create a basic table) ) ) -
- +
+

Add bar charts @@ -299,8 +299,8 @@

Add bar charts ) ) )

-
-

The bar charts look good, but they aren’t aligned because the numbers +

+

The bar charts look good, but they aren’t aligned because the numbers have different widths. Let’s fix this by giving each numeric label the same width. One way to do this would be to format the labels as fixed-width strings, and use a monospaced font so that each character @@ -352,8 +352,8 @@

Add bar charts ) ) ) -
- +
+

Dynamic formatting @@ -423,8 +423,8 @@

Dynamic formatting) ) )

-
- +
+
-
- +
+
 tbl <- reactable(
diff --git a/articles/conditional-styling.html b/articles/conditional-styling.html
index 9ae62706..469d43f1 100644
--- a/articles/conditional-styling.html
+++ b/articles/conditional-styling.html
@@ -185,8 +185,8 @@ 

Example: color scales ) ) )

-
- +
+

Example: highlight sorted columns @@ -216,8 +216,8 @@

Example: highlight sorted columns -
- +
+

Cell Styling diff --git a/articles/cookbook/cookbook-no-static.html b/articles/cookbook/cookbook-no-static.html index 37e5e19e..558fc1c3 100644 --- a/articles/cookbook/cookbook-no-static.html +++ b/articles/cookbook/cookbook-no-static.html @@ -137,8 +137,8 @@

-
- +
+

Conditional formatting @@ -162,8 +162,8 @@

Color scales}) ) )

-
-
+
+
 dimnames <- list(start(nottem)[1]:end(nottem)[1], month.abb)
 temps <- matrix(nottem, ncol = 12, byrow = TRUE, dimnames = dimnames)
 
@@ -187,8 +187,8 @@ 

Color scales), bordered = TRUE )

-
- +
+

Formatting changes @@ -218,8 +218,8 @@

Formatting changes) ) )

-
- +
+

Tags and badges @@ -290,8 +290,8 @@

Tags and badges -
-
+
+
 library(htmltools)
 
 status_badge <- function(color = "#aaa", width = "0.55rem", height = width) {
@@ -320,8 +320,8 @@ 

Tags and badges }) ) )

-
- +
+

-
-
+
+

Positive and negative values

@@ -408,8 +408,8 @@ 

Positive and negative values) ) )

-
- +
+

Background bar charts @@ -464,8 +464,8 @@

Background bar charts ), bordered = TRUE )

-
- +
+
-
-

If the image file is local, ensure the image can be found from the +

+

If the image file is local, ensure the image can be found from the rendered document: