This is a migrated thread and some comments may be shown as answers.

series lines gone with upgrade

5 Answers 50 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Entilzha
Top achievements
Rank 2
Entilzha asked on 03 Oct 2013, 05:37 AM
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.

5 Answers, 1 is accepted

Sort by
0
Iliana Dyankova
Telerik team
answered on 04 Oct 2013, 10:35 AM
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!
0
Entilzha
Top achievements
Rank 2
answered on 11 Oct 2013, 12:52 AM
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
0
Entilzha
Top achievements
Rank 2
answered on 12 Oct 2013, 03:48 AM
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>



0
Accepted
Iliana Dyankova
Telerik team
answered on 14 Oct 2013, 02:54 PM
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!
0
Entilzha
Top achievements
Rank 2
answered on 14 Oct 2013, 10:14 PM
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
Tags
General Discussions
Asked by
Entilzha
Top achievements
Rank 2
Answers by
Iliana Dyankova
Telerik team
Entilzha
Top achievements
Rank 2
Share this question
or