Specifies the font used to draw each value's Caption. Captions are drawn if coLabelEachPoint is in the Options property. Set Font to specify the font to use for writing text in the chart.
Tip
|
To change the font color in FMX, set the FontFill property
|
Namespace: FMX.RS.ChartPanel
Delphi
|
public
property Font: TFont read FFont write SetFont;
|
Property Value
Type: TFont
The following example modifies the appearance of an area chart.
Delphi
|
var
i: Integer;
begin
// Modify the brush and pen
RSAreaChart1.Brush.Style := csCross;
RSAreaChart1.Pen.Width := 2;
RSAreaChart1.Color := clRed;
// modify the font for the value's Captions
RSAreaChart1.Font.Style := [fsBold];
RSAreaChart1.Options := RSAreaChart1.Options - [coColorEachPoint]; // remove coColorEachPoint so we use the chart's color
// now let's change every chart value's caption to its index in the collection of chart values
for i := FirstIndex to LastIndex do
RSAreaChart1.Values[i].Caption := IntToStr(i);
end;
|
|