This is a migrated thread and some comments may be shown as answers.

How to put X-Axis on Top

1 Answer 70 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Ed Staffin
Top achievements
Rank 1
Ed Staffin asked on 03 Dec 2012, 08:49 PM
We have a simple bar chart that we would like to be able to put the xaxis labels and hash marks on top instead of on teh bottom. Is this possible? If so, can someone point me to some example code?
Thanks ... Ed

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 04 Dec 2012, 05:19 AM
Hello,

You need to set Position.Auto to false and Position.Y  with a negative value to move the labels upwards. You may also need to adjust the plot area margins or move / remove the chart title, so that it does not overlap with the X axis labels. To reverse the direction of the ticks and have them appear above the axis line use a negative value for Length. Following is the axis configuration.

ASPX:
<XAxis Appearance-MajorTick-Length="-234">
    <Appearance>
        <LabelAppearance Position-Auto="false" Position-Y="-234">
        </LabelAppearance>
    </Appearance>
</XAxis>

Hope this helps.

Regards,
Princy.
Tags
Chart (Obsolete)
Asked by
Ed Staffin
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or