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

General Discussions
Top achievements
Rank 1
Shmulik asked on 26 Dec 2018, 10:08 AM
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?

## 4 Answers, 1 is accepted

0
Accepted
Ivan Hristov
Telerik team
answered on 31 Dec 2018, 09:34 AM
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
0
Shmulik
Top achievements
Rank 1
answered on 31 Dec 2018, 04:28 PM
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.
0
Accepted
Ivan Hristov
Telerik team
answered on 03 Jan 2019, 07:50 AM
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
0
Shmulik
Top achievements
Rank 1
answered on 06 Jan 2019, 04:12 PM
Hello Ivan Hristov
Thank you very much for solution of my problem.
Tags
General Discussions