Hello,
I have a chart with a ColorGrid series and I would like to display a vertical line series (red line) on top of this ColorGrid.
The Left axis is actually the same axis for both series (Scan Number) the top axis should display the X values of the line series (Measured Voltage V)
Whats the best way to achieve that ?
Thanks and best regards
How to best create this kind of chart
Re: How to best create this kind of chart
Hello,
The easiest way is probably yo assign the Top axis to the THorizLineSeries and set that axis to limit the length of that axis. Here I'm setting it to end at the 20% of the chart width:
The easiest way is probably yo assign the Top axis to the THorizLineSeries and set that axis to limit the length of that axis. Here I'm setting it to end at the 20% of the chart width:
Code: Select all
uses TeeSurfa, Series;
var colorGrid1: TColorGridSeries;
horizLine1: THorizLineSeries;
procedure TForm1.FormCreate(Sender: TObject);
begin
Chart1.View3D:=False;
Chart1.Legend.Hide;
colorGrid1:=Chart1.AddSeries(TColorGridSeries) as TColorGridSeries;
horizLine1:=Chart1.AddSeries(THorizLineSeries) as THorizLineSeries;
colorGrid1.FillSampleValues;
horizLine1.FillSampleValues;
horizLine1.HorizAxis:=aTopAxis;
Chart1.Axes.Top.EndPosition:=20;
end;
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: How to best create this kind of chart
Hello Yeray,
Thank You, that looks exactly like what I need.
Thank You, that looks exactly like what I need.
Re: How to best create this kind of chart
Hello Yeray,
I got it right for the TColorGridSeries series now :
How to get it right for a similar TSurfaceSeries:
I somehow can't see how to get the axis right....
Thanks in advance!
I got it right for the TColorGridSeries series now :
How to get it right for a similar TSurfaceSeries:
I somehow can't see how to get the axis right....
Thanks in advance!
Re: How to best create this kind of chart
Hello,
Great!X-ray wrote:I got it right for the TColorGridSeries series now :
I'm not sure to understand what would you exactly like it to get.X-ray wrote:How to get it right for a similar TSurfaceSeries:
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: How to best create this kind of chart
Hello Yeray,
I want to achieve that:
The line can be drawn at any height of the {Counts} axis.
[Scan Number] should be the common axis again.
Thanks and best regards
I want to achieve that:
The line can be drawn at any height of the {Counts} axis.
[Scan Number] should be the common axis again.
Thanks and best regards
Re: How to best create this kind of chart
Hello,
For this kind of chart I would use a TPoint3DSeries with hidden Pointer. Ie:
For this kind of chart I would use a TPoint3DSeries with hidden Pointer. Ie:
Code: Select all
var surface1: TSurfaceSeries;
points1: TPoint3DSeries;
procedure TForm1.FormCreate(Sender: TObject);
var i: Integer;
begin
Chart1.Legend.Hide;
Chart1.Aspect.Orthogonal:=False;
Chart1.Chart3DPercent:=100;
Chart1.Aspect.Zoom:=60;
Chart1.Axes.Left.SetMinMax(0,10);
Chart1.Axes.Left.LabelsFont.Size:=20;
Chart1.Axes.Bottom.LabelsFont.Size:=20;
Chart1.Axes.Top.LabelsFont.Size:=20;
Chart1.Axes.Depth.LabelsFont.Size:=20;
Chart1.Axes.Depth.Visible:=True;
Chart1.Axes.Bottom.Increment:=1;
Chart1.Axes.Depth.Increment:=1;
Chart1.Axes.Left.Texts.MarginToAxis:=100;
Chart1.Axes.Top.Texts.MarginToAxis:=100;
surface1:=Chart1.AddSeries(TSurfaceSeries) as TSurfaceSeries;
surface1.FillSampleValues();
points1:=Chart1.AddSeries(TPoint3DSeries) as TPoint3DSeries;
points1.Pointer.Hide;
points1.HorizAxis:=aTopAxis;
Chart1.Axes.Top.EndPosition:=50;
for i:=1 to 9 do
points1.AddXYZ(i, i, random*i);
end;
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: How to best create this kind of chart
Perfect, Thank You !