docs: Add documentation for initial interval selection date ranges #3815
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request adds documentation to
parameters.rst
to explain how to set initial date ranges for interval selections using Python's nativedatetime.date
anddatetime.datetime
objects.Changes:
parameters.rst
.alt.selection_interval
with thevalue
parameter and Pythondatetime.date
objects to set an initial date range.Context:
This documentation update addresses issue #3643, which requested clarification on how to use initial values in selection intervals with dates. This enhancement is made possible by the recent improvements to datetime support in Altair (PRs #3653 and #3662).
This PR specifically focuses on documenting the usage within
parameters.rst
. Further documentation updates related to #3643, such as adding information to the selection documentation and potentially thetimes_and_dates
section, may be considered in separate pull requests.Testing:
Link to issue #3643
Link to PR #3653
Link to PR #3662