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

Scatterchart, zoom. Zooms the wrong cordinates

1 Answer 43 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Felix
Top achievements
Rank 1
Felix asked on 08 Jul 2013, 01:10 PM
Hi,

I have a scatterchart with lots of datapoints.
Values from -100 % to 3 000 000 %.

When I apply zoom to one or more points, the zoom are gets totally wrong.
For example the zoom area could be set to -200 % -400 %; even though I zoom on a point that had a positive number.

This issue applies to both axes, every time I zoom.

Any ideas?

1 Answer, 1 is accepted

Sort by
0
Petar Marchev
Telerik team
answered on 10 Jul 2013, 07:33 AM
Hi Felix,

I have created a simple project based on your description. I tested with both the latest internal assemblies and dlls from the last official release. I was unable to reproduce the issue that you have described. I have attached the project I tested with and a snapshot of the output (for the snapshot I have used dlls from the last official release 611).

I will suggest that you download the latest version of our controls and see if the issue persists. If it does, you can send a small project (all the code for it) and a picture of before and after zooming in. This way we can look for where the problem hides and do our best to fix it.

Currently I can only make a blind suggestion to set the Width of both the horizontal and vertical axes labels to a certain Width:
<telerik:ScatterLineSeries>
 <telerik:ScatterLineSeries.LabelStyle>
  <Style TargetType="TextBlock">
   <Setter Property="Width" Value="50" />

I suggest this because zooming highly depends on the size of the visible labels and when the labels change (respectively their size changes) the chart has to readjust the size of the plot area and pan offset and this might lead to slight displacement.

Regards,
Petar Marchev
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
ChartView
Asked by
Felix
Top achievements
Rank 1
Answers by
Petar Marchev
Telerik team
Share this question
or