Unplanned
Last Updated: 29 Jul 2022 08:11 by ADMIN
Nazar
Created on: 23 Jun 2022 10:04
Category: ChartView
Type: Bug Report
1
Problem with resizing graphs at window resized

The problem arises when we have many graphs on one window and when we scroll to the bottom then to the middle of the window and then resize the width of the window, not all graphics dynamically resize, some harden to the previous size.

I am attaching a project in which you can reproduce the problem.

And I am attaching a video where the problem is clearly demonstrated.

Please solve the problem as soon as possible for our product it is critical!

4 comments
ADMIN
Petar Mladenov
Posted on: 29 Jul 2022 08:11

Hello Nazar,

Currently we cannot promise an estimated time for a fix. We investigated the issue and there are no wrong calculations or properties with wrong values when the charts become shortened unexpectedly. This makes us think the origin of the problem is somewhere in the framework where heavy re-draw operations are performed in a moment of scrollviewer resize. This is only a hypothesis and we haven't isolated it yet. However, it seems to us that decreasing the charts in the Viewport can be a step in limiting this behavior. Our tests showed that placing all charts in a virtualized vertical listbox, instead of scrollviewer with stack panel limits the incorrect chart drawn a lot, but still after a lot of maximize /scroll/resize operations there might be some charts drawn incorrectly.

<Window
	x:Class="ChartsExample.MainWindow"
		xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:chartsExample="clr-namespace:ChartsExample">
	<ListBox  VirtualizingStackPanel.IsVirtualizing="True" ItemsSource="abcdefghijklmnopqrstuv" MaxHeight="800">
		<ListBox.ItemContainerStyle>
			<Style TargetType="ListBoxItem">
				<Setter Property="HorizontalContentAlignment" Value="Stretch" />
			</Style>
		</ListBox.ItemContainerStyle>
		<ListBox.ItemTemplate>
			<DataTemplate>
				<chartsExample:CartesianChart/>
			</DataTemplate>
		</ListBox.ItemTemplate>
   </ListBox>
</Window>

Regards,
Petar Mladenov
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.

Nazar
Posted on: 25 Jul 2022 13:02

When will you fix the issue related to the SmartLabelsMode of the axis? 

It is not suitable for us to set MajorStep manually because the date changes dynamically and we need SmartLabelsMode.

ADMIN
Martin Ivanov
Posted on: 30 Jun 2022 10:03

Hello Nazar,

I can confirm that this is an issue in the chart measure. This is why I've changed the status of the item to Unplanned (confirmed). The issue is related to the SmartLabelsMode of the axis. In your case this is the horizontal axis (the DateTimeContinuous one).

To work this around, you avoid setting the SmartLabelsMode property. Instead, you can leave the default range calculation of the chart. If this doesn't work for you, then you can manually adjust the range using the MajorStep and MajorStepUnit properties of the axis. Please try this idea and let me know how it goes.

Regards,
Martin Ivanov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

ADMIN
Martin Ivanov
Posted on: 30 Jun 2022 09:44

Hi Nazar,

Thank you for the report. I am testing this and will get back to you later today.

Regards,
Martin Ivanov
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.