I am using the following code. When I use "Option 3d" it throws an error "Object reference not set to an instance of an object.". It works fine when I remove "Option 3d".
DotNet.Highcharts.Highcharts chart2 = new DotNet.Highcharts.Highcharts("Chart")
.InitChart(new Chart
{
Type = ChartTypes.Column,
Options3d =
{
Enabled=false,
Alpha= 15,
Beta=15,
Depth=40,
ViewDistance=25
}
,MarginTop=80,MarginRight=40
}).SetXAxis(new XAxis
{
Categories = STATUS.ToArray()
})
.SetYAxis(new YAxis
{
StackLabels = new YAxisStackLabels
{
Enabled = true,
Style = @"fontWeight: 'bold', color: 'black'"
}
})
.SetSeries(serie1)
.SetPlotOptions(new PlotOptions
{
Column = new PlotOptionsColumn
{
Stacking = Stackings.Normal,
}
});
ltrChart.Text = chart2.ToHtmlString();
what is the problem behind this?