Jump to content
Software FX Community

Secondary Y Axis w/out another Series?


User (Legacy)

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

Archived

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

×
×
  • Create New...