Skip to content

Category Property

Description

Used to specify how to format the value (Number, Currency, Percent, Scientific, etc.).

Property Type

Read-write property

Syntax (Visual Basic)

Public Property Category() As [ChartNumberFormatCategory](XtremeChartControl~Enumerations~ChartNumberFormatCategory_EN.md)

Return Type

Returns a value from the ChartNumberFormatCategory enumeration that specifies how to format the value.

Remarks

Category is used to tell the chart how to handle the formatting of the value. The category must be specified so the correct formatting is applied to the value. The number value can be handled as:

  • General (i.e., no special formatting, just like a string)
  • Number (uses decimal places and thousands separators)
  • Currency (displays a currency symbol and uses thousands separators and decimal places)
  • Percentage (displays a percent symbol and decimal places)
  • Scientific (displays data in scientific notation)

Each category will treat the data value differently. You can also use Currency Symbol, Decimal Places, and Use Thousands Separator to further customize how these properties will be displayed.

An example can be seen here.

See Also

ChartNumberFormat Object


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.