ss="hljs-keyword">function</span>(<span class="hljs-params">element, datum</span>) </span>{
  element.innerHTML = datum.name
  element.style.color = datum.color || <span class="hljs-string">'black'</span>
}</code></pre></div> </div><div class="qm-html-paragraph">This will set the text of each node to the property &#39;name&#39; in the json data, and will set the color of the node to the &#39;color&#39; property if it is present. </div><div class="qm-html-paragraph">Note that you can do anything here - you c