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

add code snippets showing common usage #3

Open
heckj opened this issue Mar 12, 2022 · 1 comment
Open

add code snippets showing common usage #3

heckj opened this issue Mar 12, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@heckj
Copy link
Member

heckj commented Mar 12, 2022

The docs are roughed out, but would be notably improved with code snippets showing examples of using scales, and ticks, in action. Some potential paths for consideration:

  • creating a scale for a relevant type (Int, Float, Double, potentially TimeInterval or Date)
  • using a scale to map to a value for drawing purposes
  • using a scale to get a list of tick values - automatic set
  • using a scale to get range values for a preset array of domain values for Ticks
  • using NiceNumber to get a "nice" minimum and maximum value for a range of values in order to build a scale with a "nice" domain
@heckj heckj added the enhancement New feature or request label Mar 12, 2022
@heckj heckj self-assigned this Mar 12, 2022
@heckj heckj transferred this issue from swiftviz/SwiftViz Mar 31, 2022
@heckj
Copy link
Member Author

heckj commented Jul 31, 2022

really hoping to wait until SwiftPM has full support inlined and available for @snippet references.

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