Pivot View Charts

Hello

In a pivot view is it possible to curate the list of chart types available to the user.  For instance if I wanted to limit the types of charts available to the user to say Column, Bar, Line only?

Thanks

1 Reply 1 reply marked as answer

SS Saranya Sivan Syncfusion Team March 24, 2021 12:53 PM UTC

Hi Richard, 
  
We would like to inform that the requirement can be achieved by using `ChartTypes` property. Meanwhile we have prepared a sample for your reference. Please find the code snippet and sample below. 
  
Code Snippet: 
  
  <SfPivotView @ref="@Pivot" TValue="ProductDetails" ChartTypes="@ChartTypes"> 
</SfPivotView> 
@code{ 
List<ChartSeriesType> ChartTypes = new List<ChartSeriesType>() { 
    ChartSeriesType.Column, 
    ChartSeriesType.Bar, 
    ChartSeriesType.Line 
   }; 
} 
  
  
  
Please let us know if you have any concerns.  
   
Regards,  
Saranya Sivan.  
 



Marked as answer
Loader.
Up arrow icon