Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Chart Control
  New Posts New Posts RSS Feed - How to set Scale value for Axis-Y
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to set Scale value for Axis-Y

 Post Reply Post Reply
Author
Message
wsun View Drop Down
Groupie
Groupie


Joined: 11 January 2012
Status: Offline
Points: 22
Post Options Post Options   Thanks (0) Thanks(0)   Quote wsun Quote  Post ReplyReply Direct Link To This Post Topic: How to set Scale value for Axis-Y
    Posted: 16 January 2012 at 5:17am
Hi,
Can anyone help me how to set Scale value for Axis-Y?

Thanks for help.


For the Bar below:
The Axis-Y value start from -1. How to set the value start with zero?


Thank for help.
Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 16 January 2012 at 9:50am
You can manually set range like this:

    Dim Diagram As ChartDiagram2D
    Set Diagram = New ChartDiagram2D
    ChartControl.Content.Diagrams.Add Diagram
    
    Diagram.AxisY.Range.AutoRange = False
    Diagram.AxisY.Range.MinValue = 0
    Diagram.AxisY.Range.MaxValue = 10
    
    Diagram.AxisX.Range.AutoRange = False
    Diagram.AxisX.Range.MinValue = 0
    Diagram.AxisX.Range.MaxValue = 10
Back to Top
wsun View Drop Down
Groupie
Groupie


Joined: 11 January 2012
Status: Offline
Points: 22
Post Options Post Options   Thanks (0) Thanks(0)   Quote wsun Quote  Post ReplyReply Direct Link To This Post Posted: 16 January 2012 at 10:33pm
It is work,thanks :)
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.141 seconds.