vcl-dxchartsimplediagram-dot-tdxchartsimpleseriestotallabel.md
Specifies a formatting pattern for the total label.
property TextFormat: TdxChartTextFormat read; write;
| Type | Description |
|---|---|
| TdxChartTextFormat |
The total label formatting pattern.
|
Use the TextFormat property to define a custom formatting pattern for the total label. A formatting pattern can consist of static content and one or more placeholder fields. A placeholder field is an expression enclosed in curly brackets that starts with a supported placeholder variable followed by a colon and a value formatting expression.
The following expression displays a total series value followed by a measurement unit: Total {TV:#,###.00}M sq.km.
{V} | {TV}A total value in a simple series.{S}A series caption.
Tip
The Chart control supports all Spreadsheet-compatible formats.
The total label displays the following string if the formatting pattern contains an unsupported placeholder field: 'Variable "" not found!'.
The TextFormat property’s default value is an empty string.
The default TextFormat property value indicates that the total label displays the string 'Total: ' followed by a series total value without additional formatting:
The default total label formatting corresponds to the following formatting pattern: 'Total: {TV}'.
The default TextFormat property value indicates that the total label displays the string 'Total: ' followed by a series total value label without additional formatting. The total value label is on the second line within the label:
The default formatting of a total label centered in a Doughnut Series corresponds to the following formatting patterns: 'Total:#13#10{TV}' (in Delphi) and "Total:\n{TV}" (in C++Builder).
See Also
TdxChartCustomLabels.TextFormat Property
TdxChartSeriesToolTipOptions.PointToolTipFormat Property
TdxChartSeriesToolTipOptions.SeriesToolTipFormat Property
TdxChartSimpleDiagram.OnGetTotalLabelDrawParameters Event
TdxChartSimpleSeriesTotalLabel Class