       @COLORS['quantitative-10']
     ]
 
-    # Setup color scale
-    @colorQualitativeScale  = d3.scaleOrdinal().range @COLOR_QUALITATIVE
-    @colorQuantitativeScale = d3.scaleOrdinal().range @COLOR_QUANTITATIVE
 
   setup: (_data, _parameters) ->
 

    return parseInt(@nodes_cont.select('#node-'+d.id).attr('r'))+13

  getNodeColor: (d) =>
    if @parameters.nodesColor == 'qualitative'
       color = @colorQualitativeScale d.node_type  
     else if @parameters.nodesColor == 'quantitative'
       color = @colorQuantitativeScale d.node_type
     else
       color = @COLORS[@parameters.nodesColor]
    return color

  getNodeFill: (d) =>


  updateNodesColor: (value) =>
    @parameters.nodesColor = value
    @setColorScale()
    @nodes
      .style 'fill',   @getNodeFill
      .style 'stroke', @getNodeColor
