DefaultSeriesType is obsolete?

Nov 12, 2014 at 7:42 PM
And there's no documentation anywhere telling us what to do? That doesn't seem right?

How do I "fix" this code?
Highcharts myChart = new Highcharts(myTargetDiv).InitChart(new Chart { DefaultSeriesType = ChartTypes.Bar })
Nov 17, 2014 at 3:51 PM
Bueller?
Nov 18, 2014 at 11:31 AM
Highcharts myChart = new Highcharts(myTargetDiv).InitChart(new Chart { DefaultSeriesType = ChartTypes.Bar })

I thought when you create a new Highchart (new Highcharts()) the contents of the bracket is the uniqueID of the chart. Have you changed that deliberately? I call/draw the chart using ltrChart.Text = chart.ToHtmlString(); and a literal string in HTML
Jan 1, 2015 at 5:52 PM
No, the stuff inside the brackets is an object initializer. It's a new way to call the constructor...

http://msdn.microsoft.com/en-us/library/bb384062.aspx