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

RadCartesianChart X-axis value as ' 0 '

4 Answers 137 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
CS
Top achievements
Rank 1
CS asked on 16 Aug 2017, 05:30 AM
How to make the X-axis at '0' in stead of '1'?

4 Answers, 1 is accepted

Sort by
0
CS
Top achievements
Rank 1
answered on 16 Aug 2017, 05:34 AM
I am trying to change the direction of bar. In this case, when the value is less than 1, the bar will be going downward. How can I make all the bar is going upward or the graph start at x-axis instead of other line of value.
0
Accepted
Dinko | Tech Support Engineer
Telerik team
answered on 18 Aug 2017, 12:41 PM
Hello,

Thank you for contacting us.

I am not exactly I have fully understood your approach. Basically, when all the values are positive they will be upward. That is why I will ask you to elaborate more on your scenario. You can send me isolated project from your application, code snippets so I can better understand your case. Also, have you set the OriginValue property of the series? 

Regards,
Dinko
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which you to write beautiful native mobile apps using a single shared C# codebase.
0
CS
Top achievements
Rank 1
answered on 21 Aug 2017, 03:43 AM
Thank you, I am able to get what I want after set the OriginValue to "0". Can I know is the default OriginValue for LogarithmicAxis is 1 or the value is depends on the chart data?
0
Accepted
Dinko | Tech Support Engineer
Telerik team
answered on 23 Aug 2017, 11:31 AM
Hi,

I am happy to hear that you found a solution for your scenario. When you are using LogarithmicAxis internally in the axis code the origin value property is set to 1d.

Regards,
Dinko
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which you to write beautiful native mobile apps using a single shared C# codebase.
Tags
ChartView
Asked by
CS
Top achievements
Rank 1
Answers by
CS
Top achievements
Rank 1
Dinko | Tech Support Engineer
Telerik team
Share this question
or