TiPlotAxis.LegendFormatStyle

TiPlotAxis

Used to set the formatting style of Legend X and Y-Value Channel Data.

type TiPlotTextFormat = (iptfValue, iptfExponent, iptfPrefix, iptfDateTime, iptfPrice32nds);

property LegendFormatStyle : TiPlotTextFormat

Description

Use LegendFormatStyle to get or set the formatting style of Legend X and Y-Value Channel Data.

Note: this property only has effect if LegendUseDefaultFormat is set to FALSE. If LegendUseDefaultFormat is set to TRUE, then the Axis LabelsFormatStyle will override this property.

If this is an X-Axis, then this property will only affect Channel X-Values displayed in the Legend. If this is an Y-Axis, then only Y-Values will be affected.

Value
Meaning
iptfValue
Simple Value (ex. 198678.567
iptfExponent
Exponential (ex. 2.35E+002).
iptfPrefix
Prefix (ex. 2.2K).
iptfDateTime
Date/Time (ex. 3 Jan 01 5:23:44)
iptfPrice32nds
Ex. 100.231
This format is used in the Bond and Securities Market. Displayed where 23 is in 32nds and 1 is in 256ths. So in decimal the price above is: 100 +23/32 + 1/256. Pass the actual double value of 100.72265625 to display it as Price32nds format as 100.231..

Example

Delphi

iComponent.XAxis[0].LegendFormatStyle := iptfExponent;

iComponent.YAxis[0].LegendFormatStyle := iptfExponent;

C++ Builder

iComponent->XAxis[0]->LegendFormatStyle = iptfExponent;

iComponent->YAxis[0]->LegendFormatStyle = iptfExponent;

Contents | Index | Previous | Next