Planned
Last Updated: 05 Dec 2024 08:38 by ADMIN
Scheduled for 2025 Q1 (Feb)
Stu
Created on: 28 Nov 2024 11:13
Category: Kendo UI for jQuery
Type: Bug Report
0
chart setOptions("noData", false) fails to remove the chart overlay

var chart = $("#chart").data("kendoChart");
var series = [];

$(theData.Serieses).each(function (index) {
	series.push({
		name: theData.Serieses[index].Name,
		field: theData.Serieses[index].Name,
		data: theData.Serieses[index].SeriesPoints,
		xField: "X",
		yField: "Y",
		color: theData.Serieses[index].Colour,
		markers: {
			type: theData.Serieses[index].Shape
		}
	});
});
chart.setOptions({ series: series, noData: series.length == 0 });
chart.redraw();
console.log(chart.options);

When updating a chart after instantiation, because noData defaults to true, the overlay is shown immediately

if you try and set noData via setOptions then redraw(), the overlay is still in place

Honestly, this should have been marked as a breaking change as every single chart has to be updated to force noData to false just to show initially

 

 

 

 

1 comment
ADMIN
Nikolay
Posted on: 05 Dec 2024 08:08

Hi Stu,

Thank you for reporting this undesired setOptions() functionality.

I confirm it is a big and I logged it in to GitHub as well: https://github.com/telerik/kendo-ui-core/issues/8071

As a toke of gratitude for reporting this I have added some Telerik points to your ccount.

Regards,
Nikolay
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.