Hide Comments
Hide Comments

Comments (0)

Controls how the FMX.RS.Charts.TRSCustomLineChart component connects 2 points ( FMX.RS.Charts.TRS2DChartValue). Use the LineStyle property to change the connecting lines between the values.

Namespace: FMX.RS.Charts

expandingSyntax

Delphi

public
  property LineStyle: TLineChartStyle read FLineStyle write SetLineStyle default lsStraight;
 

Property Value

Type: TLineChartStyle

expandingExamples

The following code sets the line style connecting chart points and then adds 2 chart points:

Delphi

var
   Value: TRS2DChartValue;  // note, this type should be the same that the chart uses (e.g., TRS2DChartValue, TRSArrowChartValue, etc)
 begin
   RSLineChart1.LineStyle := lsStairStep;
   RSLineChart1.Enabled := [bcLine];
   // Add first point
   Value := RSLineChart1.Values.Add;
   Value.Color := clRed;
   Value.X := 10.0;
   Value.Y := 15.0;
   // Add second point
   Value := MyChart.Values.Add;
   Value.Color := clRed;
   Value.X := 20.0;
   Value.Y := 15.0; //  y  value is the same so this will be a horizontal line segment
 end;

expandingSee Also

Reference

RSChartConsts|TLineChartStyle

Comments (0)

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