hljs-number">0.75</span>
  }
]</code></pre></div> </div><div class="qm-html-paragraph">The below segments array would give one negative segment of 60% width, one warning segment of 20% width and one positive segment of 20% width. </div><div class="qm-html-paragraph"><div class="qm-code-highlight-codeblock language-js"><pre><code class="qm-code-font">[
  {
    <span class="hljs-string">"class"</span>: <span class="hljs-string">"hx-negative"</span>
    <span class="hljs-string">"ratio"</span>: <span class="hl