.. highlightlang:: us .. _xysetclosedpolygon: XYSetClosedPolygon ================== .. index:: XYSetClosedPolygon .. us.tag XYSetClosedPolygon ENGLISH XYSet :ref:`XYSetClosedPolygon` sets which part of the area under the curve will be closed and color filled. .. function:: bool = XYSetClosedPolygon(hData, bClosed) .. us.return **Return Value** If the function succeeds, the return value *bool* is TRUE (1); otherwise it is FALSE (0). .. us.params **Parameters** .. uparam:: hData The handle of a dataset created with :ref:`XYCreate` or :ref:`TYCreate`. .. uparam:: bClosed If *bClosed* is TRUE (1), the first data point will be joine to the last data point and the enclosed area will be color filled. If FALSE (0), the area between the curve and a ground line parallel to the x-axis will be color filled. The height of the ground line can be set with the function :ref:`XYSetDropValue`. .. seealso:: :ref:`overview-xy-datasets`, :ref:`XYIsPolygonClosed`, :ref:`XYSetDropValue`, :ref:`XYShowFill`, :ref:`XYSetFillColor` :sub:`id-1161248`