Articles in this section

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

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)
Access denied
Access denied