programmatically update rows of line

This is the view I’m showing, and I want to update the rows in a JS function.
However, $$("panel").config.rows is undefined. The initial setup as shown below is displayed correctly though, so the rows should contain one element.

{   
  id: "panel",
  type:"line",
  rows:[
   {
      view:"d3-chart",
      resize:true,
      url:"../data/flare.json",
      ready:function(){
        //left out for brevity
      }
    }
  ]
};

Hello,

please take a look at the article about Rebuilding Layouts

Thank you! It works now :slight_smile: