We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
``
billboarder() %>% bb_barchart( data = explanation_plot_df, mapping = bbaes(x = feature_desc, y = feature_weight, group = churn_predictor), rotated = TRUE, stacked = TRUE ) %>% bb_colors_manual('Less likely to churn' = 'rgba(63, 182, 24, 0.7)', 'More likely to churn' = 'rgba(255, 0, 57, 0.7)') })
The text was updated successfully, but these errors were encountered:
Hello, You can increase labels font size with CSS, there's different way to achieve this depending where you want to use your chart.
Use bb_add_style to use a custom CSS rule :
bb_add_style
data("prod_par_filiere") billboarder(data = prod_par_filiere) %>% bb_barchart( mapping = bbaes(x = annee, y = prod_hydraulique), rotated = TRUE ) %>% bb_add_style( ".bb-axis-x" = "font-size: 18px;" )
Use a CSS chunk in your .Rmd :
```{css} .bb-axis-x { font-size: 18px; } ```
Add a tag style in your UI :
tags$style(".bb-axis-x {font-size: 18px;}")
Note that all that methods above will alter all the charts in your page.
Victor
Sorry, something went wrong.
coming back to this: might it be also possible to add further css style like:
bb_add_style( x_grid = list( my_class = list(line = "stroke: blue;", text = "font-size: 1rem; font-weight: 600; transform: rotate(-90deg);")))
Iam using:
bb_grid( x = list(lines = custom_lines))
and would like to have the text shown horizontally in the plot. Thx!
No branches or pull requests
``
billboarder() %>%
bb_barchart(
data = explanation_plot_df,
mapping = bbaes(x = feature_desc, y = feature_weight, group = churn_predictor),
rotated = TRUE,
stacked = TRUE
) %>%
bb_colors_manual('Less likely to churn' = 'rgba(63, 182, 24, 0.7)', 'More likely to churn' = 'rgba(255, 0, 57, 0.7)')
})
The text was updated successfully, but these errors were encountered: