-
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.
add elementSelector to groupBy / groupToObject
- Loading branch information
1 parent
6ae63ae
commit 91330aa
Showing
1 changed file
with
6 additions
and
4 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
91330aa
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.
New Pivot Table Chart
Signum Extensions just got an important addition with the new Pivot Table chart (commits signumsoftware/extensions@04f4e1c, signumsoftware/extensions@bc034e5 and signumsoftware/extensions@e254b8f).
This chart is based in a HTML table (no SVG) and allows you to divide an aggregate (typically Count or Sum) by categories in the vertical and horizontal axis.
Each axis is able to support from 0, 1, 2 or 3 dimensions. So is possible to visualize complex tables, like Year / Month / Day on the horizontal axis and Project / Task / User in the vertical one.
Of course, the cells and the summaries on the borders allow drill-down.
The chart also allows to use independent gradients and scales for the values in the table and the sub-totals in the borders to
.
The number of rows / columns is typically determined by the data, so in this example we don't have a column for Jan 2018 or Dec 2020:
We can try to correct this behavior with the "Complete Axis" parameters. Here we choose
Complete Horizontal Axis (2): Consistent
, this will ensure that all the years have the same numbers of months.There is also another interesting option:
Complete Horizontal Axis: FromFilters
. This mode looks for filters using the same token and the operatorsGreater Than
/Greater Than Or Equal
/Less Than
/Less Than Or Equal
, or evenIs In
to infer what columns / rows you want.This way you can make the size of your charts more stable independently of the data, and you can save them using filter value expressions (
FilterValueConverters
) in User Charts.For example this table shows the last 7 days of orders, without skipping days with no orders at all
And the number of columns is implicitly defined just using filters.
Enjoy!
91330aa
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.