spotfiresoftware / spotfire-mods

Spotfire® Mods
https://spotfiresoftware.github.io/spotfire-mods/
Other
54 stars 41 forks source link

Implement a Contour Plot mod #91

Open VictorElHajj opened 2 years ago

VictorElHajj commented 2 years ago

This implements a Contour Plot mainly using d3-contours. It allows you to change the number of contour segments, change the color scale using the color axis, toggle smoothing as well as toggle the contour segment lines.

Tooltips display the min, mid and max value of each contour segment. Selecting a segment marks all the rows within that range of values. Selecting a segment while holding the control or shift keys adds onto the selection instead of replacing.

The image below shows a comparison between the existing heatmap visualization and the prototype contour plot. The dataset is just a quick sampling of the Goldstein-Price function for testing.

image

Things to do, maybe: