The center of the X and Y axes is not in the center of the Bubble or Scatter chart

1. Shmulik
4 posts
Member since:
Dec 2017

Posted 26 Dec 2018 Link to this post

The center of the X and Y axes is not in the center of the Bubble or Scatter chart.

General Information:
- Operation System: Windows 10
- Telerik Reporting, version 12.1.18.516
- The control: Telerik Reporting Graph, Chart type: Bubble or Scatter
- Report designer: Visual Studio 2015
- Project type: Class library
- Report name: NgoImpact (attached)

Chart Description:
1. The chart has two coordinate axes:
X axis has a constant range of values from -10 to +10
Y axis has a constant range of values from -10 to +10
2. The chart always shows 5 objects.

Problem #1:
The center of the X and Y axes is not in the center of the chart. The center of the X and Y axes moves towards the object with the lowest absolute value. Please see images: Pic1.png, Pic2.png, Pic3.png.
Question: how to fix the center of the X and Y axes in the center of the chart?

Problem #2:
The markers of objects that are located on the edge of the chart are clipped. Please see images: Pic1.png, Pic2.png, Pic3.png.
Question: How to prevent clipping of markers on the edges?
Ivan Hristov
198 posts

Posted 31 Dec 2018 Link to this post

Hi Shmulik,

The Graph item by default determines the axes minimum and maximum based on the data. For example, in attached pic1 image there are points with X = -5 and X = 10, so the engine calculates the X axis range to [-5;10]. If you need to always have the coordinate system centered, the axis scales need to have their Minimum and Maximum explicitly set - either in the report definition or through Bindings.

The data point markers are clipped for the same reason - the scale range is determined by the data points and does not include the marker size. In this case automatically setting the scale range will help. Please check this article that elaborates on the subject: How to: Use Bindings to Control the Coordinate System Properties

Regards,
Ivan Hristov
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
3. Shmulik
4 posts
Member since:
Dec 2017

Posted 31 Dec 2018 in reply to Ivan Hristov Link to this post

Hello Ivan Hristov

Quote: “If you need to always have the coordinate system centered, the axis scales need to have their Minimum and Maximum explicitly set - either in the report definition or through Bindings”

I tried to find the Minimum and Maximum scale properties but did not succeed not through the designer, not through the code. May be we have different Telerik Reporting versions.

Please see the attached image: CoordinateSystem_Editor.png – that is what I see in my Visual Studio 2015 designer.
Ivan Hristov
198 posts

Posted 03 Jan Link to this post

Hello Shmulik,

The Minimum and Maximum properties are set on axis' scale, not on the axis itself. Please note that the Minimum and Maximum properties are present only for Numerical and DateTime scales. Based on the provided screenshots I guess the scales used in the current scenario are Numerical, so Minimum and Maximum properties should be present. Please check the attached screenshot for reference.

Regards,
Ivan Hristov
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
5. Shmulik
4 posts
Member since:
Dec 2017

Posted 06 Jan in reply to Ivan Hristov Link to this post

Hello Ivan Hristov
Thank you very much for solution of my problem.