Category / Section
How to change the interval of the Measure Axis of the OlapChart?
1 min read
You can change the interval range of the OLAP Chart axis manually by using the following code example.
C#
public MainWindow() { this.InitializeComponent(); this.olapchart1.OlapDataManager = new 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 += new RoutedEventHandler(olapchart1_Loaded); } void olapchart1_Loaded(object sender, RoutedEventArgs e) { this.olapchart1.OlapChartArea.Axes[0].Interval = 500000.00; }
VB
Private Function MainWindow() As Public Me.InitializeComponent() Me.olapchart1.OlapDataManager = New OlapDataManager("Data Source=http://bi.syncfusion.com/olap/msmdpump.dll; Initial Catalog=Adventure Works DW 2008 SE;") Me.olapchart1.OlapDataManager.SetCurrentReport(SampleReport()) Me.olapchart1.Loaded += New RoutedEventHandler(olapchart1_Loaded) End Function Private Sub olapchart1_Loaded(ByVal sender As Object, ByVal e As RoutedEventArgs) Me.olapchart1.OlapChartArea.Axes(0).Interval = 500000.0 End Sub