Can I set the scale for axis

TeeChart for ActiveX, COM and ASP
Post Reply
CS
Newbie
Newbie
Posts: 22
Joined: Sat Jun 08, 2002 4:00 am

Can I set the scale for axis

Post by CS » Mon Jan 04, 2010 6:24 am

Can I set the scale for axis.
For eg:- If I say as
With .Axis.Left
.SetMinMax -105.22 , 130

Then the dll itself sets the scale as 20. Which makes my bubble size small as in the attached image. I want to set the Y axis to have a scale of 50. so that the values in y-axis will be some thing like -100,-50,0,50,100,150. How can I do this.

Thanks in advance
CS.
Attachments
SampleForSettingScales.JPG
SampleForSettingScales.JPG (33.66 KiB) Viewed 4030 times

Yeray
Site Admin
Site Admin
Posts: 9602
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Can I set the scale for axis

Post by Yeray » Mon Jan 04, 2010 9:33 am

Hi CS,

The following code seems to work fine for me here. Could you please modify it so that we can reproduce your problem here?

Code: Select all

Private Sub Form_Load()  
  TChart1.Aspect.View3D = False
  
  TChart1.AddSeries scBubble
  
  Dim i As Integer
  For i = 0 To 29
    TChart1.Series(0).asBubble.AddBubble (i * 5) + 50, 0, Rnd * 10, "", clTeeColor
  Next i
  
  With TChart1.Axis.Left
    .SetMinMax -105.22, 130
    .Increment = 50
  End With
End Sub
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply