.. highlightlang:: us .. index:: LayerSetPolarConfig .. _layersetpolarconfig: LayerSetPolarConfig =================== .. us.tag LayerSetPolarConfig ENGLISH LayerPolar New500 :ref:`LayerSetPolarConfig` set the polar diagram configuration. .. function:: bool = LayerSetPolarConfig(hLayer, rvConfig) .. us.return **Return Value** If the function succeeds, the return value is TRUE (1); otherwise it is FALSE (0). .. us.params **Parameters** .. uparam:: hLayer Identifies the layer. .. uparam:: rvConfig *rvConfig* is a real vector with six elements: .. list-table:: :header-rows: 1 * - Value - Meaning * - rvConfig[1] - nAttrib: OR-Combination of display attributes, see next table. * - rvConfig[2] - nDrawToCenterFreq * - rvConfig[3] - nDrawToCenterOffsetMajor * - rvConfig[4] - nDrawToCenterOffsetMinor * - rvConfig[5] - wMinRadius: Inside radius in centimeters. * - rvConfig[6] - dAngleOffset: Angle offset against 0 degrees at 3 o'clock. .. uparam:: nAttrib *nAttrib* is an OR combination of the following values: .. list-table:: :header-rows: 1 * - Value - Meaning * - POLAR_RAD_LABEL_OPAQUE (1) - Draw radius label opaque. * - POLAR_ANGLE_LABEL_OPAQUE (2) - Draw angle label opaque. * - POLAR_ANGLE_LABEL_GRADIENT (4) - Draw angle label in the spoke angle. * - POLAR_CLOCKWISE (8) - Angle clock wise (default is counter clock wise). .. us.example **Example** To set only one element:: rvConfig = LayerGetPolarConfig(hLayer); rvConfig[6] = -90.0; LayerSetPolarConfig(hLayer, rvConfig); or :: rvConfig = LayerGetPolarConfig(hLayer); rvConfig[1] = rvConfig[1] | POLAR_CLOCKWISE | POLAR_ANGLE_LABEL_GRADIENT; LayerSetPolarConfig(hLayer, rvConfig); To set all elements:: rvConfig = [POLAR_CLOCKWISE | POLAR_ANGLE_LABEL_GRADIENT, 1, 2, 3, 1.0, -90] LayerSetPolarConfig(hLayer, rvConfig); .. us.history **History** .. list-table:: :header-rows: 1 * - Version - Description * - 5.0.0 - New .. seealso:: :ref:`overview-diagrams`, :ref:`diagramlayoutpolar`, :ref:`LayerCreate`, :ref:`LayerGetPolarConfig`, :ref:`LayerSetDiagramType` :sub:`id-244918`