Hi,
I'm trying to implement the date filter that you have on the music store:
http://docs.kendoui.com/tutorials/ASP.NET/Kendo%20Music%20Store/Music%20Store%20Web/kendo-music-store-web-management-charts
i.e.
When a user selects 'Day', it only bring in data for a day, 'Week' only brings back information for the week .etc...
But I also want to enter a custom Start Date and End Date....
The problem is that for our implementation we had decided to go the MVC route and I cannot find any information on how to do this via your MVC toolset.
My chart looks like:
@(Html.Kendo().Chart<KendoWithChart.Models.RatioTimeSeries>()
.Name("chartActualHedgeRatioTimeSeries")
.Title("Actual Hedge Ratio")
.Legend(legend => legend
.Position(ChartLegendPosition.Bottom)
)
.ChartArea(chartArea => chartArea
.Background("transparent")
)
.DataSource(ds => ds.Read(read => read.Action("GetRatioTimeSeriesData", "Home", new { ddlClient = @ViewBag.ClientName, dpkDate = @ViewBag.Date })))
.Series(series =>
{
series.Area(model => model.Value1, model => model.Date).Name("Nuclear");
series.Area(model => model.Value2, model => model.Date).Name("Hydro");
series.Area(model => model.Value3, model => model.Date).Name("Wind");
})
.CategoryAxis(axis => axis
.Date()
.BaseUnit(ChartAxisBaseUnit.Days)
)
.ValueAxis(axis => axis.Numeric()
.Labels(labels => labels.Format("{0:N0}"))
)
.Tooltip(tooltip => tooltip
.Visible(true)
.Format("{0:N0}")
)
)
And it uses the controller from the demos.
What do I need to do to wire in the date filter? I want it to be seamless and to avoid any postbacks....
I'm trying to implement the date filter that you have on the music store:
http://docs.kendoui.com/tutorials/ASP.NET/Kendo%20Music%20Store/Music%20Store%20Web/kendo-music-store-web-management-charts
i.e.
When a user selects 'Day', it only bring in data for a day, 'Week' only brings back information for the week .etc...
But I also want to enter a custom Start Date and End Date....
The problem is that for our implementation we had decided to go the MVC route and I cannot find any information on how to do this via your MVC toolset.
My chart looks like:
@(Html.Kendo().Chart<KendoWithChart.Models.RatioTimeSeries>()
.Name("chartActualHedgeRatioTimeSeries")
.Title("Actual Hedge Ratio")
.Legend(legend => legend
.Position(ChartLegendPosition.Bottom)
)
.ChartArea(chartArea => chartArea
.Background("transparent")
)
.DataSource(ds => ds.Read(read => read.Action("GetRatioTimeSeriesData", "Home", new { ddlClient = @ViewBag.ClientName, dpkDate = @ViewBag.Date })))
.Series(series =>
{
series.Area(model => model.Value1, model => model.Date).Name("Nuclear");
series.Area(model => model.Value2, model => model.Date).Name("Hydro");
series.Area(model => model.Value3, model => model.Date).Name("Wind");
})
.CategoryAxis(axis => axis
.Date()
.BaseUnit(ChartAxisBaseUnit.Days)
)
.ValueAxis(axis => axis.Numeric()
.Labels(labels => labels.Format("{0:N0}"))
)
.Tooltip(tooltip => tooltip
.Visible(true)
.Format("{0:N0}")
)
)
And it uses the controller from the demos.
What do I need to do to wire in the date filter? I want it to be seamless and to avoid any postbacks....