PieChartThemeInfo() function - MapBasic - 2023

MapInfo MapBasic Reference

Product type
Software
Portfolio
Locate
Product family
MapInfo
Product
MapInfo > MapBasic
Version
2023
Language
English
Product name
MapBasic
Title
MapInfo MapBasic Reference
First publish date
1985
Last updated
2023-09-12
Published on
2023-09-12T16:32:32.686312

Purpose

Returns information about a specific pie chart thematic layer in a map. You can call this function from the MapBasic window in MapInfo Pro.

Syntax

PieChartThemeInfo ( map_window_id, thematic_layer_id, attribute )

map_window_id is a Map window identifier.

thematic_layer_id is a SmallInt that identifies a pie chart thematic layer in a Map.

attribute is a SmallInt code indicating the type of information to return; see table below.

Return Value

Depends on the attribute parameter.

Description

The attribute parameter can be any value from the table below.
Attribute code ID PieChartThemeInfo() returns
PIECHARTTHEME_INFO_GRADUATION 1 SmallInt result, representing how the differences in numerical values correspond to differences in pie diameter. Three methods are supported.

PIECHARTTHEME_INFO_GRAD_ROOT(0)

PIECHARTTHEME_INFO_GRAD_LOG(1)

PIECHARTTHEME_INFO_GRAD_LOG(2)

PIECHARTTHEME_INFO_ORIENTATION 2 SmallInt result, representing relative position of the pie chart to the centroid of each object geometry. Nine orientation values are possible.

PIECHARTTHEME_INFO_ORI_CC(0) Center Center.

PIECHARTTHEME_INFO_ORI_TL(1) Top Left.

PIECHARTTHEME_INFO_ORI_TC(2) Top Center.

PIECHARTTHEME_INFO_ORI_TR(3) Top Right.

PIECHARTTHEME_INFO_ORI_CL (4) Center Left.

PIECHARTTHEME_INFO_ORI_CR(5) Center Right.

PIECHARTTHEME_INFO_ORI_BL(6) Below Left.

PIECHARTTHEME_INFO_ORI_BC(7) Below Center.

PIECHARTTHEME_INFO_ORI_BR(8) Below Right.

PIECHARTTHEME_INFO_PEN 3 Pen clause for the pie chart border
PIECHARTTHEME_GRADUATED 4 Logical result (T or F) whether pie charts are graduated or not.
PIECHARTTHEME_HALF_PIE 5 Logical result (T or F) whether only half pie will be displayed or not (full pie).
PIECHARTTHEME_DIAMETER 6 Float result, representing numeric value that correspond to diameter of pie in paper unit.
PIECHARTTHEME_DIAMETER_UNIT 7 String result, representing the paper unit of the pie chart width.
PIECHARTTHEME_DIAMETER_VALUE 8 Float result, representing numeric value that correspond to the used pie chart diameter used in PIECHARTTHEME_DIAMETER
PIECHARTTHEME_START_ANGLE 9 Float result, representing numeric value that correspond to start angle of the pie in degree.
PIECHARTTHEME_CLOCKWISE 10 Logical result (T or F) whether the pie will be displayed clockwise or not from the start angle.

See Also:

PieChartThemeItemInfo() function