I have a scatter chart, which shows different points.

Suppose I want to shade a particular region in the chart, the region can be any shape that can be drawn over a chart, given in this pic-

The region can be any polygon with a given number of sides for eg- for a polygon with sides 5 I’ll be having an array with objects like- {x1: 3.2, y1: 0, x2: 7.8, y2: 3.9}, so there will be 5 lines like that for all sides. Can someone please let me know if its possible?