Hi Marcos,
Thanks for using Syncfusion product.
We have analyzed this and replicated the scenario shown in the code snippet. But we are not able to reproduce the reported issue.
But from your error message, we can able to get that you have referred dll’s of required to render both classic and non classic chart control.
Both has an enum named “SeriesType”. So it got conflict and confusing on choosing the appropriate one to it.
To render a non classic MVC chart control, you need to refer the below mentioned dll’s is enough
· Syncfusion.EJ
· Syncfusion.EJ.MVC
To avoid this you can remove other dll reference from the project, except the above or you can specify like this
[CSHTML]
@(Html.EJ().Chart("container")
.Series(sr =>
{
sr.Type(Syncfusion.JavaScript.DataVisualization.SeriesType.Column).Add();
})
) |
We have also made a sample for your reference. Find it from the below location
MvcApplication47.zip
If you still face any concern kindly revert back us by modifying the sample to reproduce the issue. This will help us to fix the issue sooner.
Please let us know if you have any concern.
Thanks,
Jayavigneshwaran