Thanks and regards
Errol
Code: Select all
procedure TPBQuickGraph.AddMultipleGeologicalSeries(AFldCode, AFld: string);
var
h: integer;
begin
SetLength(aXPos,MultiGraphList.Count);
with IntervalQueryCollection do
begin
// do all the once-only settings outside mutligraph loop - EBA 20160117
SetupBarChart(aFldCode,aFld,MultiGraphList.Count);
for h:=0 to MultiGraphList.Count-1 do
begin
InsertGeologicalSeries(aFldCode,aFld,h,TDataSet(MultiGraphList.Objects[h]));
BarXPos := TUnitBarSeries(IntervalQueryCollection.SeriesListB.Objects[h]).CalcXPos(0);
Chart.Tools.Add(TAnnotationTool.Create(self));
with (Chart.Tools[h + ToolCount] as TAnnotationTool) do
begin
Shape.CustomPosition := True;
Shape.Pen.Color := clWhite;
Shape.Transparent := True;
Shape.Font.Size := 10;
Shape.Font.Style := Shape.Font.Style + [fsBold];
Text := WellName;
PositionUnits := muPixels;
Left := BarXPos;
end;
aXPos[h] := BarXPos;
end;