diff --git a/.gitattributes b/.gitattributes index cd94cd33e3..c143dc5ab3 100644 --- a/.gitattributes +++ b/.gitattributes @@ -2076,6 +2076,9 @@ components/tachart/demo/save/main.lrs svneol=native#text/pascal components/tachart/demo/save/main.pas svneol=native#text/plain components/tachart/demo/save/savedemo.lpi svneol=native#text/plain components/tachart/demo/save/savedemo.lpr svneol=native#text/plain +components/tachart/fpdoc/tagraph.xml svneol=native#text/plain +components/tachart/fpdoc/taseries.xml svneol=native#text/plain +components/tachart/fpdoc/tatypes.xml svneol=native#text/plain components/tachart/tachartlazaruspkg.lpk svneol=native#text/plain components/tachart/tachartlazaruspkg.pas svneol=native#text/plain components/tachart/tachartutils.pas svneol=native#text/plain diff --git a/components/tachart/fpdoc/tagraph.xml b/components/tachart/fpdoc/tagraph.xml new file mode 100644 index 0000000000..876505b388 --- /dev/null +++ b/components/tachart/fpdoc/tagraph.xml @@ -0,0 +1,136 @@ + + + + + + Chart title. + + + The mode of reticule drawing. + + TChart.ReticuleMode + + + + Do not draw reticule. + + + Draw reticule as a vertical line. Find nearest point by X coordinate. + + + Draw reticule as a horizontal line. Find nearest point by Y coordinate. + + + Draw reticule as both vertical and horizontal line. Find nearest point by distanse. + + + Reticule drawing mode. + +

Reticule is a line highlighting graph point nearest to the mouse cursor.

+

For reticule to be visible, the chart needs to:

+

1. Have ReticuleMode to value other that rmNone;

+

2. Have at least one series implementing GetNearestPoint interface +(by default it is implemented by line, bar and area series);

+

3. Have UseReticule +property of that series set to true.

+
+
+ + If true, user can zoom chart with the mouse. + Allow user to zoom chart by drawing new zoom rectangle with the mouse while holding left mouse button. + + + Main charting component. + + + Color of back plane of the chart. + Note that BackColor is different form the Color property +which is used to paint the background of all TChart, including legend, axises and title. + + Color + + + + The length of Z axis in 3D mode, in pixels. Zero value means 2D mode. + + + Default extent size is increased by this percent. May be negative. + +

To ensure full visualization of the extreme points of the chart, it is usually a good idea +to set the default zoom value so that the default extent is slightly greater +than the extent of chart data.

+

This can be done by either setting ExpandPercentage property, +which increases the extent value relatively, setting the extent +manually, or setting absolute margins.

+
+ + Extent + Margins + +
+ + The list of chart series. + To add or remove series at run-time, +use AddSeries and DeleteSeries methods. + + AddSeries + ClearSeries + DeleteSeries + + + + The number of chart series, including inactive ones. + + + Chart footer. + + + The pen to draw frame around the chart. + Set Frame.Visible to false to turn off frame drawing. + + + List of graph axises. + + + Bottom axis of the chart. + Retrieves first axis from the AxisList with +Alignment set to +calBottom. + + AxisList + TChartAxis.Alignment + + + + Left axis of the chart. + Retrieves first axis from the AxisList with +Alignment set to +calLeft. + + AxisList + TChartAxis.Alignment + + + + Chart legend. + + + Called each time the reticule is updated. + + + Margins around the chart sides in default extent, in pixels. + + BorderSpacing + ExpandPercentage + Extent + + Note that the margins set by this property have effect only on the default extent. +Use BorderSpacing property to set margins +independently of zoom level. + + + Manual overrides for the chart extent borders. + +
+
+
diff --git a/components/tachart/fpdoc/taseries.xml b/components/tachart/fpdoc/taseries.xml new file mode 100644 index 0000000000..ec7135773a --- /dev/null +++ b/components/tachart/fpdoc/taseries.xml @@ -0,0 +1,13 @@ + + + + + + Show reticule for points of this series + + TChart.ReticuleMode + + + + + diff --git a/components/tachart/fpdoc/tatypes.xml b/components/tachart/fpdoc/tatypes.xml new file mode 100644 index 0000000000..ba3b2856c8 --- /dev/null +++ b/components/tachart/fpdoc/tatypes.xml @@ -0,0 +1,6 @@ + + + + + +