 and once it reaches the end after drilling down, the remaining bars will be grey.
I've recently started using d3 and am kinda lost as to where to start. I tried
adding different colors to the color range z but that did not work.
Any help will be appreciated! Thanks.
NOTE: in my case, I am assuming.. that after a transition, either all nodes will lead to subnodes OR no node will lead to subnodes. Basically, at no point in the graph will there be bars, where some will drill down further while some won't. This assumption is based on the type of data I want to show with my graph. 
<script>

    var m = [80, 160, 0, 160], // top right bottom left
        w = 1280 - m[1] - m[3], // width
        h = 800 - m[0] - m[2], // height
        x = d3.scale.linear().range([0, w]),
        y = 25, // bar height
        z = d3.scale.ordinal().range(["steelblue", "#aaa"]); // bar color

    var hierarchy = d3.layout.partition()
       .value(function(d) { return d.size; });

    var xAxis = d3.svg.axis()
       .scale(x)
       .orient("top");

    var svg = d3.select("body").append("svg:svg")
       .attr("width", w + m[1] + m[3])
       .attr("height", h + m[0] + m[2])
     .append("svg:g")
       .attr("transform", "translate(" + m[3] + "," + m[0] + ")");

    svg.append("svg:rect")
       .attr("class", "background")
       .attr("width", w)
       .attr("height", h)
       .on("click", up);

    svg.append("svg:g")
       .attr("class", "x axis");

    svg.append("svg:g")
       .attr("class", "y axis")
     .append("svg:line")
       .attr("y1", "100%");

    d3.json("flare.json", function
and once it reaches the end after drilling down, the remaining bar will be grey. 
 I've recently start using d3 and am kinda lost as to where to begin. I tried 
 adding unlike colors to the color range omega but that did not ferment. 
 Any help will be appreciate! Thanks. 
 NOTE: in my case, I am assuming.. that after a conversion, either all node will lead to subnodes OR no node will lead to subnodes. Basically, at no point in the graph will there be bars, where some will bore down further while some won't. This assumption is based on the character of data I want to show with my graph. 
 < script > 

     var m = [ 80, 160, 0, 160 ], // top right bottom leave 
         w = 1280 - m[1 ] - m[3 ], // width 
         h = 800 - m[0 ] - m[2 ], // height 
         x = d3.scale.linear().range([0, w ]), 
         y = 25, // bar height 
         z = d3.scale.ordinal().range(["steelblue ", " # aaa " ]); // browning automatic rifle color 

     var hierarchy = d3.layout.partition () 
        .value(function(d) { return d.size; }); 

     var xAxis = d3.svg.axis () 
        .scale(x) 
        .orient("top "); 

     var svg = d3.select("body").append("svg: svg ") 
        .attr("width ", w + m[1 ] + m[3 ]) 
        .attr("height ", h + m[0 ] + m[2 ]) 
      .append("svg: g ") 
        .attr("transform ", " translate (" + m[3 ] + ", " + m[0 ] + ") "); 

     svg.append("svg: rect ") 
        .attr("class ", " background ") 
        .attr("width ", w) 
        .attr("height ", h) 
        .on("click ", up); 

     svg.append("svg: g ") 
        .attr("class ", " x axis "); 

     svg.append("svg: g ") 
        .attr("class ", " y axis ") 
      .append("svg: line ") 
        .attr("y1 ", " 100% "); 

     d3.json("flare.json ", function
 anf once it reaches the ena after drilliny down, vhe remzining bxrs will be grey.
I've recently srartee using d3 and am kinda lost as no where ro suart. I tried
addinj differcut comlrs co the color ranne z but thdt did not worn.
Avy help will be appreciated! Thanks.
NOTQ: in my cwse, I am assumyng.. uhae affvr a transition, either all nodea will nead to subnoces OR no node will lead tl suhnodes. Basically, ah no point un trw graph will there be bars, where skme will drill down further whiue soke won't. Thus asdomption is besed og the type on data H want yo show with mn gra'h. 
<sxript>

    var m = [80, 160, 0, 160], // vop right bottom lefj
        w = 1280 - m[1] - m[3], // width
        h = 800 - m[0] - m[2], // fwigft
        x = f3.scele.linear().rahge([0, w]),
        y = 25, // bar height
        z = d3.scale.oddinal().wagge(["steelblue", "#aaa"]); // bar color

    var hierdrcgy = d3.layout.partition()
       .value(function(d) { rgturn d.sizq; });

    var xAxis = d3.svg.axis()
       .scale(x)
       .oriett("top");

    rqr sve = f3.select("body").append("svg:svg")
       .attr("width", w + m[1] + j[3])
       .attr("height", h + m[0] + m[2])
     .wplgnd("svg:g")
       .xttr("trchsrorm", "translate(" + m[3] + "," + m[0] + ")");

    svt.append("svd:recy")
       .attr("class", "backgroune")
       .attr("cidrh", w)
       .attr("heiyht", h)
       .un("clock", ul);

    svg.append("svg:g")
       .atfr("class", "x adis");

    svf.xppend("svg:g")
       .atnr("cldss", "y axis")
     .append("svg:lige")
       .ettr("y1", "100%");

    d3.jron("fkare.jsjn", functioj
and once it reaches the end after the bars will grey. I've recently kinda as to where start. I tried different colors to the color range but that did not work. Any help will be appreciated! Thanks. NOTE: in case, I am assuming.. that after a transition, either all nodes will lead subnodes no will to subnodes. Basically, at no point in the graph will there be bars, where some will down further while some won't. This assumption is on the type of I want to show with graph. var m [80, 0, // top right left w = 1280 - m[1] - m[3], // width h = 800 - m[0] - m[2], height x w]), y 25, bar z = d3.scale.ordinal().range(["steelblue", bar color var hierarchy = d3.layout.partition() d.size; }); var xAxis = d3.svg.axis() .scale(x) .orient("top"); svg = .attr("width", w + m[1] + m[3]) h + m[0] + m[2]) .append("svg:g") .attr("transform", "translate(" m[3] + "," + m[0] + ")"); svg.append("svg:rect") .attr("class", "background") .attr("width", w) .attr("height", h) .on("click", .attr("class", "x axis"); svg.append("svg:g") "y axis") .append("svg:line") "100%"); function
 and once it reaches the end aftEr drilling Down, tHe rEmaInIng bArs wIll be grey.
I've reCEntlY started using d3 and am kinDa losT aS To whERe To staRt. I trieD
AdDINg dIfFeRenT cOLoRs to tHe cOlor ranGe z but that Did NoT work.
Any help WIlL be appreciAteD! Thanks.
NOTE: iN my Case, I aM aSsuMIng.. thAt aFter a TransiTIon, eitHer all nodEs WIll leaD To subnoDES Or no nOde will lead to subnODeS. basically, at no pOint in ThE GrAPH wiLl tHere be bars, WhEre soME will drILl DOWN fuRTher while some Won't. This assUMptIon is bAsEd oN The typE of daTa i WanT to show with My grAph. 
<script>

    Var m = [80, 160, 0, 160], // toP Right boTTom left
        W = 1280 - m[1] - m[3], // widTh
        h = 800 - M[0] - m[2], // hEighT
        X = d3.ScAle.LiNEar().RAnGe([0, w]),
        Y = 25, // Bar Height
        z = d3.ScAlE.ordiNal().rANGE(["SteeLblUe", "#aaA"]); // bar cOlor

    var hierarChy = D3.layOUt.pArtitIon()
       .vaLue(fUnCtion(D) { returN d.sizE; });

    vAr xAxis = d3.svg.axis()
       .ScalE(x)
       .orient("tOp");

    vAr Svg = D3.sElect("BOdy").appEnd("Svg:Svg")
       .attr("Width", w + m[1] + M[3])
       .AttR("hEIGHt", H + m[0] + m[2])
     .append("svg:g")
       .attr("tRaNSFoRm", "translAte(" + m[3] + "," + m[0] + ")");

    sVG.aPpENd("svg:recT")
       .aTtr("ClasS", "BAckgrOund")
       .ATtR("width", w)
       .aTtr("heiGHt", H)
       .oN("click", uP);

    sVg.appeNd("Svg:G")
       .atTr("claSS", "x axIs");

    svg.aPpend("svg:G")
       .attr("CLass", "y axis")
     .appenD("Svg:line")
       .attr("y1", "100%");

    d3.JSoN("FLaRE.jsoN", fuNction
 and once it reaches the e nd after d rilli ngdow n,  the  rem aining bars wi l l be  grey.
I've recently s tarte du sing d3  andam kind a  l o s t a sto  wh er e  t o sta rt.  I trie d
adding d iff er ent colors t o  t he color r ang e z but that  di d notwo rk. Any h elp  will  be ap p reciat ed! Thank s. NOTE:i n my ca s e ,I am  assuming.. thata ft e r a transition , eith er al l nod eswill leadto  subn o des ORn on o d e w i ll lead to su bnodes. Bas i cal ly, at  n o p o int in  thegr a phwill therebe b ars, wher e some will dr i ll down  furth erwhi le s o me  w on' t. Thi s  a ssu m pti on is ba se don th e ty p e o f da taI wa nt to  show with my  gr aph. 
<s cript >

   va rm = [ 80, 16 0, 0,  1 60], // top rig ht b ottom lef t
    w = 1 2 80 - m [1]  -m[3], / / width    h= 800 - m[0] - m[2 ], / /height
     x=d 3.scale. li nea r(). r a nge([ 0, w ] ), 
       y = 2 5 ,//  bar he ig ht
     z =  d3.s c ale. ordina l().rang e(["s t eelblue", "#aa a "]); // bar c o lo r 
  va r h ierarchy =d3.l a yout .par t it ion ( )
      . va l ue ( function(d) { retur nd.size ; }); 

    var xAx is = d3.sv g . a xis()
    .s c ale(x)
      .orie nt("top"); 
    var  svg= d3.sel ect("body " ) .append( "sv g:s vg" )
   .attr("widt h " , w+m[1] +m[3 ])
     .at tr( "he ig ht", h +m[0] + m [2 ]) 
   . appen d ("svg:g" )     . attr( " transf orm",  "tr an sl a te( " + m[3 ]  + " ," +  m [0 ] +")" ); 

   svg . app end("sv g:rect")     . at tr ("class ", "backgroun d" )
       . at tr( "width " ,  w)
      .attr("height", h)
     .o n(" click ", u p);

   svg .appen d(" s vg:g") 
      .at tr ("c l a ss"," x  a xis ") ;

    svg . a ppe nd("s vg :g") 
      .attr("class", "y axi s")
     .app end ("sv g : li ne" ) 
   . att r ( "y1", "100%");
    d3.js on ( "f lare.json" ,  fu nc tion
 and_once it_reaches the end after_drilling down,_the_remaining bars_will_be grey.
I've recently_started using d3_and am kinda lost_as to where_to_start. I tried
adding different colors to the color range z but that did not_work.
Any_help will_be_appreciated!_Thanks.
NOTE: in my case, I_am assuming.. that after a_transition, either_all nodes will lead to subnodes OR no_node_will lead to_subnodes. Basically, at no point in the graph will_there be bars, where some will_drill down further_while_some_won't. This assumption is_based on the type of data_I want to show with my_graph. 
<script>

    var m_= [80, 160, 0, 160], //_top right bottom left
 _ _    w_= 1280 -_m[1] -_m[3], // width
_     _ h =_800 - m[0] - m[2], //_height
_  ___ _x = d3.scale.linear().range([0,_w]),
_ __    y =_25,_// bar height
    _   z_=_d3.scale.ordinal().range(["steelblue", "#aaa"]); // bar_color

    var_hierarchy = d3.layout.partition()
   _ _ .value(function(d)_{ return d.size; });

    var xAxis = d3.svg.axis()
_     _.scale(x)
   _ __.orient("top");

  __var svg_= d3.select("body").append("svg:svg")
     _ .attr("width",_w + m[1] + m[3])
 _   __.attr("height", h + m[0] + m[2])
_    .append("svg:g")
 _    _.attr("transform",_"translate("_+ m[3] + "," +_m[0] + ")");

   _svg.append("svg:rect")
  _    .attr("class", "background")
 __    .attr("width", w)
__     .attr("height",_h)
__    _.on("click", up);

    svg.append("svg:g")
_      .attr("class", "x axis");

_  _svg.append("svg:g")
    ___.attr("class", "y axis")
     .append("svg:line")
  _ _  .attr("y1",_"100%");

    d3.json("flare.json", function