Tips and Frequently Asked Questions

 Add custom X-axis values via an event


To override the standard X-axis values drawn by TAdvChartView an event OnXAxisDrawValue event is available for each serie. To add an event handler for OnXAxisDrawValue, declare a procedure and assign it to the serie.OnXAxisDrawValue event like in the code snippet below:
AdvChartView.Panes[0].Series[0].OnXAxisDrawValue := XAxisDrawValue;

procedure TForm.XAxisDrawValue(Sender: TObject; Serie: TChartSerie;
  Canvas: TCanvas; ARect: TRect; ValueIndex, XMarker: integer; Top: Boolean;
  var defaultdraw: Boolean);
begin
  //Insert Code here
end;
In this event, the Serie parameter returns the Serie for which the X-axis value needs to be drawn. Further, the Canvas and rectangle within this canvas where can be drawn is returned. ValueIndex returns the index of the value along the X-axis. Top indicates whether the X-axis is on top or below the chart. Finally, by setting the DefaultDraw parameter to false, the chart itself will no longer draw the X-axis value.
The technique illustrated with following sample. Some points were added in a serie and for each odd value on the X-Axis we want to display a Car brand in the X-axis:
procedure TForm.XAxisDrawValue(Sender: TObject; Serie: TChartSerie;
  Canvas: TCanvas; ARect: TRect; ValueIndex, XMarker: integer; Top: Boolean;
  var defaultdraw: Boolean);
  
const
  lst: array[0..4] of String = ('Audi', 'BMW', 'Mercedes', 'Bugatti', 'Porsche');
var
  s: String;
  th, tw: integer;
begin
  if Odd(ValueIndex) then
  begin
    Canvas.Font.Size := 12;
    s := lst[Random(Length(lst))];
    th := Canvas.TextHeight(s);
    tw := Canvas.TextWidth(s);
    Canvas.TextOut(Xmarker - (tw div 2), ARect.Top + th, s);
  end;
end;




Pricing

Single Developer License Small Team License Site License
 

TMS VCL Chart


€ 125

70 yearly renewal
license for 1 developer


Includes
check  Full source code
check  Access to the TMS Support Center
check  Free updates and new releases
MOST POPULAR

TMS Component Studio


€ 575

285 yearly renewal
license for 1 developer


Includes
check  Full source code
check  Access to the TMS Support Center
check  Free updates and new releases
check  TMS VCL Chart
check  All TMS VCL products
more_horiz  Discover more
BEST VALUE

TMS ALL-ACCESS


€ 1,795

575 yearly renewal
license for 1 developer


Includes
check  Full source code
check  Access to the TMS Support Center
check  Free updates and new releases
check  TMS VCL Chart
check  All TMS VCL products
check  All TMS products
more_horiz  Discover more
All prices excl. VAT. Renewal price is subject to change and only valid up to 30 days after license has expired. After renewal period a discount price is offered to renew the license.

TMS ALL-ACCESS

key
Get unlimited access to all TMS products
local_offer
One money and time saving bundle

Free Trial

Start a free TMS VCL Chart evaluation today!
RAD Studio

What our customers say

Finally, a chart control that hits the sweet spot! As a product, AdvChart has the right approach. It's still very simple to use, the price is perfect, the code is included and easy to modify to taste and things that would be hard to add later or by the user are already taken into account like multiple panes.

- Orlando Diaz

I have tried your new "TAdvGDIPChartView : GDI+ enabled multi-pane chart component" demo and I am extremely impressed. I develop applications using Borland Delphi 5 and for years now, the obvious choice for charting components has been TeeChart. Well not any more !!! I often find that charting components can be a bit clumsy and awkward to use, but your charting components' properties are extremely well laid out and easy to use. Also, when looking at the GDI plus demo, the quality of rendering and anti-aliasing is world-class. Other charting components out there advertise lovely, glossy and shiny charts on their web site, but when you run their demos it's a very different story indeed. They are often poorly rendered and produce dodgy anti-aliased drawings, they are over-priced, etc... So all in all, you certainly have the best charting component that I have ever came across - on the first release and for such a great price ! I was currently looking for a new charting component - well not any more ! I will be recommending that the company that I work for purchases your new charting component.

- Dave Scott

Another great TMSSoftware component! And very excellent support and help by the TMS software team.

- Marco Boglione

Thanks for a truly excellent IW component set, I am genuinely impressed. ... TMS Advanced Charts are just stunning !

- Pete Barrett via email

After using Tee Chart Pro and RiverCharts for many years it took me sometime to work through the differences with TMS Charts but - now I have worked through the learning curve the TMS Charts certainly deliver. Thanks for yet another great set of components.

- David Case

TMS WEB Core

language
Create modern web apps in Delphi & VSC
build_circle
Use Object Pascal code to build JavaScript apps