Articles in this section
Category / Section

How to display the entire legend text without overlapping?

1 min read

You can view the entire legend text in OLAP Chart by using the following code examples.

C#

public MainWindow()
        {
                InitializeComponent();
                this.olapChart1.OlapDataManager = new       
                Syncfusion.Olap.Manager.OlapDataManager("Data 
                Source=http://bi.syncfusion.com/olap/msmdpump.dll;
                Initial Catalog=Adventure Works DW 2008 SE;");
                this.olapChart1.OlapDataManager.SetCurrentReport(SampleReport());
                this.olapChart1.Loaded += olapChart1_Loaded;
        }
void olapChart1_Loaded(object sender, System.Windows.RoutedEventArgs e)
    {
     this.olapchart1.OlapChartArea.Legend.ColumnsCount = 5;
         this.olapchart1.OlapChartArea.Legend.RowsCount = 2;
    }

 

VB

Public Sub New()
                InitializeComponent()
                Me.olapChart1.OlapDataManager = New Syncfusion.Olap.Manager.OlapDataManager("Data Source=http://bi.syncfusion.com/olap/msmdpump.dll; Initial Catalog=Adventure Works DW 2008 SE;")                                                Me.olapChart1.OlapDataManager.SetCurrentReport(SampleReport())
                AddHandler Me.olapChart1.Loaded, AddressOf olapChart1_Loaded
End Sub
Private Sub olapChart1_Loaded(ByVal sender As Object, ByVal e As System.Windows.RoutedEventArgs)
                 Me.olapchart1.OlapChartArea.Legend.ColumnsCount = 5
             Me.olapchart1.OlapChartArea.Legend.RowsCount = 2
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