datavis-tech / reactive-vis

A library for reactive data visualizations (Work in progress)
MIT License
15 stars 0 forks source link

Add Scale Options #27

Open curran opened 8 years ago

curran commented 8 years ago

The Scale mixin should support options to customize the behavior of the scale.

  var nice = options.nice || true;
  my(name + "Scale", function(domain, range){

      scale
        .domain(domain)
        .range(range);

      if(nice){
        scale.nice();
      }

      return scale;
    }, [name + "Domain", name + "Range"])