Print Page | Close Window

How to set Scale value for Axis-Y

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Chart Control
Forum Description: Topics Related to Codejock Chart Control
URL: http://forum.codejock.com/forum_posts.asp?TID=19412
Printed Date: 28 September 2024 at 6:18am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to set Scale value for Axis-Y
Posted By: wsun
Subject: How to set Scale value for Axis-Y
Date 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.



Replies:
Posted By: SuperMario
Date 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


Posted By: wsun
Date Posted: 16 January 2012 at 10:33pm
It is work,thanks :)



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net