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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to set series to row programmatically?

Thread ID:





127995 Dec 23,2016 09:56 AM UTC Dec 23,2016 01:09 PM UTC UWP 1
Tags: SfChart
Syaiful Nizam Yahya
Asked On December 23, 2016 09:56 AM UTC

How do I translate this

       <Charts:NumericalAxis Charts:SfChart.Row="1" PlotOffset="10" /> 

to this

var splineSeries = new SplineSeries();
NumericalAxis na = new NumericalAxis();
na.PlotOffset = 10;
na. ??? What do I put here?
splineSeries.YAxis = na;
By the way, what is PlotOffset?

Devi Aruna Maharasi Murugan [Syncfusion]
Replied On December 23, 2016 01:09 PM UTC

Hi Syaiful, 
Thanks for contacting Syncfuion Support. 
1)Setting Row in Code behind  
We can set the corresponding row for axis in SfChart, by using the SetRow Method of SfChart as like the below code snippet, 
            var spline = new SplineSeries(); 
            NumericalAxis axis = new NumericalAxis(); 
            axis.PlotOffset = 10; 
            SfChart.SetRow(axis, 1); 

2)Regarding PlotOffset, 
While setting the PlotOffset property of axis, the additional space will be padded on both the side of axis. Please refer the below code snippet and corresponding output  
        <chart:SfChart > 
                <chart:NumericalAxis PlotOffset="30"/> 
                <chart:NumericalAxis /> 



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon