I am finding it difficult to create a line graph with nice smooth lines between points. For example, in the TChart below I consider the lines to be very "jagged":
(see it for real: http://www.maani.us/xml_charts/index.ph ... bmenu=Line )
I just can't seem to create charts which have nice smooth lines. It seems a lot of other graphic solutions are rendering charts with much greater eye appeal.
Below is a graph I found off another website:Lines are jagged
Re: Lines are jagged
Hi mSchenkel,
You could use AntiAlias to get nicer smoothed lines:
You could use AntiAlias to get nicer smoothed lines:
Code: Select all
uses Series, TeeAntialias, TeeThemes;
procedure TForm1.FormCreate(Sender: TObject);
var AntiAliasCanvas: TAntiAliasCanvas;
i: Integer;
begin
Chart1.View3D:=false;
AntiAliasCanvas:=TAntiAliasCanvas.Create;
Chart1.Canvas:=AntiAliasCanvas;
ApplyChartTheme(TBlackIsBackTheme, Chart1);
for i:=0 to 1 do
with Chart1.AddSeries(TFastLineSeries) as TFastLineSeries do
begin
Pen.Width:=2;
FillSampleValues;
end;
end;
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |