.. highlightlang:: us .. index:: LayerSetDiagramType .. _layersetdiagramtype: LayerSetDiagramType =================== .. us.tag LayerSetDiagramType NOTREADYENGLISH LayerSet :ref:`LayerSetDiagramType` sets the diagram type. .. function:: bool = LayerSetDiagramType(hLayer, nType) .. us.return **Return Value** If the function succeeds, the return value is TRUE (1); otherwise it is FALSE (0). .. us.params **Parameters** .. uparam:: hLayer *hLayer* is the handle of a diagram (layer). .. uparam:: nType *nType* is one of the following values: .. list-table:: :header-rows: 1 * - Value - Meaning * - LAYERVIEW_3D - 3D Diagram (0) * - LAYERVIEW_2D - 2D Diagram (1) * - LAYERVIEW_WF - Waterfall Diagram (2) * - LAYERVIEW_POLAR - Polar Diagram (3) .. seealso:: :ref:`overview-diagrams`, :ref:`LayerGetDiagramType`, :ref:`LayerCreate` :sub:`id-1094594`