title: switch d3 chart on selection of dropdown
body: <p>Hi I'm implementing the D3.js chart in my module.I need that on the basis of my dropdown selection my chart type will update accordingly.</p>
  
  <p><a href="http://jsfiddle.net/vaqa6s73/1/" rel="nofollow">JsFiddle</a></p>
  
  <p>I have <code>sample.json</code> file to retrieve data from <code>json</code>.  </p>
  
  <pre><code>{
      "sample2": [{
          "time": 1387212120,
          "open": 368,
          "close": 275,
          "high": 380,
          "low": 158
      }, {
          "time": 1387212130,
          "open": 330,
          "close": 350,
          "high": 389,
          "low": 310
      }, {
          "time": 1387212140,
          "open": 213,
          "close": 253,
          "high": 289,
          "low": 213
      }, {
          "time": 1387212150,
          "open": 180,
          "close": 150,
          "high": 189,
          "low": 110
      }, {
          "time": 1387212160,
          "open": 310,
          "close": 350,
          "high": 389,
          "low": 310
      }]
  }
  </code></pre>