locked
Filtering in MS Charts RRS feed

  • Question

  • Hi, 

    I am using MS Charts to create charts in my ASP.NET application. The requirement is, the user must be given provision to filter the chart data and view for different date ranges, such as between specified months, years, dates etc. 

    To my knowledge there are 2 ways of doing it:-

    1) Use the Chart.DataManipulator.Filter which comes with MS Charts

    2) Filter the data in the datasource and then bind it to the chart

        DataView dt = new DataView(GetFilteredDataTable());

        Chart1.Series["Income"].Points.DataBindXY(dt, "Year", dt, "Income");

     

    Can anyone please guide me in choosing the best method to do this. Or is there any other better way of doing the same?

     

     

    Wednesday, August 3, 2011 11:42 AM