title: Make Panels invisible amchart
body: <p>I would like to make panels visible/invisible by button.</p>
  
  <p>in this <a href="https://www.amcharts.com/demos/adding-removing-panel/" rel="nofollow noreferrer">sample</a> remove/add panels.
  But when adding, I need to make a panel and settings again.</p>
  
  <p>I would like to just make panels visible/invisible not delete.</p>
  
  <p>I have googled around and not found samples.</p>
  
  <p>Is it possible??</p>
  
  <hr>
  
  <p>Thanks to <code>@Robbert</code> reply</p>
  
  <p>I could hide the panel . like this .</p>
  
  <pre><code>    $(".amcharts-stock-panel-div-stockPanel1").hide();
  </code></pre>
  
  <p>However it does not re-adjust the each panel size.</p>
  
  <p>If I call the </p>
  
  <p>So I try like this .</p>
  
  <pre><code>$(".amcharts-stock-panel-div-stockPanel1").hide();
  chart.panels[1].percentHeight = 1;
  chart.validateNow();
  </code></pre>
  
  <p>it hide the panel and adjust the each panel height.</p>
  
  <p>However, if you use <code>validateNow()</code> when <code>percentHeight = 1;</code></p>
  
  <p>this error happens.</p>
  
  <pre><code>  amcharts.js:26 Uncaught TypeError: Cannot read property 'translate' of undefined
      at b.fixVLine (amcharts.js:26)
      at b.adjustBalloonCoordinate (serial.js:17)
      at b.showBalloon (amcharts.js:5)
      at b.handleCursorMove (serial.js:8)
      at b.dispatchMovedEvent (amcharts.js:27)
      at b.syncWithCursorReal (amcharts.js:28)
      at b.syncWithCursor (amcharts.js:28)
      at b.handleCursorChange (amstock.js:2)
      at b.a.inherits.b.fire (amcharts.js:1)
      at b.dispatchMovedEvent (amcharts.js:27)
  </code></pre>
  
  <hr>
  
  <p>my final solution is like this , not use css, but prepare variable <code>panelBack</code> for panel backup.</p>
  
  <pre><code>//removing ...
  pos = //panel position.
  var panelBack = chart.panels[pos];
  chart.removePanel(chart.panels[pos]);
  chart.validateNow();
  
  //adding...
  chart.addPanelAt(panelBack,1);
  chart.validateNow();
  </code></pre>