We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

How to position the primary and secondary axes as the center of chart?

Typically, scaling for the chart bounds is within a single quadrant, but some scenarios demand scaling across the quadrants. To achieve this requirement with the chart, adjust the position of axis by using the Origin and ShowAxisNextToOrigin properties. The Origin property manages the axis position and represents the axis value. When this is the primary axis, the corresponding axis is positioned on the secondary axis according to the Origin property's value. You also have to enable the ShowAxisNextToOrigin property to enable the Origin property to work.

Note: For CategoryAxis, specify the label index as a value for the Origin property as given in the following code example. This value is not a pixel value, but it is an axis value.

 

XAML

C#

 

The following screenshot illustrates the chart with four quadrants.

C:\Users\satheesht\AppData\Roaming\Skype\My Skype Received Files\IMG_13022015_051014.png

Article ID: Published Date: Last Revised Date: Platform: Control:
6400 02/25/2016 03/09/2018 UWP SfChart
Did you find this information helpful?
Add Comment
You must log in to leave a comment

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.