The result of a division by 0 in JavaScript is Infinity, which will not be drawn in the chart but is still "above" all other values, why you'll see that if in your last example result in 2.
You can actually check, that .static(1).divide(0).if(eq, Infinity, 1, 0) will return you a chart of 1.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.