Skip to content

Commit

Permalink
Fixed colors in first highcharter plot in posts/interactive-data-visu…
Browse files Browse the repository at this point in the history
…alization-with-r
  • Loading branch information
christophscheuch committed Jan 23, 2024
1 parent 614ebce commit d040f45
Show file tree
Hide file tree
Showing 5 changed files with 91 additions and 87 deletions.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@

<div class="quarto-listing quarto-listing-container-grid" id="listing-listing">
<div class="list grid quarto-listing-cols-3">
<div class="g-col-1" data-index="0" data-listing-date-sort="1705964400000" data-listing-file-modified-sort="1706023279252" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="14" data-listing-word-count-sort="2727">
<div class="g-col-1" data-index="0" data-listing-date-sort="1705964400000" data-listing-file-modified-sort="1706023850660" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="14" data-listing-word-count-sort="2749">
<a href="./posts/interactive-data-visualization-with-r/index.html" class="quarto-grid-link">
<div class="quarto-grid-item card h-100 card-left">
<p class="card-img-top">
Expand Down
164 changes: 83 additions & 81 deletions docs/posts/interactive-data-visualization-with-r/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/sitemap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,6 @@
</url>
<url>
<loc>https://blog.tidy-intelligence.com/posts/interactive-data-visualization-with-r/index.html</loc>
<lastmod>2024-01-23T15:21:19.252Z</lastmod>
<lastmod>2024-01-23T15:30:50.660Z</lastmod>
</url>
</urlset>
6 changes: 4 additions & 2 deletions posts/interactive-data-visualization-with-r/index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ fig_full <- penguins |>
hc_add_theme(hc_theme_ggplot2())
species_unique <- levels(penguins$species)
colors <- c("#440154", "#21908C", "#FDE725")
for(j in seq_along(species_unique)) {
penguins_subset <- penguins |>
Expand All @@ -117,8 +118,9 @@ for(j in seq_along(species_unique)) {
)
fig_full <- fig_full |>
hc_add_series(data = list_parse2(line_data), type = "line", marker = "none",
color = highchart2()$hc_colors[j])
hc_add_series(data = list_parse2(line_data),
type = "line", marker = "none",
color = colors[j])
}
fig_full
Expand Down

0 comments on commit d040f45

Please sign in to comment.