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

x-axis is obscuring series points

1 Answer 34 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Keith
Top achievements
Rank 1
Keith asked on 24 Jul 2013, 03:02 PM
Hi, I'm currently working a custom built tool that builds line charts for our clients. One of our clients as requested that when data points/lines are plotted along the x-axis that the data is placed on top of the x-axis so it is easy to see (attached photo). I've been doing some searching but I haven't found any examples or discussions on how to get the series to render on top of the axis so that you can see the points clearly. Can I get the series points (in the attached photo it would be the x's representing the data points) to render on top of the axis so you can see them better?

1 Answer, 1 is accepted

Sort by
0
Keith
Top achievements
Rank 1
answered on 26 Jul 2013, 08:04 PM
never mind. Found the answer.

Basically since the chart.PlotArea.XAxis.Layout options aren't available for the YAxis I emulated them using the
chart.PlotArea.YAxis.AxisMode = ChartYAxisMode.Extended.

Note: for some reason in my code I had to add YAxisMin--; and YAxisMax++; in order for the ChartYAxisMode.Extended to register.
(I did a YAxisMin--; because our charts don't have to go from 0 to infinity. Often times we have charts on both positive and negative YAxis)
Tags
General Discussions
Asked by
Keith
Top achievements
Rank 1
Answers by
Keith
Top achievements
Rank 1
Share this question
or