Custom axes that can be drawn both side is "must" for technical analysis application..
you wont give support about this subject so we try to create forced ways ..
We try to make "Ghost Axis" who responsible for the other side..
We extend Axis class and add this method
Code: Select all
public void DoGetAxisDrawLabel_Public(object sender, ref int x, ref int y, ref int z, ref string text, ref bool drawlabel)
{
DoGetAxisDrawLabel(sender,ref x,ref y,ref z,ref text,ref drawlabel);
}
After do that we add this method also
Code: Select all
protected override void DoGetAxisDrawLabel(object sender, ref int x, ref int y, ref int z, ref string text, ref bool drawlabel)
{
if (childAxis!=null && childAxis.isGhost)
{
int a=x-950;
int b=y;
childAxis.DoGetAxisDrawLabel_Public(childAxis,ref a,ref b,ref z,ref text,ref drawlabel);
}
As you guess , real axis (that has series) has relationship with "ghost axis" by childAxis property ..
But these codes couldnt resolve problem we couldnt show labels on ghost axis..
We avoid to make "ghost series" because its maintanence cost is more than this solution ..But it seems this solution is not work ..Do you have any other idea or whats the wrong with these codes ..
And i say again and again if you produce "technical analysis application"
you need Multiple,Both Side Drawable Custom Axes !