-
Notifications
You must be signed in to change notification settings - Fork 346
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds faceting support to Confusion Matrix Module.
Confusion Matrix module now displays two sections of content. The first section will always contain a confusion matrix for the entire dataset, and possibly a matrix for the current selection, if the user enables it. The second section displays a confusion matrix for each of the user-defined facet groups. You can configure the faceting behavior using the faceting control in the toolbar. Facet group matrices are sorted into ascending alphabetical order by title, and wrap to the next row when they overflow their parent container. This change removes the ability to "add" new matrices manually, to simplify the user experience. Now, all displayed matrices will have the same rows and columns, which you can select using the drop-downs in the toolbar. PiperOrigin-RevId: 430255969
- Loading branch information
1 parent
405a157
commit 8993f9b
Showing
6 changed files
with
359 additions
and
310 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,81 @@ | ||
.dropdown { | ||
max-width: fit-content; | ||
.module-results-area { | ||
display: flex; | ||
flex-direction: column; | ||
} | ||
|
||
.matrices-holder { | ||
.non-faceted-matrix { | ||
width: calc(100% - 16px); | ||
padding: 8px; | ||
display: flex; | ||
flex-flow: wrap; | ||
padding: 4px; | ||
flex-direction: row; | ||
flex-wrap: wrap; | ||
align-content: start; | ||
} | ||
|
||
.faceted-matrices { | ||
flex: 1 1 0; | ||
display: flex; | ||
flex-direction: row; | ||
flex-wrap: wrap; | ||
align-content: start; | ||
padding: 8px; | ||
} | ||
|
||
.matrix { | ||
margin-right: 16px; | ||
margin-bottom: 16px; | ||
} | ||
|
||
.flex { | ||
.matrix-update-checkboxes { | ||
display: flex; | ||
flex-direction: row; | ||
} | ||
|
||
.module-toolbar { | ||
border-bottom: 1px solid var(--lit-neutral-300); | ||
} | ||
|
||
.matrix-options { | ||
width: 100%; | ||
display: flex; | ||
flex-direction: row; | ||
flex-wrap: wrap; | ||
align-items: center; | ||
justify-content: start; | ||
padding: 4px 0; | ||
} | ||
|
||
#create-button { | ||
margin-top: 28px; | ||
pointer-events: auto; | ||
} | ||
|
||
.dropdown-holder { | ||
display: flex; | ||
flex-direction: row; | ||
align-items: center; | ||
} | ||
|
||
/* Make the "Rows" and "Columns" labels the same width */ | ||
.dropdown-label { | ||
display: inline-block; | ||
width: 55px; | ||
margin: 0 8px; | ||
} | ||
|
||
.spacer { | ||
width: 16px; | ||
} | ||
|
||
.confusion-matrix { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
padding: 4px; | ||
padding-bottom: 0; | ||
margin-bottom: 4px; | ||
max-width: max-content; | ||
} | ||
|
||
.matrix-label { | ||
margin-bottom: 4px; | ||
} |
Oops, something went wrong.