Customizing Chart

Hi,
I need to produce a chart that looks like this:

The arrows indicate where I have problems. I can add annotations at the beginning and end of each line but these are horizontal and not angled to match the line.

Also the lines are carried through to the Y axis.

Is there any way this can be done?

Thanks,

Ken

Hi,

Well, you would need to have the angle in degrees at that specific point. Then you could draw the text at an angle via the FNC core graphics (TTMSFNCGraphics), inside the OnAfterDrawSerieLine

procedure TForm1.TMSFNCChart1AfterDrawSerieLine(Sender: TObject;
  AGraphics: TTMSFNCGraphics; ASerie: TTMSFNCChartSerie;
  ADrawLine: TTMSFNCChartDrawLine);
begin
  if Assigned(ADrawLine.StartReference) and (ADrawLine.StartReference.Index = 0) then
    AGraphics.DrawText(RectF(ADrawLine.StartPoint.X, ADrawLine.StartPoint.Y, ADrawLine.StartPoint.X + 40, ADrawLine.StartPoint.Y + 40), 'test', False, gtaCenter, gtaCenter, gttNone, -45);
end;

Thanks.