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

Datawiz issue.

6 Answers 65 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Adrian
Top achievements
Rank 1
Adrian asked on 27 Jul 2017, 02:22 PM

Greetings.

Recently we have moved to the newest version of Telerik Kendo UI, v2017.2.621 from 2016.3.914.

The update has broken Chart drawing as it appears, the Datawiz works perfectly fine on 2016.3.914 however 2017.2.612 keeps throwing Error: <path>... See log for more details. Replacing the kendo.datawiz.min.js value with contents of 2016.3.914 appears to fix the issue my only concern is if there are any changes in the update which are crucial items to work, i.e. will it break anything?

Error log (from Inspector Tools)

https://hastebin.com/evetupivew.swift

On of our tools relies on Graph controls, so it's crucial it works perfectly as it should, version 2017 doesn't.

Just in case it could be browser relevant (which I doubt it is), I'm running Chrome on Version 59.0.3071.115.

 

Any support in this matter will be highly appreciated, as I don't want to run on 2016 version if it'll break other things, however if it doesn't and changes within the update are irrelevant to other controls we should be good to say on 2016 datawiz script.

 

Regards,

Adrian

6 Answers, 1 is accepted

Sort by
0
Adrian
Top achievements
Rank 1
answered on 28 Jul 2017, 09:44 AM

Update: 

kendo.all.min.js file seems to have everything fine with Datawiz so it's only the separate library which seems faulty.

0
Daniel
Telerik team
answered on 31 Jul 2017, 07:23 AM
Hello,

Could you provide a runnable sample that demonstrates the issue with the dataviz file or at least the code that you are using for the chart? The error indicates that the coordinates are not calculated correctly but there are not any known reasons for this to happen.

Regards,
Daniel
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Adrian
Top achievements
Rank 1
answered on 31 Jul 2017, 07:47 AM

Hi Daniel.

I have written a library builds all components for the charts so I won't post it here as it's quite large, however to create the stockchart I call

$("#historical").kendoStockChart({
            series: series,
            chartArea: {
                height: $("#pane2").height() - 80
            },
            navigator: {
                series: series
            },
            categoryAxis : {
                categories: categories
            },
            valueAxis : {
                labels: {
                    template : "#= value &deg;C #"
                }
            },
            valueAxes: BuildValueAxes()
        });

 

The data is there, in the same format that it was before without any null or missing values, any fields meant to be numerical are indeed numerical. Please note (again), in 2017 update kendo.all.min.js doesn't give this error compared to stand-alone script (kendo.datawiz.min.js).

0
Daniel
Telerik team
answered on 02 Aug 2017, 07:41 AM
Hello again,

Unfortunately the provided code snippet is not sufficient to determine the reason for the problem. If the code or runnable sample cannot be provided in the forum then could you open a support ticket and share it there?

Also, given that the problem occurs only when using the dataviz file could you verify that there aren't other kendo scripts included on the same page? The combined scripts should not be mixed with other kendo script files.

Regards,
Daniel
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Adrian
Top achievements
Rank 1
answered on 02 Aug 2017, 08:01 AM

No other kendo files are included. Code provided is what generates the graph, we have methods for building elements dynamically as data is requested from an API and displayed to users for interactivity. A library for creating charts dynamically:

https://hastebin.com/agadeqipuh.js

Please note, the error occurs right at the start (I know about redrawing charts, they should be refreshed instead as it's more efficient). Again as stated above, 2016 works fine (individual dataviz script and .kendoall.min.js), it's only the 2017 individual script that keeps failing as kendo.all.min.js in 2017 bundle works as expected.

Charts are loaded after a request has completed, 

function newYearSelection(e) {
    loadingContent = true;
 
    var fields = WeatherLib.GetSelectedFields();
    //console.log(e.sender._oldText)
    WeatherLib.GetData(fields, parseInt(e.sender._oldText), function (data) {
        WeatherCharts.createComparisonChart(data);
        refreshListView();
        loadingContent = false;
    })
 
}
0
Stefan
Telerik team
answered on 04 Aug 2017, 06:36 AM
Hello Adrian,

Thank you for the provided information.

I inspected the code, but it looks good and should not cause the described error. Still, I may have missed an important part as it is not fully runnable.

Based on the provided information, I can assume that this is an issue caused by the content of the kendo.DataViz script.

I can suggest using our custom download tool to make a script only for the Chart to inspect if the issue will be observed with that bundled file:

http://www.telerik.com/download/custom-download

Regards,
Stefan
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Charts
Asked by
Adrian
Top achievements
Rank 1
Answers by
Adrian
Top achievements
Rank 1
Daniel
Telerik team
Stefan
Telerik team
Share this question
or