d3plus/d3plus-viz

jenks scale breaks when data array is empty

davelandry opened this issue · 0 comments

Expected Behavior

When passing am empty data array to a visualization that supports no data (like Network or Geomap), the visualization should draw regardless of any properties past to colorScaleConfig.

Current Behavior

When setting .colorScaleConfig({scale: "jenks"}) with an empty array ("linear" works), the visualization never gets past the loading screen.

Steps to Reproduce (for bugs)

https://jsfiddle.net/bk7jLeyn/6/

Your Environment

  • Browser Name: Chrome
  • Operating System and Version: macOS High Sierra