Chart Grid--show only specific lines/values

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
TestAlways
Advanced
Posts: 228
Joined: Tue Aug 28, 2007 12:00 am
Location: Oregon, USA

Chart Grid--show only specific lines/values

Post by TestAlways » Mon Apr 21, 2014 5:59 pm

In a chart grid, I would like to only show lines for specific values. For example, in the image below:

Image

If I only wanted to show line and values for 15 and 25 for the left axis (the lower bounds of the two series) and 10 and 30 for the bottom axis, could I do that?

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Chart Grid--show only specific lines/values

Post by Yeray » Tue Apr 22, 2014 9:33 am

Hello,

You can use custom labels for that. Ie:

Code: Select all

  with Chart1.Axes.Left do
  begin
    Items.Clear;
    Items.Add(15, '15');
    Items.Add(25, '25');
  end;

  with Chart1.Axes.Bottom do
  begin
    Items.Clear;
    Items.Add(10, '10');
    Items.Add(30, '30');
  end;
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply