-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DashboardFilter -> InitialSelectionDashboardFilter and DefaultDashboa…
…rdFilter
- Loading branch information
1 parent
87cffc2
commit 90392c1
Showing
12 changed files
with
55 additions
and
25 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
90392c1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
InitialSelectionDashboardFilter and DefaultDashboardFilter
Here are two new tricks for your interactive dashboards
PinnedFilterActive.InitialSelectionDashboardFilter
For some dashboards could make sense to have it opened with some filter already applied in one chart, as if you have just clicked it.
You can implement this by adding a new filter to your
UserChart
and selecting asPinnedFilterActive
the valueInitialSelectionDashboardFilter
.Remember that, counter-intuitively, this filter does not apply to this
UserChart
itself, it will only highlight the chart regions. It will be applied however to all the other widgets in the sameInteractionGroup
.PinnedFilterActive.DefaultDashboardFilter
There is another new option in
PinnedFilterActive
, this time when applied to a filter it will be used as default filter in case no compatible dashboard filter is being applied from another widgets in the sameInteractionGroup
.This option only affect the selected
UserChart
/UserQuery
, not like the previous one.If a category is selected everything looks good, but in no category is selected then there is no filter and you have a Stacked Area with too many products.
Using
DefaultDashboardFilter
you can have one or more filters that will be used when no filter using the same token is applied from the dashboard.And this is the result:
Note how when no category is selected, instead of all the products you see no products at all, and you have a pinned filter to indicated the problem. (is this a bug or a feature?)
Also note that in this case it works because there is no Product with
Category equals to null
, if you are not so lucky, you can add two contradictory default dashboard filters:Product.Category equals to null
andProduct.Category distinct to null
. Both will be removed when a Dashboard filter forProduct.Category
will be applied.90392c1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
90392c1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice 👍