Hi,
In MVC3 View, I have code copied from sample to render a chart:
@(Html.Syncfusion().ChartAdv("ChartAdv")
.Series(series =>
{
Random ran = new Random();
series.Add().Name("John").Type(SeriesType.Spline).Points(p =>
{
for (int i = 1; i <= 70; i++)
{
p.Add(i, ran.Next(10, 60));
}
}).Style(style =>
{
style.Border(border => border.Width(0)).Opacity(0);
}).DisplayText(false).Symbol(symbol => symbol.Visible(true).Shape(SymbolShape.Circle));
series.Add().Name("Peter").Type(SeriesType.Spline).Points(p =>
{
for (int i = 1; i <= 70; i++)
{
p.Add(i, ran.Next(10, 60));
}
}).Style(style =>
{
style.Border(border => border.Width(0)).Opacity(0);
}).DisplayText(false).Symbol(symbol => symbol.Visible(true).Shape(SymbolShape.Circle));
}).Size(new System.Drawing.Size(900, 500)).Text("Monthly Savings").Font(new Syncfusion.Mvc.ChartAdv.ChartFont("Arial", "15px", ChartFontStyle.Bold)).Legend(legend => legend.Visible(true).Shape(LegendShape.Circle)).ElementSpacing(10)
)
In _Layout.cshtml i have below code:
Header section
@{ Html.Syncfusion().StyleManager()
.Register(styleSheet =>
{
styleSheet.Add(ComponentType.Chart);
}).Render(); }
After Page Body
@{ Html.Syncfusion().ScriptManager().Render();}
Apart from that I have added all dll and js file references as mentioned in the the documentation.
When i run the app, i get nothing rendered.
Please help