Hello I tried to display jqxchart in data-role content in mvc 4 of asp.net
this is my code’s _Layout:
@ViewBag.Title
@Styles.Render(“~/Content/mobileCss”, “~/Content/css”)
@Scripts.Render(“~/bundles/modernizr”)
<div>
<div>@if (IsSectionDefined(“Header”)) {
@RenderSection(“Header”)
} else {
<h1>@ViewBag.Title</h1>
}
</div>
<div>@RenderBody()
@RenderSection(“grafico”,false)</div>
</div>
@Scripts.Render(“~/bundles/jquery”, “~/bundles/jquerymobile”)
@RenderSection(“scripts”, required: false)
and My View controller:
@model IEnumerable
@{
ViewBag.Title = “ChartGrafico”;
}
@section grafico
{
html, body
{
height: 100%;
width: 100%;
margin: 0;
padding: 0;
overflow: hidden;
}
$(document).ready(function () {
///////////Dar and Settings
};
// setup the chart
$(‘#jqxChart’).jqxChart(settings);
});
}
<div id=”jqxChart” style=”width: 100%; height: 100%;”></div>
but not displaying……
thank you….