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

Set minimum of X-axis

4 Answers 61 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Tobias
Top achievements
Rank 1
Tobias asked on 21 Nov 2013, 04:16 PM
Hi everyone,

I tried to set the minimum of the X-axis and Y-axis to 100. For Y it's working fine but for X still 0 is used. I don't know why. I attached a screenshot of it.

Thank you for your help!

My code:
myRadChart.DefaultView.ChartArea.AxisX.AutoRange = false;
myRadChart.DefaultView.ChartArea.AxisX.MinValue = 100;
myRadChart.DefaultView.ChartArea.AxisX.MaxValue = 500;
myRadChart.DefaultView.ChartArea.AxisX.Step = 50;
myRadChart.DefaultView.ChartArea.AxisY.AutoRange = false;
myRadChart.DefaultView.ChartArea.AxisY.MinValue = 100;
myRadChart.DefaultView.ChartArea.AxisY.MaxValue = 500;
myRadChart.DefaultView.ChartArea.AxisY.Step = 50;

4 Answers, 1 is accepted

Sort by
0
Peshito
Telerik team
answered on 26 Nov 2013, 09:53 AM
Hi Tobias,

I wasn't able to reproduce the same issue you are currently facing. Please provide us with a sample runnable project reproducing the issue, or simply edit the one I used for testing and have also attached to this thread.

Please note that as this is a forum thread, you can upload the project to a third party website and share it with us, or you can open a support ticket thread ans simply attach it it there.

Regards,
Peshito
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
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 >>
0
Tobias
Top achievements
Rank 1
answered on 29 Nov 2013, 08:59 AM
Hey,

I uploaded a runnable project which reproduces the issue. You can download it with the following link: http://www.file-upload.net/download-8345281/BubbleChartProblemReproduction.zip.html

Thank you!
0
Peshito
Telerik team
answered on 02 Dec 2013, 11:20 AM
Hi Tobias,

The axis is actually showing the the proper Axis range you have specified in your code. I think that what you mean like an issue is the ticks not starting from the beginning of the axis line. If this is so, this can be solved by simply changing the axis layout mode like this:
myRadChart.DefaultView.ChartArea.AxisX.LayoutMode = Telerik.Windows.Controls.Charting.AxisLayoutMode.Normal;

Hope this helps.

Regards,
Peshito
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
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 >>
0
Tobias
Top achievements
Rank 1
answered on 02 Dec 2013, 06:13 PM
It works! Thank you!
Tags
Chart
Asked by
Tobias
Top achievements
Rank 1
Answers by
Peshito
Telerik team
Tobias
Top achievements
Rank 1
Share this question
or