简体   繁体   中英

C# Chart how to force labels to be on the bottom of the area and not of the axis

My area scale is not auto, I set by myself the minimum, maximum and crossing values. I have a chart with negative values, so my AxisY is not on the bottom of his area but in the center (or near). Labels aren't really readable in this case (overlap by shapes). Do you know how to force Y labels to be on the bottom of his area?

I tried to set BarLabelStyle and LabelStyle at Bottom in the series, but it didn't work.

Any help?

I would suggest one of a couple things. Either:

A. ASP.NET charts allow you to use more than just bottom alignment. What about one of the other ones, like MSDN says.

B. Alter your scale so that it isn't an issue where the box shows up. You can also add fill colors so the grid lines and wayward data points don't interfere too much.

C. You could create a legend and dock it somewhere outside the chart just to label / name it.

D. Just throw a literal right above the chart as a chart name.

E. Probably your best option, though, is that it's possible to create another chart area that's completely blank with no grid lines and no data. You could make it just for the purpose of putting your label down there and set it right below or right above the chart area you're trying to label.

Hope that helps!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM