是否可以通过ASP.NET MVC 4(Razor)使用C#绘制图表(曲线,直方图,圆).我正在尝试从我的数据库中提取的数据制作一些图形.但是,我找不到如何.
有什么建议吗?
非常感谢 !
我尝试列出从SearchController发送的数据提供的模型数据.但是,我得到了这个错误,我找不到如何解决它.
文件中只允许使用一个"模型"语句.
这是导致错误的代码:
@if (ViewBag.Type == "nomPoste")
{
@model IEnumerable<Monitoring.Models.PosteModel>
if (Model != null)
{
foreach (var item in Model)
{
//...
}
}
if (Model == null)
{
//...
}
}
@if (ViewBag.Type == "nomApplication")
{
@model IEnumerable<Monitoring.Models.AppMetierModel>
if (Model != null)
{
foreach (var item in Model)
{
//...
}
}
if (Model == null)
{
//...
}
}
Run Code Online (Sandbox Code Playgroud)
我该如何解决呢?