lass="qm-code-highlight-codeblock language-js"><pre><code class="qm-code-font"><span class="hljs-keyword">var</span> scale = <span class="hljs-keyword">new</span> hx.ColorScale(<span class="hljs-number">0</span>, <span class="hljs-number">1</span>, [
  {<span class="hljs-attr">color</span>:hx.theme.plot.colors[<span class="hljs-number">5</span>], <span class="hljs-attr">val</span>:<span class="hljs-number">5</span>/<span class="hljs-number">6</span>},
  {<span class="hljs-attr">color</span>:hx.theme.plot.co