Open raison00 opened 4 years ago
Thanks Felicia. Can you provide some input on building a diffing tool? If we were to build a treemap to show the diff between two snapshots, how do you recommend we use colors to show the positive and negative size changes in the diff? We were thinking we could use red to show code size increases and green to show code size decreases.
Here's some ideas for building the diffing tool. The top image shows the same color palette with visibility to the positive and negative size changes in the diff using red and green to show increases/decreases, but still uses the primary color scheme. The base colors remain the same with orange being the "hot" color and blue being the "cooler" color.
In the area above the tabular data section, summary information for each snapshot is presented.
Hovering over a particular row will display calculated differences between the two snapshots in the middle header area (above the Deltas header - currently a blank darker box )
To view the total snapshot-wide count and shallow size deltas, move the mouse pointer so no rows are hovered.
Detailed differences between the two snapshots are shown in the middle section. Overall info is shown in the middle header area above Deltas.
Cells on the snapshot will be colored, reflecting the percentage difference within the row.
Use of Red and Green matches the Memory Profiler Allocation charting and is used minimally.
The blue/orange range mimics the intention of red / green and provides more range of hues for red/green colorblind users.
Light Version:
note: image fidelity is compromised, ignore the stretched text, provided to show light mode with same color scheme.
Color Options for Treechart diff comparisons
Here's a provided red/green color range and how the colors work on light/dark themes with various opacity.
"pinker-red" option range on right side of graphic
General DevTools Treemap UX Color Updates Treemap Update:
#88b1de
as dominant color#2c5daa
as alt dominant color (see gradient breakdown)#f6937d
as dominant hotspot color#009aca
as indicator colorGradient Breakdown:
#88b1de
#2c5daa
#9aafd0
#5163a5
#aaacc3
#6c68a0
#b9a8b7
#836e9b
#c6a5ac
#9a7496
#d2a1a0
#c7838b
#e99889
#dd8b85
#f6937d
#f6937d
_Values have been provided for the base color + opacity + _dominant color__ The determined threshold will follow this pattern: Extra Large: 100% opacity
#88b1de
and#f6937d
Large: 75% opacity Medium: 50% opacity Small: 25% opacityDark Mode Updates
#88b1de
on Treemap labels#88b1de
#7392b4
#5c7087
#454f5a
Dark Mode Hot Spot Updates
#88b1de
on Treemap labels#f6937d
#c4786a
#926156
#614843
Dark Mode Gradients
#88b1de
to#f6937d
#2c5daa
to#f6937d
Light Mode Updates
#2c5daa
on Treemap labels#88b1de
#7e9dc0
#bfd5ed
#e1eaf7
Light Mode Hot Spot Updates
#2c5daa
on Treemap labels#f6937d
#f3b098
#f7c9b8
#fce2d7
Light Mode Gradients
#88b1de
to#f6937d
#2c5daa
to#f6937d
Gradient Breakdown:#88b1de
#2c5daa
#9aafd0
#5163a5
#aaacc3
#6c68a0
#b9a8b7
#836e9b
#c6a5ac
#9a7496
#d2a1a0
#c7838b
#e99889
#dd8b85
#f6937d
#f6937d
Below is a conceptual mock of rendering using opacity to show size. _Note: Color is not representative of actual intended size here; it is provided for maximum visibility to show intended color range._
Dark Mode Hot Spot Colors
#88b1de
on Treemap labels#009aca
as indicator color#f6937d
#f6937d
at 75% opacity on#303030
background will render as#c4786a
#f6937d
at 50% opacity on#303030
background will render as#926156
#f6937d
at 25% opacity on#303030
background will render as#614843
Alt range:
Light Mode
Light Mode Hot Spot Colors
#2c5daa
on Treemap labels#009aca
as indicator color#f6937d
#f6937d
at 75% opacity on#ffffff
background will render as#f3b098
#f6937d
at 50% opacity on#ffffff
background will render as#f7c9b8
#f6937d
at 25% opacity on#ffffff
background will render as#fce2d7
Light Mode Gradient Colors
#88b1de
#2c5daa
#5163a5
#6c68a0
#836e9b
#9a7496
#c7838b
#dd8b85
#f6937d
#88b1de
#9aafd0
#aaacc3
#b9a8b7
#c6a5ac
#d2a1a0
#e99889
#f6937d