I have an issue regarding the panels in my dashboard layout. In my panels I am using the syncfusion doughnut chart and datagrid as a panel each. While the width is matching the panel size but the height isn't. The height of the syncfusion charts will either be overlapping the panel completely when on a smaller screen or won't be completing covering the panel page when on a bigger screen. I tried changing the height on either the grid/chart or the .content class itself but that didn't work. Thanks in advance.
@Html.EJS().DashboardLayout("dashboard_layout").Columns(2).CellSpacing(new double[] { 50, 50 }).Panels(Panel =>
{
Panel.SizeX(1).SizeY(1).Row(0).Col(0).Content("<div class='content'><ejs-grid id='status-table'></ejs-grid></div>").Add();
Panel.SizeX(1).SizeY(1).Row(0).Col(1).Content("<div class='content'><ejs-chart id='status-chart'></ejs-chart></div>").Add();
Panel.SizeX(1).SizeY(1).Row(1).Col(0).Content("<div class='content'><ejs-grid id='priority-table'></ejs-grid></div>").Add();
Panel.SizeX(1).SizeY(1).Row(1).Col(1).Content("<div class='content'><ejs-chart id='priority-chart'></ejs-chart></div>").Add();
Panel.SizeX(1).SizeY(1).Row(2).Col(0).Content("<div class='content'><ejs-grid id='decision-table'></ejs-grid></div>").Add();
Panel.SizeX(1).SizeY(1).Row(2).Col(1).Content("<div class='content'><ejs-chart id='decision-chart'></ejs-chart></div>").Add();
}).Render()
@Html.EJS().AccumulationChart("status-chart").Series(series =>
{
series.DataSource(ViewBag.dataSourceStatus)
.XName("xValue")
.YName("yValue")
.Name("Status")
.Type(Syncfusion.EJ2.Charts.AccumulationType.Pie)
.DataLabel(ViewBag.DataLabel)
.InnerRadius("40%")
.Add();
}).Height("100%").EnableSmartLabels(true).LegendSettings(ls => ls.Visible(true)).Render()
@Html.EJS().AccumulationChart("priority-chart").Series(series =>
{
series.DataSource(ViewBag.dataSourcePriority)
.XName("xValue")
.YName("yValue")
.Name("Priority")
.Type(Syncfusion.EJ2.Charts.AccumulationType.Pie)
.DataLabel(ViewBag.DataLabel)
.InnerRadius("40%")
.Add();
}).Height("100%").EnableSmartLabels(true).LegendSettings(ls => ls.Visible(true)).Render()
@Html.EJS().AccumulationChart("decision-chart").Series(series =>
{
series.DataSource(ViewBag.dataSourceDecision)
.XName("xValue")
.YName("yValue")
.Name("Decision")
.Type(Syncfusion.EJ2.Charts.AccumulationType.Pie)
.DataLabel(ViewBag.DataLabel)
.InnerRadius("40%")
.Add();
}).EnableSmartLabels(true).LegendSettings(ls => ls.Visible(true)).Render()
@Html.EJS().Grid("status-table").DataSource((IEnumerable<object>)ViewBag.dataSourcePortfolioStatus).Columns(col =>
{
col.Field("Name").HeaderText("Portfolio Lead").Width("25%").TextAlign(Syncfusion.EJ2.Grids.TextAlign.Left).Add();
col.Field("ActiveProjectCount").HeaderText("Active").Width("25%").TextAlign(Syncfusion.EJ2.Grids.TextAlign.Center).Add();
col.Field("OnHoldProjectCount").HeaderText("On Hold").Width("25%").TextAlign(Syncfusion.EJ2.Grids.TextAlign.Center).Add();
col.Field("NewProjectCount").HeaderText("New").Width("25%").TextAlign(Syncfusion.EJ2.Grids.TextAlign.Center).Add();
}).AllowSorting(true).QueryCellInfo("onStatusQueryCellInfo").Render()
@Html.EJS().Grid("priority-table").DataSource((IEnumerable<object>)ViewBag.dataSourcePortfolioPriority).Columns(col =>
{
col.Field("Name").HeaderText("Portfolio Lead").Width("25%").TextAlign(Syncfusion.EJ2.Grids.TextAlign.Left).Add();
col.Field("HighPriorityCount").HeaderText("High").Width("18.75%").TextAlign(Syncfusion.EJ2.Grids.TextAlign.Center).Add();
col.Field("MediumPriorityCount").HeaderText("Medium").Width("18.75%").TextAlign(Syncfusion.EJ2.Grids.TextAlign.Center).Add();
col.Field("LowPriorityCount").HeaderText("Low").Width("18.75%").TextAlign(Syncfusion.EJ2.Grids.TextAlign.Center).Add();
col.Field("NAPriorityCount").HeaderText("N/A").Width("18.75%").TextAlign(Syncfusion.EJ2.Grids.TextAlign.Center).Add();
}).AllowSorting(true).QueryCellInfo("onPriorityQueryCellInfo").Render()
@Html.EJS().Grid("decision-table").DataSource((IEnumerable<object>)ViewBag.dataSourcePortfolioDecision).Columns(col =>
{
col.Field("Name").HeaderText("Portfolio Lead").Width("25%").TextAlign(Syncfusion.EJ2.Grids.TextAlign.Left).Add();
col.Field("CRDRCount").HeaderText("CRDR").Width("15%").TextAlign(Syncfusion.EJ2.Grids.TextAlign.Center).Add();
col.Field("FIDCount").HeaderText("FID").Width("15%").TextAlign(Syncfusion.EJ2.Grids.TextAlign.Center).Add();
col.Field("IIDCount").HeaderText("IID").Width("15%").TextAlign(Syncfusion.EJ2.Grids.TextAlign.Center).Add();
col.Field("IARDCount").HeaderText("IARD").Width("15%").TextAlign(Syncfusion.EJ2.Grids.TextAlign.Center).Add();
col.Field("NACount").HeaderText("N/A").Width("15%").TextAlign(Syncfusion.EJ2.Grids.TextAlign.Center).Add();
}).AllowSorting(true).QueryCellInfo("onDecisionQueryCellInfo").Render()
<div class="padding-10-px">
<div>
<h1>Visualizations</h1>
</div>
<div class="control-section">
<div>
<ejs-dashboard-layout id="dashboard_layout"></ejs-dashboard-layout>
</div>
</div>
</div>