Skip to content

[v1.16.1] InterpolatedColorLegend Enhancements

Compare
Choose a tag to compare
@bluong bluong released this 23 Oct 21:51
· 301 commits to master since this release

This week, Plottable made several functional and visual improvements to InterpolatedColorLegends. We also reverted a change to Interactions.Pointer in order to restore the pre-v1.14.0 behavior of tooltips.

Features

Visual Improvements to InterpolatedColorLegend

InterpolatedColorLegends were previously drawn with swatches of color. Now they instead have a gradient fill.

screen shot 2015-10-20 at 1 48 17 pm

Try it out: http://jsfiddle.net/j5b9f60c/57/

Show Tooltip for InterpolatedColorLegend on Hover

Hovering over InterpolatedColorLegend now displays a tooltip with the corresponding value for the hovered color.

screen shot 2015-10-22 at 5 55 44 pm

Try it out: http://jsfiddle.net/j5b9f60c/57/

Bug Fixes

  • Reverted changes introduced in v1.14.0 where points under an overlay are considered outside of the Component in pointerMove, pointerExit, and pointerEnter. We chose to revert this change due to undesired behavior with tooltips and are going to re-implement this correctly in the near future. (#2910)