Kendo Line Chart Problem

Thread is closed for posting
1 posts, 0 answers
  1. Rajib
    Rajib avatar
    1 posts
    Member since:
    Dec 2014

    Posted 18 Mar 2015 Link to this post


    First of all A Big thanks to the Development Teams for the awesome GUI .

    Now i am going to state the problem. I have a Kendo chart in my view like:

                    .Title("Line graph of prices").AutoBind(false)
                            .DataSource(datasource => datasource
                                        .Read(read => read.Action("GetFuturePricesForChart", "Fpm").Data("GetInputData"))
                           .Series(series =>
                               series.Column(model => model.Price.AverageWholesalePrice)
                .Legend(legend => legend
                .ValueAxis(axis => axis.Numeric()
                    .Labels(labels => labels
                .CategoryAxis(axis => axis.Date()
                    .Categories(model => model.Price.MedispanEffectiveDate)
                .Tooltip(tooltip => tooltip
                    .Template("#= #: #= value #")

    and the controller for this is:
          public ActionResult GetFuturePricesForChart(String VendorName, String DrugName, String PeriodType, String Outlook, String EndDate, String Current_Price)
                FpmOutputParams _output = GetFuturePricesFromService(VendorName, DrugName, PeriodType, Outlook, EndDate, Current_Price);

                if (_output == null)
                    return (Json(new List<DrugCashFlow.PriceData>()));

                List<PackagePrice> pkgPxList = new List<PackagePrice>();

                foreach (var _x in _output.Prices) 
                    DateTime _effDate = _x.EffectiveDate;

                    foreach (var _y in _x.DosagePriceList)
                        _y.AveragePrice.Price.MedispanEffectiveDate = _effDate;

                return Json(pkgPxList);

    but I am not getting data on the chart. Please help me 

Back to Top