Search found 10 matches

by fnn
Wed Mar 08, 2006 7:56 am
Forum: VCL
Topic: Axis.LabelsOnAxis does nothing
Replies: 3
Views: 8277

LabelsOnAxis

I solve my problem by changing source code as below set FLabelsOnAxis=false Procedure InternalDrawLabel(var Value:Double; DecValue:Boolean); var tmp,s,e,h : Integer; Begin ..... h:=LabelHeight(Value)div 2; if StartPosition=0 then s:=0 else s:=h; if EndPosition=100 then e:=0 else e:=h; if FLabelsOnAx...
by fnn
Wed Mar 08, 2006 7:45 am
Forum: VCL
Topic: Axis.LabelsOnAxis does nothing
Replies: 3
Views: 8277

LabelsOnAxis

Firstly, StrToFloat(labeltext) is string. It should be a double value to compare with Chart1.Axes.Bottom.Minimum. Secondly, For Chart1.Axes.Bottom.Minimum, setting labeltext= '' has a potential problem. Axis.MaxLabelWidth property uses mininum value. So, Axis.MaxLabelWidth may be zero or less than a...
by fnn
Tue Feb 28, 2006 8:42 am
Forum: VCL
Topic: Axis.LabelsOnAxis does nothing
Replies: 3
Views: 8277

Axis.LabelsOnAxis does nothing

Hello, Axis.LabelsOnAxis is only used in InternalDrawLabel LabelsOnAxis may be useful to not show labels out of Axis.MinimumOfset and Axis.MaximumOfset. Also all labels should be in Axis.IStartPos and Axis.EndPos Also Minimum Label rectangle should start Axis.EndPos to prove that multiple axis label...
by fnn
Tue Feb 28, 2006 8:02 am
Forum: VCL
Topic: Axis.CalcIncrement changes desired increment
Replies: 1
Views: 3739

Axis.CalcIncrement changes desired increment

Hello, I calculate Axis.Increment manually. But, in drawing labels Increment is calculated internally as IIncrement:=Axis.CalcIncrement; Also, Axis.CalcIncrement uses OnGetAxisLabel event to find maxlabelwidth. Since, I want do not want to show after minimun and maximum labels in OnGetAxisLabel. So,...
by fnn
Mon Feb 27, 2006 3:25 pm
Forum: Wishes and ideas
Topic: Labels on axis may start and end at a certain position
Replies: 4
Views: 12694

OnGetAxisLabel

Yes, I know. But I do not want to change Axis bounds. Also, Axis.StartPosition and Axis.EndPosition are in percent not in pixels. I use Axis.MinimumOfset and Axis.MaximumOfset. But axis labels appear out of ofset range. in OnGetAxisLabel //I need a double value, but labeltext is string I try to set ...
by fnn
Thu Feb 23, 2006 4:08 pm
Forum: Wishes and ideas
Topic: Labels on axis may start and end at a certain position
Replies: 4
Views: 12694

Labels on axis may start and end at a certain position

I have a candle series and a volume series.
Candle series vertical axis startposition 0 and endposition 80
Volume series vertical axis startposition 80 and endposition 100.
And there is a seperator between them.
Mininum label value of candle and maximum label value of volume
sometimes overlaps.
by fnn
Thu Feb 23, 2006 11:08 am
Forum: VCL
Topic: Logarithmic Axis labels overlaps
Replies: 3
Views: 5636

Logarithmic Labels overlaps

Problem occurs in TChartAxis.CalcLabelsIncrement if LabelsSeparation>0 then Repeat tmp:=IRange/result; if Abs(tmp)<MaxLongint then begin { TempNumLabels:=Round(tmp); if TempNumLabels>MaxNumLabels then if Logarithmic then result:=result*LogarithmicBase else result:=TeeNextStep(result); } TempNumLabel...
by fnn
Thu Feb 23, 2006 7:57 am
Forum: VCL
Topic: Logarithmic Axis labels overlaps
Replies: 3
Views: 5636

Logarithmic Axis labels overlaps

Fill a candle series as below:

var
i:integer;
h,cl,open,low:double;
begin

for i:=0 to 600 do
begin
low:=1+i/100;
open:=low+0.2;
cl:=low+0.4;
h:=cl+0.2;
series1.AddCandle(date+i,open,h,low,cl);
end;

LeftAxis.Logarithmic is true;
Also min and max is auto.
by fnn
Mon Feb 06, 2006 12:49 pm
Forum: VCL
Topic: Logarithmic, TeeMsg_AxisLogNotPositive and AdjustMaxMin
Replies: 1
Views: 3685

Logarithmic, TeeMsg_AxisLogNotPositive and AdjustMaxMin

Hello İf AChartAxis.Minimum or AChartAxis.Maximum is already negative (not Automatic). setting AChartAxis.Logarithmic:=true; raises TeeMsg_AxisLogNotPositive exception. In procedure: Procedure TChartAxis.SetLogarithmic(Value:Boolean); Begin if Value and IsDateTime then Raise AxisException.Create(Tee...
by fnn
Mon Feb 06, 2006 12:48 pm
Forum: VCL
Topic: TeeChartEditor series designer problem at runtime
Replies: 1
Views: 3773

TeeChartEditor series designer problem at runtime

Hello
I have a candle series.
I put a ChartEditor and a chart with a candle series.
But, series tab is not a candle series tab page as in ide. It is default
series tab page
The problem is true for other serie.