Articles in this section
Category / Section

How to reset the OlapChart to initial state in WPF?

1 min read

You can reset the WPF OLAPChart to initial state at runtime by clearing series, categorical and slicer elements in OLAP Report.

C#

private void bt_Reset_Click(object sender, RoutedEventArgs e)
        {
            this.olapchart1.OlapDataManager.CurrentReport.SeriesElements.Clear();
          this.olapchart1.OlapDataManager.CurrentReport.CategoricalElements.Clear();
            this.olapchart1.OlapDataManager.CurrentReport.SlicerElements.Clear();
            this.olapchart1.DataBind();
        }

VB

Private Sub bt_Reset_Click(ByVal sender As Object, ByVal e As RoutedEventArgs)
        Me.olapchart1.OlapDataManager.CurrentReport.SeriesElements.Clear()
        Me.olapchart1.OlapDataManager.CurrentReport.CategoricalElements.Clear()
        Me.olapchart1.OlapDataManager.CurrentReport.SlicerElements.Clear()
        Me.olapchart1.DataBind()
    End Sub

 

Figure 1: OLAP Chart to initial state


Conclusion

I hope you enjoyed learning about how to reset the Olapchart to initial sate in WPF

You can refer to our WPF OlapChart feature tour page to know about its other groundbreaking feature representations. You can also explore our WPF OlapChart to understand how to present and manipulate data.

For current customers, you can check out our WPF Controls from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our WPF OlapChart and other WPF controls.

If you have any queries or require clarifications, please let us know in comments below. You can also contact us through our support forumsDirect-Trac, or feedback portal. We are always happy to assist you!

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