You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dmitry A. Grechka edited this page Feb 15, 2017
·
3 revisions
Heatmap plot
You may want to read about general approach to the KnockoutJS support in IDD [here](KnockoutJS support).
This page is about specific plot type.
To create heatmap plot you must create a plot with data-idd-plot="heatmap" attribute and three mandatory bindings.
Mandatory bindings:
iddX (number array) - horizontal grid coordinates
iddY (number array) - vertical grid coordinates
iddValues ((number array) array) - values to color
Remark: Length of iddX and outer iddValues array must be the same. Length of iddY and inner iddValues arrays must be the same. The plot will not be drawn until the length is the same.
Optional bindings:
iddOpacity (number) - must be between 0 and 1. 1 is opaque heatmap, 0 is fully transparent