Hide Comments
Hide Comments

Comments (0)

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.

alert_noteTip

To change the font color in FMX, set the FontFill property

Namespace: FMX.RS.ChartPanel

expandingSyntax

Delphi

public
  property Font: TFont read FFont write SetFont;
 

Property Value

Type: TFont

expandingExamples

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;

expandingSee Also

Comments (0)

RiverSoftAVG Charting Component Suite (RCCS) © 2005-2015, Thomas G. Grubb