IW

TMS IntraWeb Charts

Fast multipane financial graphs & 2D feature rich charting

Also available for:



Tips and Frequently Asked Questions

 Add custom X-axis text programmatically


With the latest version of the TAdvChartView component it is possible to add custom X-Axis text by a new override of the AddSinglePoint method that has a parameter XAxisText.
The sample code snippet here shows how to add a custom numbering as X-axis label text rotated by 40°.
procedure TForm.FormCreate(Sender: TObject);
var
  i: integer;
  xval: Double;
begin
  with AdvChartView1.Panes[0] do
  begin
    //Set range
    Range.RangeFrom := 0;
    Range.RangeTo := 100;
    Range.MaximumScrollRange := 100;
    Range.MinimumScrollRange := 0;
    //Set X-Axis size
    XAxis.Size := 60;
    //Add points with custom X-Axis text
    with Series[0] do
    begin
      ChartType := ctBar;
      AutoRange := arEnabledZeroBased;
      Color := clBlue;
      ColorTo := clSilver;
      for I := 0 to 100 do
      begin
        xval := 144 + (I * 0.2);
        AddSinglePoint(RandomRange(20, 100),  FloatToStr(xval));
      end;

      //Rotate text
      XAxis.TextBottom.Angle := 40;
      //Enabled tickmarks
      XAxis.TickMarkColor := clBlack;
    end;
  end;


IW

Single developer license


license for 1 developer
€ 70 yearly renewal *
€ 125


order now
add to cart

Small team license


license for 2 developers
€ 115 yearly renewal *
€ 195


order now
add to cart

Site license


unlimited developers in the company
€ 295 yearly renewal *
€ 495


order now
add to cart

CreditCards and PayPal Accepted


Compatibility

    Delphi 7, 2007, 2010, 2009, XE, XE2, XE3, XE4, XE5, XE6, XE7, XE8, 10 Seattle, 10.1 Berlin, 10.2 Tokyo, 10.3 Rio, 10.4 Sydney, 11 Alexandria, C++Builder 2007, 2009, 2010, XE, XE2, XE3, XE4, XE5, XE6, XE7, XE8, 10 Seattle, 10.1 Berlin, 10.2 Tokyo, 10.3 Rio, 10.4 Sydney, 11 Alexandria, DXE15, CXE15 (Professional/Enterprise/Architect)


Licensing

Bookmarks