vendredi 10 août 2012 19:52
I am using vb.net 2008. I am trying to plot a line graph and the crossings of both x- and y-axes are set to zero. Now, if all my data values for x are negative, the vertical axis is moved to the right hand side of the chart with the scale showing on the left side of the axis (which is normal). Also, the title for the y-axis is displayed on the left side of the chart. Now, I have two questions for my scenario:
1- is there to have the axis title to be displayed on the right side of axis (in this case, on the far right of the chart).
2- is there a way to have the scale for the y-axis to be displayed on the right side of the axis.
I would appreciate a code. Thanks for all your help.
Toutes les réponses
lundi 13 août 2012 08:48Modérateur
Normally the axis labels and such move to the crossing point if you specify one. You can keep the y-axis on the left side of the chart (as it is normally) by setting AxisY.IsMarksNextToAxis to false. Otherwise you'll probably have to detect whether all the x values are negative, disable AxisY, enable AxisY2 and set the title of AxisY2.
- Marqué comme réponse booboo_US lundi 13 août 2012 17:05
lundi 13 août 2012 17:06Thanks Sipla. That helps a lot.