SFChart - Custom ChartSeries

Hi there

I want to modify the first two columns: remove both "100%" and make them e.g. grey


so it looks like this:


Any idea how to achieve that?

Cheers,
Volker


3 Replies

SM Srihari Muthukaruppan Syncfusion Team June 22, 2021 11:39 AM UTC

Hi Volker, 
 
We can achieve your requirement using OnPointRender event in the chart. Based on that we have prepared a sample for your reference. Please find the sample, code snippet and screenshot below. 
 
 
Code Snippet: 
// add your additional code here 
 
<SfChart Title="Olympic Medal Counts - RIO" Theme="@Theme"> 
        <ChartEvents OnPointRender="PointRenderEvent"></ChartEvents> 
 
// add your additional code here 
 
public void PointRenderEvent(PointRenderEventArgs args) 
    { 
        if (Convert.ToInt32(args.Point.Y) == 100) 
        { 
            args.Fill = "lightGrey"; 
        } 
    } 
 
// add your additional code here 
 
 
Screenshot: 
 
 
Let us know if you have any concerns. 
 
Regards, 
Srihari M 



VO Volker June 22, 2021 02:38 PM UTC

cool solution

Thank you Srihari


Greetings from sunny Graz/Austria,
Volker



SM Srihari Muthukaruppan Syncfusion Team June 23, 2021 05:24 AM UTC

Hi Volker, 
 
Most welcome. 
 
Kindly get in touch with us, if you requires further assistance. We are always happy in assisting you.   
   
Thanks,   
Srihari 


Loader.
Up arrow icon