Articles in this section
Category / Section

How to disable OLAP Chart GridLines in OLAP Client?

1 min read

Disabling the OLAP Chart GridLines can be achieved through the following code example.

C#

public MainWindow()
        {
            ViewModel.ViewModel.ConnectionString = this.GetConnectionString();
            InitializeComponent();
            this.olapchart1.Loaded += olapchart1_Loaded;
        }
        void olapchart1_Loaded(object sender, RoutedEventArgs e)
        {         
             this.olapchart1.Series[0].Area.PrimaryAxis.SetValue(ChartArea.        
             ShowGridLinesProperty,false);
             this.olapchart1.Series[0].Area.SecondaryAxis.SetValue(ChartArea.    
             ShowGridLinesProperty, false);
        }

VB

Public Sub New()
        ViewModel.ViewModel.ConnectionString = Me.GetConnectionString()
        InitializeComponent()
        AddHandler Me.olapchart1.Loaded, AddressOf olapchart1_Loaded
End Sub
Private Sub olapchart1_Loaded(ByVal sender As Object, ByVal e As RoutedEventArgs)        
        Me.olapchart1.Series(0).Area.PrimaryAxis.SetValue(ChartArea.
        ShowGridLinesProperty,False)                                       
        Me.olapchart1.Series(0).Area.SecondaryAxis.SetValue(ChartArea.
        ShowGridLinesProperty, False)
End Sub

 

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