How can I add a point to a serie when I click on the chart?

Hello,

Using the current version of Syncfusion (V22.1.37) for Blazor WASM I'm trying to add a point to a column chart by clicking on a concrete point in the chart.

So far all I get is the X and Y coordinate where the user clicks on the chart with this code:

public void OnPointClick(ChartMouseEventArgs args)
{
        ChartDataPointInfo pointInfo = new ChartDataPointInfo();
        pointInfo.X = args.MouseX;
        pointInfo.Y = args.MouseY;
}

But is there a simpler way to add a point to a serie just by clicking in the chart? Do I have to "translate" this coordinates to the corresponding values of the serie?

Thank you for your help.


1 Reply

GV Gopalakrishnan Veeraraghavan Syncfusion Team July 13, 2023 02:54 PM UTC

Hi Daniel,


We have analyzed your query and determined that currently, we do not have support for dynamically adding points to the series when clicking on the chart, but we have logged a feature request on this. we consider this as an improvement as of now and this will be available in our any of the upcoming release. It can be tracked through our feedback portal below.


Feedback Link: Need to add support for dynamically adding points to the chart series when clicking on the chart in Blazor | Feedback Portal (syncfusion.com)


Please cast your vote to make it count. We will prioritize the features of every release based on the demands.


If you have any more specification/suggestions to the feature request, you can add it as a comment in the portal.


Regards,

Gopalakrishnan Veeraraghavan


Loader.
Up arrow icon