I have uploaded your code in a sample project by using version 5.02 with filename 'AchatSolutions_LineNotCentered_Sample.zip'.
I haven't found this project. Where did you send it?
Thanks in advance.
I have uploaded your code in a sample project by using version 5.02 with filename 'AchatSolutions_LineNotCentered_Sample.zip'.
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
So i have tried to write your sample code in my application..Received AchatSolutions_LineNotCentered_Sample.rar Content Type application/octet-stream Length 243664
Code: Select all
lPosValue := Chart.Series[lSeriesIx].CalcXPos(aLineIx);
lXValue := Chart.BottomAxis.CalcPosPoint(lPosValue);
Code: Select all
lPosValue := aMasterSeries.Marks.Positions.Position[0].ArrowFrom.X;
Code: Select all
Chart.BottomAxis.CalcPosPoint(lPosValue)
Code: Select all
procedure TForm1.Chart1AfterDraw(Sender: TObject);
const aboveValue = 100;
var i:integer;
BarWidth: double;
begin
BarWidth := Chart1.BottomAxis.CalcPosPoint(Series1.BarBounds.Right) -
Chart1.BottomAxis.CalcPosPoint(Series1.BarBounds.Left);
Series6.clear;
for i:= 0 to numpoints-1 do
begin
Series6.AddXY(i+1-(BarWidth*2), Series1.YValue[i]+aboveValue);
Series6.AddXY(i+1-BarWidth, Series2.YValue[i]+aboveValue);
Series6.AddXY(i+1, Series3.YValue[i]+aboveValue);
Series6.AddXY(i+1+BarWidth, Series4.YValue[i]+aboveValue);
Series6.AddXY(i+1+(BarWidth*2), Series5.YValue[i]+aboveValue);
Series6.AddNullXY(i+1+(BarWidth*3), aboveValue ,'');
end;
end;
procedure TForm1.Chart1Zoom(Sender: TObject);
begin
Chart1.Refresh;
end;
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |