Cubism.JS threshold scale doesn't work <p>I'm using cubism with data coming from graphite </p> <p>The data's domain is continuos [0,100] and the range is continuos [0,100] but anything below 100 is nonsense so I modified the scale and used a threshold scale so that:</p> <p>values &lt; 100 will be 0 and 100 will be 100. I tested that with:</p> <pre><code>var scale = d3.scale.threshold().domain([100]).range([0,100]) console.log(scale(1)) //returns 0 console.log(scale(99.9)) //returns 0 console.log(scale(88.9)) //returns 0 console.log(scale(100)) //returns 100 </code></pre> <p>When I apply it, it the whole chart becomes empty</p> <pre><code>.call(context.horizon().height(100) .colors(colors) .scale(d3.scale.threshold().domain([100]).range([0,100])) // range([0,1]) doesn't work either ); </code></pre> <p><img src="https://i.stack.imgur.com/fVpCV.png" alt="enter image description here"></p> <p>without applying the scale (notice the small white area)</p> <pre><code> .call(context.horizon().height(100) .colors(colors) // .scale(d3.scale.threshold().domain([100]).range([0,100])) // range([0,1]) doesn't work either ); </code></pre> <p><img src="https://i.stack.imgur.com/94Wtr.png" alt="enter image description here"></p>