Jump to content
Software FX Community

Axis style question


User (Legacy)
 Share

Recommended Posts

Hi,

I was just wondering what I need to set in the axis style to prevent the

zero line. By this I mean that I want to have my charts behave the same way

as if you deselected the ZERO LINE check box in the Y AXIS properties

dialog.

The reason i want to do this is because of the fact that I am trying to

display a sinus wave using chartfx, but the Y axis is not showing the min

and max values for the chart...or at least the max value.

Ex.

I want to show a sin wave with amplitude of 3

for( i = 0; i < 10 ; i++)

add yvalue for ( 3 *sin(i) ) to chartfx

When the chart displays it shows -3.00 as min y tickmark, but only 2.80 as

the max tickmark. How do i make it show [-3,3] for min/max values of the

chart?

-Mac Dyer

Link to comment
Share on other sites

Maybe because you are not reaching 3, you can change the Min and Max

manually after setting the data to round it using your own criteria, for

example you can force them to be -3 and 3.

The Zero-Line flag can be turned of by doing:

ChartFX1.Axis(AXIS_Y).Style = ChartFX1.Axis(AXIS_Y).Style And Not

AS_BREAKZERO

But this will not help your case.

--

FP

Software FX, Inc.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...