   # Config Methods
   # ---------------
 
+  setColorScale: ->
+    if @parameters.nodesColor == 'qualitative' or @parameters.nodesColor == 'quantitative'
+      @colorScale = d3.scaleOrdinal().range if @parameters.nodesColor == 'qualitative' then @COLOR_QUALITATIVE else @COLOR_QUANTITATIVE
+      @colorScale.domain @data_nodes.map( (d) -> return d.node_type )
+
   updateNodesType: ->
     if @parameters.nodesColor == 'qualitative' or @parameters.nodesColor == 'quantitative'
       console.log 'updateNodesType'

      @COLORS['quantitative-10']
    ]

    # Setup color scale
    @colorQualitativeScale  = d3.scaleOrdinal().range @COLOR_QUALITATIVE
    @colorQuantitativeScale = d3.scaleOrdinal().range @COLOR_QUANTITATIVE

  setup: (_data, _parameters) ->



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