mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-11 10:35:58 +02:00
TAChart: Add cuAxis element to TChartUnits type. Update axis demo.
git-svn-id: trunk@38324 -
This commit is contained in:
parent
7f85da95f6
commit
17acb22f33
@ -404,9 +404,9 @@ object Form1: TForm1
|
||||
end
|
||||
object lblPositionX: TLabel
|
||||
Left = 6
|
||||
Height = 14
|
||||
Height = 13
|
||||
Top = 5
|
||||
Width = 42
|
||||
Width = 41
|
||||
Caption = 'Position:'
|
||||
ParentColor = False
|
||||
end
|
||||
@ -440,9 +440,9 @@ object Form1: TForm1
|
||||
end
|
||||
object lblUnitsX: TLabel
|
||||
Left = 6
|
||||
Height = 14
|
||||
Height = 13
|
||||
Top = 33
|
||||
Width = 29
|
||||
Width = 28
|
||||
Caption = 'Units:'
|
||||
ParentColor = False
|
||||
end
|
||||
@ -455,6 +455,7 @@ object Form1: TForm1
|
||||
ItemIndex = 0
|
||||
Items.Strings = (
|
||||
'percent'
|
||||
'axis'
|
||||
'graph'
|
||||
'pixel'
|
||||
)
|
||||
@ -476,9 +477,9 @@ object Form1: TForm1
|
||||
TabOrder = 1
|
||||
object lblPositionY: TLabel
|
||||
Left = 6
|
||||
Height = 14
|
||||
Height = 13
|
||||
Top = 4
|
||||
Width = 42
|
||||
Width = 41
|
||||
Caption = 'Position:'
|
||||
ParentColor = False
|
||||
end
|
||||
@ -538,9 +539,9 @@ object Form1: TForm1
|
||||
end
|
||||
object lblUnitsY: TLabel
|
||||
Left = 6
|
||||
Height = 14
|
||||
Height = 13
|
||||
Top = 33
|
||||
Width = 29
|
||||
Width = 28
|
||||
Caption = 'Units:'
|
||||
ParentColor = False
|
||||
end
|
||||
|
@ -728,7 +728,8 @@ begin
|
||||
r[Alignment],
|
||||
r[TChartAxisAlignment((Ord(Alignment) + 2) mod 4)],
|
||||
Position * PERCENT));
|
||||
cuGraph:
|
||||
// TODO: Add OrthogonalAxis property to support cuAxis position.
|
||||
cuAxis, cuGraph:
|
||||
if IsVertical then
|
||||
Result := FHelper.FTransf.XGraphToImage(Position)
|
||||
else
|
||||
|
@ -67,7 +67,7 @@ type
|
||||
|
||||
TTransformFunc = function (A: Double): Double of object;
|
||||
|
||||
TChartUnits = (cuPercent, cuGraph, cuPixel);
|
||||
TChartUnits = (cuPercent, cuAxis, cuGraph, cuPixel);
|
||||
|
||||
TSeriesMarksStyle = (
|
||||
smsCustom, { user-defined }
|
||||
|
Loading…
Reference in New Issue
Block a user