Posted 19 Jul 2012 Link to this post
<tr>
<td>
@* ToDo uncomment the follwing to activate Telerik Chart *@
@(Html.Telerik().Chart<Qforma.Data.Physician>()
.Name(
"TimeSeries"
)
.Title(title => title.Text(
"Time Series"
))
.Transitions(
true
//.PlotArea(area => area.Background("#ccff00"))
.Legend(legend => legend.Position(ChartLegendPosition.Bottom)
.Series(series =>
{
series.Bar(
new
int
[] { 3015, 4003, 5881 }).Name(
"one"
);
[] { 10458, 18598, 22623 }).Name(
"two"
})
.CategoryAxis(axis => axis
.Categories(
string
[] {
"Aug 2010"
,
"Sept 2010"
"Oct 2010"
</td>
</tr>
Posted 08 Aug 2012 Link to this post
@(Html.Telerik().Chart<
Qforma.Data.Physician
>()
.Name("TimeSeries")
.Title(title => title.Text("Time Series"))
.Transitions(true)
foreach(var dataItem in Model.MyData) {
series.Bar(dataItem.Data).Name(dataItem.Name);
}
.Categories(Model.MyCategories)