Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Bar Chart - FormatTick Event

Panel
bgColor#2c3c4c

Fires when the ticks are created to allow formatting of the tick values

Member of Bar Chart (PRIM_CHRT.BarChart)

Parameters

Name

Type

Data Type

Description

Label

*Both

Unicode String

Label that is displayed as the tick

Value

*Input

Decimal

value of the tick

Axis

*Input

Enumeration

Azis

Axis that is being formatted

Details

Fires when the ticks are created to allow formatting of the tick values.

Example

In this example shows changing the tick for the primary axis to show the values as a percent and the secondary axis as dollars.

     Evtroutine Handling(#Chart.FormatTick) Value(#Value) Label(#Label) Axis(#Axis) 

If (#Axis = 'PRIMARY')

#Label := #Value.AsString + '%'

Else

#Label := '$' + #Value.AsString

Endif

Endroutine

See also

All Component Classes

Technical Reference