Skip to content

Commit

Permalink
Bugfix hoverlabels (#59)
Browse files Browse the repository at this point in the history
* table header correction

* Fixed label value order in stacked charts

this bug resulted from an earlier bugfix that set the order of bars but was not applied to the hover labels

* Fix misplaced bracket

---------

Co-authored-by: ldavies99 <[email protected]>
  • Loading branch information
shilohd and ldavies99 authored Sep 14, 2023
1 parent f508928 commit 85bce67
Show file tree
Hide file tree
Showing 37 changed files with 1,356 additions and 1,356 deletions.
2 changes: 1 addition & 1 deletion R/plot.R
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ plot_grouped <- function(data, n, break_q_names_col, max_lines = 2, xlab = "", y

sample <- ifelse(!missing(n), paste0("Sample size = ", n), "")

hovertext <- paste0(data[[1]], ": ", round(abs(data[[3]]) * 100, 1), "%", " <extra></extra>")
hovertext <- paste0(data[[1]], ": ", round(abs(x_vals) * 100, 1), "%", " <extra></extra>")

fig <- plotly::plot_ly(
x = x_vals,
Expand Down
10 changes: 5 additions & 5 deletions docs/data_collection.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

82 changes: 41 additions & 41 deletions docs/departments/department-for-education.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

82 changes: 41 additions & 41 deletions docs/departments/department-for-international-trade.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

82 changes: 41 additions & 41 deletions docs/departments/department-for-transport-excl-agencies-.html

Large diffs are not rendered by default.

82 changes: 41 additions & 41 deletions docs/departments/department-for-work-and-pensions.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

82 changes: 41 additions & 41 deletions docs/departments/forestry-commission.html

Large diffs are not rendered by default.

82 changes: 41 additions & 41 deletions docs/departments/government-actuary-s-department.html

Large diffs are not rendered by default.

82 changes: 41 additions & 41 deletions docs/departments/hm-revenue-and-customs.html

Large diffs are not rendered by default.

82 changes: 41 additions & 41 deletions docs/departments/ministry-of-defence.html

Large diffs are not rendered by default.

82 changes: 41 additions & 41 deletions docs/departments/ministry-of-justice-excl-agencies-.html

Large diffs are not rendered by default.

82 changes: 41 additions & 41 deletions docs/departments/national-records-of-scotland.html

Large diffs are not rendered by default.

82 changes: 41 additions & 41 deletions docs/departments/nhs.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

82 changes: 41 additions & 41 deletions docs/departments/office-for-national-statistics.html

Large diffs are not rendered by default.

82 changes: 41 additions & 41 deletions docs/departments/public-health-scotland.html

Large diffs are not rendered by default.

82 changes: 41 additions & 41 deletions docs/departments/scottish-government-excl-agencies-.html

Large diffs are not rendered by default.

82 changes: 41 additions & 41 deletions docs/departments/uk-health-security-agency.html

Large diffs are not rendered by default.

82 changes: 41 additions & 41 deletions docs/departments/welsh-government.html

Large diffs are not rendered by default.

82 changes: 41 additions & 41 deletions docs/professions/data-scientists.html

Large diffs are not rendered by default.

82 changes: 41 additions & 41 deletions docs/professions/digital-and-data.html

Large diffs are not rendered by default.

82 changes: 41 additions & 41 deletions docs/professions/government-actuarys-department.html

Large diffs are not rendered by default.

82 changes: 41 additions & 41 deletions docs/professions/government-economic-service.html

Large diffs are not rendered by default.

82 changes: 41 additions & 41 deletions docs/professions/government-geography.html

Large diffs are not rendered by default.

82 changes: 41 additions & 41 deletions docs/professions/government-operational-research.html

Large diffs are not rendered by default.

82 changes: 41 additions & 41 deletions docs/professions/government-social-research.html

Large diffs are not rendered by default.

82 changes: 41 additions & 41 deletions docs/professions/government-statician-group.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/search.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"href": "data_collection.html#sample-size-by-year",
"title": "Data collection",
"section": "Sample size by year",
"text": "Sample size by year\n\n\n\n \n \n Year \n ONS sample \n \n \n\n \n 2020 \n 1060 \n \n \n 2021 \n 912 \n \n \n 2022 \n 1322"
"text": "Sample size by year\n\n\n\n \n \n Year \n Sample \n \n \n\n \n 2020 \n 1060 \n \n \n 2021 \n 912 \n \n \n 2022 \n 1322"
},
{
"objectID": "data_collection.html#coding-frequency",
Expand Down
72 changes: 36 additions & 36 deletions docs/summary.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion quarto/main/data_collection.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ CARS::df_to_table(tracking_link_freqs[c(2,1,5)], column_headers = c("Tracking li
```{r}
year_dist <- table(all_wave_data$year) %>% data.frame
colnames(year_dist) <- c("Year", "ONS sample")
colnames(year_dist) <- c("Year", "Sample")
year_dist %>%
kableExtra::kable() %>%
Expand Down

0 comments on commit 85bce67

Please sign in to comment.