Jump to content
Software FX Community

Axis style question

User (Legacy)

Recommended Posts


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


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.


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


-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


But this will not help your case.



Software FX, Inc.

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...