syncfusion ASP.NET Core Chart control Disable Click event

I am fetching my Monday to Friday Class data from WEB API and assign to VIEWBAG, which display in the syncfusion CHART. Now during run time when I click on the "Monday To Friday," it shows me the BLANK chart. I want to DISABLE THE CLICK on "Monday To Friday" TEXT in Graph.



<ejs-chart id="container" title="Daily Class Taken" width="60%">
        <e-chart-primaryxaxis valueType="ClassData"></e-chart-primaryxaxis>
        <e-series-collection>
            <e-series dataSource="ViewBag.dataSource" fill="#FFFF00" name="Monday - Sunday" xName="DateModified" width="2" opacity="1" yName="ViewDuration" type="@Syncfusion.EJ2.Charts.ChartSeriesType.Column">
            </e-series>
        </e-series-collection>
    </ejs-chart>





3 Replies

DG Durga Gopalakrishnan Syncfusion Team August 2, 2021 12:22 PM UTC

Hi Harshida, 

Greetings from Syncfusion. 

We suggest you to disable toggleVisibility for legend to achieve your required scenario. Please check with the below sample and snippet. 

<ejs-chart> 
    <e-chart-legendsettings toggleVisibility="false"></e-chart-legendsettings> 
</ejs-chart> 


Kindly revert us if you have any concerns. 

Regards, 
Durga G 



HP Harshida Parmar August 3, 2021 12:38 PM UTC

Hello

Durga 


Thank you very much for your reply.



DG Durga Gopalakrishnan Syncfusion Team August 4, 2021 10:57 AM UTC

Hi Harshida, 

Most welcome. Please get back to us if you need any further assistance. We are always happy in assisting you. 

Regards, 
Durga G

Loader.
Up arrow icon