Frequently Asked Component Specific Questions

Options

Display all FAQ items

Search FAQ items:


Displaying items 1 to 1 of 1, page 1 of 1

<< previous next >>

TMS VCL Chart
Using custom Y-Axis labels

it is possible to use custom Y-Axis labels by implementing the OnYAxisGetValue event:

AdvChartView1.Panes[0].Series[0].OnYAxisGetValue := YAxisGetVal;

procedure TForm1.YAxisGetVal(Sender: TObject; Serie: TChartSerie;
  Value: double; var AValue: string);
begin
  AValue := floattostr(Value - 15);
end;