You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added pie chart visualization capability for DataArrays and Datasets through the plotly accessor, supporting custom labels, color mapping, and faceted display options.
✏️ Tip: You can customize this high-level summary in your review settings.
Introduces pie chart plotting functionality to xarray_plotly by adding a new pie() function in the plotting module, extending both DataArrayPlotlyAccessor and DatasetPlotlyAccessor with pie methods, and configuring slot ordering for the pie plot type in the configuration module.
Changes
Cohort / File(s)
Summary
Accessor API Extensions xarray_plotly/accessor.py
Added pie() methods to DataArrayPlotlyAccessor and DatasetPlotlyAccessor with parameters for names, color, facet_col, facet_row, and px_kwargs; updated __all__ exports to include "pie" in both classes
Plotting Core xarray_plotly/plotting.py
New pie() function processes DataArray slots, converts to DataFrame, determines value column, builds labels, and delegates to px.pie() with support for names, color, and faceting parameters
Configuration xarray_plotly/config.py
Added "pie" entry to DEFAULT_SLOT_ORDERS with slot ordering ("names", "facet_col", "facet_row")
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
Summary by CodeRabbit
Release Notes
✏️ Tip: You can customize this high-level summary in your review settings.