DefaultSeriesType - how to reference it

Mar 21, 2012 at 6:16 PM


I've been trying to figure out how to reference DefaultSeriesType. In the example solution, this is used in a number of the examples, and it compiles fine. I am trying to use it in a custom project with no luck. I'm referring to the following assembly, and using the following code snippet (excuse the lack of code insert but code insertion is not working):

using DotNet.Highcharts.Enums;
using DotNet.Highcharts.Helpers;
using DotNet.Highcharts;
using DotNet.Highcharts.Options;


Highcharts chart = new Highcharts("chart") .InitChart(new Chart {DefaultSeriesType = ChartTypes.Column })

Visual Studio 2010 keeps on giving me a 'Cannot resolve type' error... I can find DefaultSeriesType  in the object browser, but I just can't get it to compile! 

I've tried to copy the example project as best as I can, and from I can see I'm not missing an assembly reference. 

Any help or suggestions would be great. Thanks!

Mar 22, 2012 at 12:36 PM

Hi Everyone, 

I've figured it out. For some reason my instance of VS2010 isn't properling referencing the DotNet.Highcharts.Options library, which means that in order to get it working, I need to fully reference the path when working with .initChart:

.initChart( new DotNet.Highcharts.Options.Chart{ ....

I hope this is helpful for anyone else with a bizarre-o version of VS!



Marked as answer by Vangi on 10/24/2013 at 2:55 AM