Articles in this section
Category / Section

How to change the number of labels for secondary axis of OlapChart in OlapClient Control

1 min read

We can able to increase or decrease the number of labels presented in the secondary axis of OlapChart in OlapClient control. This can be achieved by setting the desired value to the interval in Secondary axis. Please refer the below code snippet to achieve the same.

C#

 
public MainPage()
        {
            InitializeComponent();
            this.DataContext = new ViewModel.ViewModel();
            this.olapClient.Loaded += olapClient_Loaded;
        }
 
        void olapClient_Loaded(object sender, System.Windows.RoutedEventArgs e)
        {
           this.olapClient.OlapChart.OlapArea.SecondaryAxis.Interval = 5000000d;
        }

 

 

Figure: OlapChart after setting the Interval for Y-Axis

 

 


Figure: OlapChart without setting Interval for Y-Axis

 

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied