MCPcopy Create free account
hub / github.com/adobe/Marinus / getColorScale

Function getColorScale

web_server/public/javascripts/cert_graph.js:214–220  ·  view source on GitHub ↗
(darkness)

Source from the content-addressed store, hash-verified

212
213
214 function getColorScale(darkness) {
215 return d3.scaleOrdinal()
216 .domain(graph.categoryKeys)
217 .range(graph.colors.map(function (c) {
218 return d3.hsl(c).darker(darkness).toString();
219 }));
220 }
221
222 graph.strokeColor = getColorScale(0.7);
223 graph.fillColor = getColorScale(-0.1);

Callers 1

drawGraphFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected