Chart, Binding to remote data

3 posts, 0 answers
  1. Oliver
    Oliver avatar
    2 posts
    Member since:
    Jun 2015

    Posted 08 Feb Link to this post

    Hello,

    tried a simple chart with remote data, but theres no POST to PPM_Read on page load/refresh ...

    everything else is working fine, grids, dropdownlist, etc ...

    Maybe anyone knows what i'm doin wrong here ?

     

    Greetings, Oliver

     

    Controller:

    public ActionResult PPM_Read()

     

     

    {

     

    var data = db.viewPointCipWqsScrapPartsMonthPPM;

    return Json(data, JsonRequestBehavior.AllowGet);

     

     

    }

     

     

    View:

    @(Html.Kendo().Chart<MapsMvc.Areas.mPointCip.Models.viewPointCipWqsScrapPartsMonthPPM>().Name("chart2")

    .Title("WQS")

    .Legend(legend => legend

    .Position(ChartLegendPosition.Top))

    .DataSource(dataSource => dataSource.Read(read => read.Action("PPM_Read", "WQS")))

    .Series(series =>

    {

    series.Column(model => model.PPM).Name("PPM");

    })

    .CategoryAxis(axis => axis

    .Categories(model => model.LastProcess)

    .Labels(labels => labels.Rotation(0))

    .MajorGridLines(lines => lines.Visible(false))

    )

    .ValueAxis(axis => axis.Numeric()

    .Labels(labels => labels.Format("{0:N0}"))

    .MajorUnit(1000)

    .Line(line => line.Visible(true))

    .Max(10000)

    )

    .Tooltip(tooltip => tooltip

    .Visible(true)

    .Format("{0:N0}")

    )

    )

     

     

  2. Oliver
    Oliver avatar
    2 posts
    Member since:
    Jun 2015

    Posted 11 Feb Link to this post

    Hello again,

    well, looks like it was a route problem, works now.

     

    Thank you,

    Oliver

  3. UI for ASP.NET MVC is VS 2017 Ready
  4. T. Tsonev
    Admin
    T. Tsonev avatar
    2772 posts

    Posted 11 Feb Link to this post

    Hi,

    Great to hear its working now. I think MVC will simply render a blank URL if the route info is not correct - not very helpful, really.

    Sorry we couldn't get back to you earlier.

    Regards,
    T. Tsonev
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top