title: HighCharts Dynamically Change Chart Type
body: <p>Using HighCharts 2.2.3 in an ASP.NET site.
  See <a href="http://jsfiddle.net/wergeld/TDLvc/" rel="noreferrer">http://jsfiddle.net/wergeld/TDLvc/</a> for code example.
  My site setup is a little different than what the jsFiddle shows.
  My function to change the series exists in an included JS file and the call to the function is not "in-line" with the chart creation JS code (although it is still wrapped in a document ready jquery).</p>
  
  <p>I have two issues and one of which can be seen in the jsFiddle.
  1) When changing chart type it looks like the yAxis designation gets lost. You can see I have originally 2 yAxis and after you change the chart type the top axis no longer has value labels (means that the chart data is using only the bottom axis (first yAxis)).
  2) When running this under FF or IE I get an error on the line that calls:</p>
  
  <pre><code>data: serie.options.data
  </code></pre>
  
  <p>The error is:
  c is not a constructor
  Line 55
  in highcharts.js (this is the min-ed file).</p>
  
  <p>Using highcharts.src.js I can now see that the error is:
  typeClass is not a constructor</p>
  
  <p>This is on line 8789 in the src.js:
  serie = new typeClass();</p>
  
  <p>See updated jsFiddle: select Point as chart type: <a href="http://jsfiddle.net/wergeld/nS4Ny/1/" rel="noreferrer">http://jsfiddle.net/wergeld/nS4Ny/1/</a>.
  This will throw that error.</p>