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

Create Chart Area With Negatif Value in Axis Y

4 Answers 54 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
zake
Top achievements
Rank 1
zake asked on 28 Nov 2018, 03:34 AM
I am attempting create Chart Area with negatif Value in Axis Y. Can Anyone help me, please ? 

4 Answers, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 28 Nov 2018, 10:52 AM
Hello, Zake,  

You can achieve the chart from the provided screenshot by using an inverse axis. The IsInverse property of the abstract LineAxis class determines whether an axis of a RadChartView will be reversed. In certain areas in engineering or physics it is a standard for some data representation an axis to be inverse. Please refer to the following help article: https://docs.telerik.com/devtools/winforms/controls/chartview/axes/inverse-axis

I hope this information helps.

Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
zake
Top achievements
Rank 1
answered on 03 Dec 2018, 03:27 AM

thank you for the answer, but I still have a question, 

what if the value on the axis y is positive and negative, the chart like image that I attach below

0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 03 Dec 2018, 11:33 AM
Hello, Zake,    

By default, RadChartView doesn't render the positive values from bottom to top and the negative values in reversed direction. The following KB article shows how you can paint a chart where the area is started from zero. This means that the positive values will go up and the negative down: https://docs.telerik.com/devtools/winforms/knowledge-base/negative-area-chart

Note that this is just a sample approach and it may not cover all possible cases. Feel free to modify it in a way which suits your requirement best.

I hope this information helps. 

Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
zake
Top achievements
Rank 1
answered on 05 Dec 2018, 02:11 AM
It's amazing, thank for the satisfying answer,,,  
Tags
ChartView
Asked by
zake
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
zake
Top achievements
Rank 1
Share this question
or