scrollbar with primary and secondary Y axes


Author
Message
Jeremy Courbat
Jeremy Courbat
Junior Member (10 reputation)Junior Member (10 reputation)Junior Member (10 reputation)Junior Member (10 reputation)Junior Member (10 reputation)Junior Member (10 reputation)Junior Member (10 reputation)Junior Member (10 reputation)Junior Member (10 reputation)
Group: Forum Members
Posts: 10, Visits: 11
Hi every body,

First of all sorry for my bad English, it's not my main language.

So, I try to do a linear graph with a scroll bar for X axis and one other for Y axis.

That is OK, it works fine.

Now I want to add a secondary Y axis and that is the problem.
When I scroll on Y axis the secondary scale don't move but the data, based on the second axis, does so the data is no more "in front of" the scale.

I see 2 possibilities:
- create a second scroll bar for the secondary axis => this one move the axis but not the data and the primary scroll bar does the same than before. I probably do a mistake somewhere or something is missing.
- synchronise the secondary axis with the primary scroll bar => I didn't know how to do this.

For now, I don't really know if I will choose solution 1 or 2, so if it's possible tell me how to do both.

Thanks for all the reply.

EDIT: The 2 axis didn't have the same range, one is -1000 to 1000 the other is 0 to 100, I didn't know if it make a difference.
Reply
Jeremy Courbat
Jeremy Courbat
Junior Member (10 reputation)Junior Member (10 reputation)Junior Member (10 reputation)Junior Member (10 reputation)Junior Member (10 reputation)Junior Member (10 reputation)Junior Member (10 reputation)Junior Member (10 reputation)Junior Member (10 reputation)
Group: Forum Members
Posts: 10, Visits: 11
OK, I found the solution 1 myself.

For the linear data which should display on secondary axis, I put the wrong setting.
- wrong:
M_Line2.DisplayOnAxis(StandardAxis.SecondaryY, False)
M_Line2.DisplayOnAxis(StandardAxis.SecondaryY, True)
- Correct:
M_Line2.DisplayOnAxis(StandardAxis.PrimaryY, False)
M_Line2.DisplayOnAxis(StandardAxis.SecondaryY, True)


So just need the "synchronise scroll bar" solution if it's possible.
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search