Skip to content
New issue

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

Optimization: Centralized y-axis titles #39

Open
haysarah opened this issue Mar 1, 2024 · 0 comments
Open

Optimization: Centralized y-axis titles #39

haysarah opened this issue Mar 1, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@haysarah
Copy link
Collaborator

haysarah commented Mar 1, 2024

The Challenge

Many of our charts use the same y-axis label, "Number of Rules", while other charts use the labels "Number of Actions" and "Thousands of Pages". To avoid having to make the same update across 10+ charts, we want to optimize the y-axis labels.

Potential Solutions

We discussed storing the y-axis labels as objects in the Style.r file. This is good, but we could also figure out if R has functionality similar to Python's dictionary system, where we could type in a key and get back the proper string for the y-axis label.

  • There is an R package called "dict" that could help
  • We could also explore using "if" statements, based on the title of each plot
  • Or something else entirely!
@haysarah haysarah added the enhancement New feature or request label Mar 1, 2024
@haysarah haysarah self-assigned this Mar 15, 2024
@haysarah haysarah changed the title Optimizing y-axis labels Optimization: Centralized y-axis labels Mar 15, 2024
@haysarah haysarah changed the title Optimization: Centralized y-axis labels Optimization: Centralized y-axis titles Mar 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant