Why is the x-axis 0 not at origin?

1 Answer 50 Views
.NET Framework Graph
Abhijit
Top achievements
Rank 1
Abhijit asked on 19 May 2023, 08:15 PM

How can I put the x-axis 0 exactly at the origin?

I am using the Telerik Reporting Designer inside Visual Studio 2022

Platform:

Telerik Reporting R3 2022, using Telerik for .Net

.Net Framework 4.5.2

Visual Studio 2022, 64 bit

 

1 Answer, 1 is accepted

Sort by
0
Todor
Telerik team
answered on 24 May 2023, 09:24 AM

Hello Abhijit,

Based on the screenshot, I suspect you use a CategoryScale on X-axis. You need to make it NumericalScale.

Note that you may use the Scatter > Straight Lined Scatter chart type in the Report Designer and it would create such a Graph automatically for you.

Regards,
Todor
Progress Telerik

Stay tuned by visiting our roadmap and feedback portal pages, enjoy a smooth take-off with our Getting Started resources, or visit the free self-paced technical training at https://learn.telerik.com/.
Abhijit
Top achievements
Rank 1
commented on 25 May 2023, 03:48 PM

Hi Todor,

Thanks for the reply. When I switch to Numerical Scale, I get this:

I am using a CSV data source for the graph and it has the values in the correct format, as they do show up in the Categorical Scale:


 

 

Todor
Telerik team
commented on 30 May 2023, 07:44 AM

Hi Abhijit,

Indeed, when you use a Numerical Scale, you must provide X and Y values for the Series.

The Category Scale needs only X or Y as the other comes from the Category group. Hence, if you switch from Category to Numerical scale, you have to add the missing value in the Series. In your scenario, this is the missing X value. See the linked screenshot for clarity.

Usually, you would also use LineSeries rather than BarSeries for your scenario.

Abhijit
Top achievements
Rank 1
commented on 01 Jun 2023, 12:49 PM

Thank You. That worked.
Tags
.NET Framework Graph
Asked by
Abhijit
Top achievements
Rank 1
Answers by
Todor
Telerik team
Share this question
or