1671: Custom Heatmaps#1729
Open
glstott wants to merge 6 commits into
Open
Conversation
It allows users to use any field as the value, X, or Y axes. In the case of a link field, X is source and Y is target. When a field is non-unique, it warns the user with a banner below the main toolbar.
…m heatmap feature.
…emind the user of what's selected.
# Conflicts: # src/app/visualizationComponents/HeatmapComponent/heatmap.component.ts
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 addresses GH Issue 1671: #1671, adding the ability for a user to build customizable heatmaps in MicrobeTrace in lieu of being limited to heatmaps of distance alone. This is especially helpful for things like hemagglutination assays which may be relevant for users.
Summary
Changes
Added a new Configuration tab to Heatmap Settings with:
Moved existing inversion, color, and label controls into an Appearance tab.
Added a configurable missing-data color.
Changed the heading from “Current Distance Metric” to the currently selected Heatmap value.
Added three matrix-generation modes:
Added automatic numeric versus categorical value detection.
Added categorical colorbar labels and formatted numeric colorbar ticks.
Added explicit category ordering to prevent Plotly from dropping or reordering values.
Added explicit missing-value handling for empty,
null,undefined, andNaNvalues.Added a separate “No Data” trace and legend entry.
Fixed hover text so cells show their actual formatted values and axis labels.
Fixed disappearing colorbars and missing values caused by Plotly defaults.
Added duplicate-cell detection:
Preserved axis inversion across rendered values, hover data, missing-data overlays, and exports.
Updated redraw behavior for resizing, style-file application, filtering, data changes, and distance-format changes.
Updated image export to use Plotly for PNG, JPEG, and SVG.
Updated CSV export to reflect the active labels, sorting, inversion, missing values, and TN93 display format.
Preserved upstream CSV formula sanitization and escaping while resolving the
devmerge conflict.Added default session settings for all new Heatmap options so configurations survive session save/restore.
Test coverage