Skip to content

Instantly share code, notes, and snippets.

@davengeo
Last active August 2, 2020 19:14
Show Gist options
  • Save davengeo/443554c918a6fffef0ae21d80c97c642 to your computer and use it in GitHub Desktop.
Save davengeo/443554c918a6fffef0ae21d80c97c642 to your computer and use it in GitHub Desktop.
#jarchi heatmap for custom boolean property
var getDiagramComponents = function(v, e) {
return $(v).find("concept").filter(function(o) {
return o.concept.id == e.id;
});
}
gap = $("element").filter(function(obj) {
return obj.prop("GAP") == "true" ? true : false;
});
$("view").each(function(v) {
gap.each(function(e) {
getDiagramComponents(v, e).each(function(g) {
g.fillColor="#FF2000";
});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment