如何在 .NET 中调整 MS Chart 的 x 轴标签的位置?
我有一个通过通用处理程序动态生成的图表。我已经加载了数据,默认情况下它看起来像这样:
http://www.2gtech .com/downloads/ChartWithoutCrossing.png
如果我调整交叉点,我会得到我想要的效果,即 100,000 处的基线,并在基线上方和下方绘制区域。问题是 AxisX 和 AxisX2 都下降到新的交叉点。
GrowthChart.ChartAreas(0).AxisY.Crossing = 100000
http://www.2gtech.com/downloads/ChartWithCrossing.png
我怎样才能保留交叉点,但 x 轴标签是否出现在整个图表下方? (我不需要顶部的标签,fwiw。它们仅在我试图查看我可以用两个轴做什么时出现。
I have a chart that I'm generating on the fly through a generic handler. I've got the data loaded and by default it looks like this:
http://www.2gtech.com/downloads/ChartWithoutCrossing.png
If I adjust the crossing I get the desired effect I'm looking for, which is a base line at 100,000 with the area charted above and below the base line. The problem is that both AxisX and AxisX2 drop to the new crossing point.
GrowthChart.ChartAreas(0).AxisY.Crossing = 100000
http://www.2gtech.com/downloads/ChartWithCrossing.png
How can I keep the crossing point, but have the x axis labels appear BELOW the entire chart? (I don't need the labels on the top, fwiw. They only appear as I was trying to see what I could do with both axis.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
IsMarksNextToAxis 是实现此目的的属性。
IsMarksNextToAxis is the property to achieve this.