Articles in this section
Category / Section

How can I get a data point value from the chart series?

1 min read

You can get the information related to a point in series when you move mouse over the point or by clicking the point using OnClientPointRegionMouseMove or OnClientPointRegionClick event.

Point region mouse move

OnClientPointRegionMouseMove event is triggered when moving mouse over a point.

Point region click

OnClientPointRegionClick event is triggered on clicking a point.

ASP

         <ej:Chart ID="container" OnClientPointRegionClick="mousemove" OnClientPointRegionMouseMove="mousemove" runat="server">        
    </ej:Chart>
    <script type="text/javascript">
        //Event handler for mouse move and mouse click events
        function mousemove(sender) {
            series = sender.model.series[sender.data.region.SeriesIndex];
            var X = series.points[sender.data.region.Region.PointIndex].x;
            var Y = series.points[sender.data.region.Region.PointIndex].y;
            alert("X:" + X + "  Y:" + Y);
        }
    </script>

Data point value from the chart series

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied