john-guerra / navio

A d3 visualization widget to help summarizing, exploring and navigating large network visualizations
https://navio.dev
MIT License
106 stars 13 forks source link

Error setting a sequential scale #31

Closed fabiancpl closed 5 years ago

fabiancpl commented 5 years ago

The error occurs when I try to set an sequential scale object to the function addAttr()

nv.addAttrib( 'BECAVGPTCHAREAL2', d3.scaleSequential( d3.schemeBlues ).domain( [ 0, d3.max( data, d => d[ 'BECAVGPTCHAREAL2' ] ) ] ) );
nv.data(data);

The error is: nv = TypeError: u is not a function

An observable reproducing the bug can be found here: https://observablehq.com/@fabiancpl/navio-load