Using JS API #3.20, the smartmapping.createClassedColorRenderer() method is supposed to have a statistics output parameter on the promise object, which seems to be missing.
When altering the smartmapping bycolor Sample in line 195, so that it says
smartMapping.createClassedColorRenderer<SPAN class="line-numbers-rows"><SPAN></SPAN></SPAN>
instead of
smartMapping.createColorRenderer<SPAN class="line-numbers-rows"><SPAN></SPAN></SPAN>
results in an error calculating the histogram, because something is undefined. Taking a closer look, the promise object of the classed color renderer doesn't have the "statistics" property, which is supposed to be there.
Is this a Bug or am I missing something?