series lines gone with upgrade

6 posts, 1 answers
  1. Entilzha
    Entilzha avatar
    36 posts
    Member since:
    Feb 2012

    Posted 03 Oct 2013 Link to this post

    Did I miss something that is not in the release notes for the 2013.2.716.340 release of Kendo UI?  All I did was install that version over the previous in my mvc project and now the series lines aren't showing up.  The plot lines still draw though.  Was there something we are supposed to do with that upgrade?  I know the data is coming across and I know the set of dependencies hasn't changed.  My code did not change.  I know my installation of Kendo UI is working because the scheduler and all the other controls are working fine.

    I know this is a stab in the dark asking on this forum but I can't find anything on the boards and all my traces are returning nothing.
  2. Iliana Nikolova
    Admin
    Iliana Nikolova avatar
    2622 posts

    Posted 04 Oct 2013 Link to this post

    Hi Marcus,

    I am not quite sure what causes the issue in your application. Is it possible to provide a small runnable example which demonstrates your chart implementation and which I can test locally? This way I would be able to check what exactly is going wrong and provide concrete recommendations. Thank you in advance for your time and cooperation. 

    Regards,
    Iliana Nikolova
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Entilzha
    Entilzha avatar
    36 posts
    Member since:
    Feb 2012

    Posted 10 Oct 2013 Link to this post

    Iliana,

    I had to suspend my search for this problem to get a release out.  Unfortunately we had to remove the graph pages because this is a problem.  I will try to put this into a reproducible solution and upload it.

    Marcus
  4. Entilzha
    Entilzha avatar
    36 posts
    Member since:
    Feb 2012

    Posted 11 Oct 2013 Link to this post

    I was able to reproduce the problem in a separate project (attached).  I have also included an image of what I am seeing.  The url you will need to use to see this behavior is

    http://localhost:58100/Fit/Fit

    I know I have correctly configured KendoUI since I can see the graph when I replace this code in AllTimeSeries.cshtml

     @Html.Action("PlotFit", new { resourceType = Model, start = ViewBag.Start, end = ViewBag.End })

    with the code from the example at http://demos.kendoui.com/dataviz/line-charts/index.html

    <div class="chart-wrapper">
        @(Html.Kendo().Chart()
            .Name("chart")
            .Title("Gross domestic product growth /GDP annual %/")
            .Legend(legend => legend
                .Position(ChartLegendPosition.Bottom)
            )
            .ChartArea(chartArea => chartArea
                .Background("transparent")
            )
            .Series(series => {
                series.Line(new double[] { 3.907, 7.943, 7.848, 9.284, 9.263, 9.801, 3.890, 8.238, 9.552, 6.855 }).Name("India");
                series.Line(new double[] { 1.988, 2.733, 3.994, 3.464, 4.001, 3.939, 1.333, -2.245, 4.339, 2.727 }).Name("World");
                series.Line(new double[] { 4.743, 7.295, 7.175, 6.376, 8.153, 8.535, 5.247, -7.832, 4.3, 4.3 }).Name("Russian Federation");
                series.Line(new double[] { -0.253, 0.362, -3.519, 1.799, 2.252, 3.343, 0.843, 2.877, -5.416, 5.590 }).Name("Haiti");
            })
            .CategoryAxis(axis => axis
                .Categories("2002", "2003", "2004", "2005", "2006", "2007", "2008", "2009", "2010", "2011")
                .MajorGridLines(lines => lines.Visible(false))
            )
            .ValueAxis(axis => axis
                .Numeric().Labels(labels => labels.Format("{0}%"))
                .Line(line => line.Visible(false))
                .AxisCrossingValue(-10)
            )
            .Tooltip(tooltip => tooltip
                .Visible(true)
                .Format("{0}%")
            )
        )
    </div>



  5. Answer
    Iliana Nikolova
    Admin
    Iliana Nikolova avatar
    2622 posts

    Posted 14 Oct 2013 Link to this post

    Hello Marcus,

    Thank you for the example. I examine it and believe the issue is caused by the #fitchart" series field ("Value") is a string while the chart expects number. Please try using number field instead and let me know if your still observe any problems.

    Regards,
    Iliana Nikolova
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  6. Entilzha
    Entilzha avatar
    36 posts
    Member since:
    Feb 2012

    Posted 14 Oct 2013 Link to this post

    Yes, that definitely fixed it!  I checked the older version of the file and it shows that value has always been a string.  Yet it was working until I did the latest upgrade.  So I am going to guess you guys improved the code to only allow numbers.  That would also be faster than having the library convert each string to a number.

    I am in your debt!  Thank you!
    Marcus
Back to Top