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