nsascan.blogg.se

Tchart zoom delphi
Tchart zoom delphi





tchart zoom delphi

Procedure TForm1.BitBtn1Click(Sender: TObject) Procedure TForm1.FormCreate(Sender: TObject) The above 2 coded examples when combined with the following data:Īnother technique for adding Custom Axes would be the following which uses the Axis List as the focal point by using the List Add then by accessing the Axis by Index: These properties can be applied to the Standard Axes to create completely partitioned 'SubCharts' within the Chart. These figures are expressed as percentages of the Chart Rectangle with 0 (zero) (in the case of a vertical Axis) being Top. You are able to then position the new Axis in overall relation to the Chart by using the StartPosition and EndPosition properties. PositionPercent := 20 //percentage of Chart rectangle You can modify any property of the new created axes, such as the axis color or axis title Procedure TForm1.BitBtn2Click(Sender: TObject) To associate this new Custom Axis with the Data Series you desire select the Series tab and go to the General page where the dropdown Comboboxes 'Horizontal Axis' and 'Vertical Axis' will enable you to select your new Custom Axis depending on whether you previously defined it as vertical or horizontal. The rest of this page and the other tabs in the Axis page can be used to change the Scales, Increment, Titles, Labels, Ticks and Position of the Custom Axis as explained above. The Horizontal checkbox on this page allows you to define your new Custom Axis as an horizontal axis or to leave it as the default vertical axis. From the Chart tab select the Axis page and in this page select the Position tab making sure you have your new Custom Axis highlighted. Then right click over the Chart a second time and select Edit Chart. and click on the Add New (Ins) icon to add a new Custom Axis. To achieve this, right click over the Chart and select Custom Axes. TeeChart version 5 now offers you the ability to create custom axes at designtime enabling them to be saved in TeeChart's tee file format. Creating extra axes is now possible both at designtime via the Chart Editor and at runtime via a few lines of code: Scroll, zoom, and axis hit-detection also apply to custom-created axes. Together with the PositionPercent and stretching properties, it’s possible to have unlimited axes floating anywhere on the chart.







Tchart zoom delphi