title: how to replace bar chart after selecting option value using morris-conf.js?
body: <p>I have created bar chart by retrieving values from database .And used Morris-conf.js.First time when i select value from options i get bar chart properly.</p>
  
  <p>But second time when i select value from option the old bar chart getting down.</p>
  
  <p>my js code is here</p>
  
  <pre><code>  Morris.Bar({
  
                              element: 'hero-bar',
  
                              data:playdata,
                              xkey: 'playedOn',
                              ykeys: ['playCount'],
                              labels: ['Count'],
                              barRatio: 0.4,
                              xLabelAngle:0,
                              hideHover: 'auto',
                              barColors: ['#ac92ec']
                            });
  </code></pre>
  
  <p>please help me </p>
  
  <p>Thanks</p>