Maximum for X and Y Axis.

Hi,

These are probably stupid questions but how can I set the following:
  • The maximum value for the Y axis.  How can I set the maximum value shown to 100 even if the values never reach it?  At the moment this changes based on the value of the data, but I want it to always show 100 (the values will never exceed that).
  • The number of values displayed in the X axis.  Is there a way to set how
    many values can appear along the X axis?  At the moment it's defaulting
    to 10.

Thanks.

= Steve

Hi,


Here is a sample of a chart created programmatically showing the 0-100 range on the Y-Axis and changing the units at X-Axis level.



var
  c: TTMSFNCChart;
begin
  c := TTMSFNCChart.Create(Self);
  c.Parent := Self;
  c.InitSample;
  c.Series[2].Free;
  c.Series[1].Free;


  c.Series[0].AutoYRange := arDisabled;
  c.Series[0].MaxY := 100;
  c.Series[0].MaxYOffsetPercentage := 0;


  c.Series[0].XValues.MajorUnit := 20;

Thank you Pieter.  It's very much appreciated.

= Steve