48 lines
1.9 KiB
Plaintext
48 lines
1.9 KiB
Plaintext
@model GODATA.Models.Report.ScoreRequestModel
|
|
@if (Model != null && Model.score != null)
|
|
{
|
|
<div>
|
|
|
|
@if (Model.score != null && Model.score.Count() > 0)
|
|
{
|
|
int count =0;
|
|
@(Html.Kendo().Chart().Name("vanScoreChart").Theme("Bootstrap").Title("VAN Score")
|
|
.Legend(legend => legend.Position(ChartLegendPosition.Bottom))
|
|
.ChartArea(chartArea => chartArea.Background("transparent").Height(500))
|
|
.SeriesDefaults(seriesDefaults => seriesDefaults.Area().Line(line => line.Style(ChartAreaStyle.Smooth)))
|
|
.Series(series =>
|
|
{
|
|
|
|
foreach (List<string> def in Model.score)
|
|
{
|
|
series.Line(def).Name(Model.EosScoreCardModel[count].ServiceEngineerName);
|
|
count = count + 1;
|
|
}
|
|
})
|
|
.CategoryAxis(axis => axis.Categories(Model.dates).MajorGridLines(lines => lines.Visible(false)).Title("Time Slots"))
|
|
.ValueAxis(axis => axis.Numeric().Title("VAN Score").Labels(labels => labels.Format("{0}")).AxisCrossingValue(-10).Line(line => line.Visible(false)))
|
|
.Tooltip(tooltip => tooltip.Visible(true).Format("{0}").Template("#= series.name #: #= value #"))
|
|
.HtmlAttributes(new { style = "width:100%;height:100%;", @class = "revenue-kendo-chart" }))
|
|
}
|
|
else
|
|
{
|
|
<div id="divmessage" class="no_data">
|
|
<span>
|
|
<p class="fs16">@*No Data Available !!!*@
|
|
@System.Configuration.ConfigurationManager.AppSettings["no_data_available"].ToString()
|
|
</p>
|
|
</span>
|
|
</div>
|
|
}
|
|
</div>
|
|
}
|
|
else
|
|
{
|
|
<div id="divmessage" class="no_data">
|
|
<span>
|
|
<p class="fs16">@*No Data Available !!!*@
|
|
@System.Configuration.ConfigurationManager.AppSettings["no_data_available"].ToString()
|
|
</p>
|
|
</span>
|
|
</div>
|
|
} |