Jump to content
Software FX Community

Secondary Y Axis w/out another Series?


User (Legacy)
 Share

Recommended Posts

Environment: ChartFX client-server, VB6.

I have a line graph that displays daily weight change on the Y axis, and

time on the X axis. I would like to display a secondary Y axis showing

weekly weight change. But, I don't want to display a second data series in

the graph, because it's simply a different way of looking at the primary

series.

I've tried several ways to accomplish this, but so far no joy.

I tried simply adding Min/Max for the secondary Y axis, but nothing

displayed.

I tried adding another series with this data, but:

1) the second series shows up, which I do not want to happen. I tried

setting the second series to Visible=False, but then the secondary Y-axis

labels disappeared.

2) due to minor rounding issues, the secondary Y-axis is not properly

synched with the primary series (i.e., it's a little too high or too low

when compared to the primary Y axis).

Is there a better way to accomplish this?

BTW - kudos on a great product.

GaryG

Link to comment
Share on other sites

1) If you don't assign any series to the axis, you will need to manually set

the Min and Max of that Axis. Since there is no data, these values are

completely arbitrary and it is up to you to set them so that they make

sense. If they correspond to values in the primary y-axis (e.g. same values

represented in a different unit) you need to ensure that the Min and Max are

equivalent to those in the main Y-Axis.

2) You will need to set axis.Visible = true;

--

FP

Software FX

Link to comment
Share on other sites

Thanks!  That worked very well.

"SoftwareFX Support" <noreply@softwarefx.com> wrote in message

news:r61oyjoQEHA.3080@webserver3.softwarefx.com...

> 1) If you don't assign any series to the axis, you will need to manually

set

> the Min and Max of that Axis. Since there is no data, these values are

> completely arbitrary and it is up to you to set them so that they make

> sense. If they correspond to values in the primary y-axis (e.g. same

values

> represented in a different unit) you need to ensure that the Min and Max

are

> equivalent to those in the main Y-Axis.

>

> 2) You will need to set axis.Visible = true;

>

>

>

> --

> FP

> Software FX

>

>

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...