简体   繁体   English

Microsoft图表控件标签

[英]Microsoft Chart Control labels

I've been searching for a while and browsing through the samples but could not find a solution to my problem. 我已经搜索了一段时间并浏览了示例,但是找不到解决我问题的方法。

In Microsoft Chart Control I have created a line series that plots real-time data. 在Microsoft Chart Control中,我创建了绘制实时数据的线系列。 As new data points are added, the chart margins will sometimes jump on the form. 添加新数据点时,图表边距有时会在表格上跳跃。 I have tried disabling the grid lines and have determined that the margins change when the x-axis label overlaps with the y-axis label. 我尝试禁用网格线,并确定当x轴标签与y轴标签重叠时,边距会发生变化。 I have tried auto-fitting the labels but that does not seem to work probably because it treat x-axis and y-axis separately. 我尝试过自动调整标签,但是似乎无法正常工作,因为它分别处理x轴和y轴。 Is there any way to prevent the overlap, or keep the labels and corresponding grid lines stationery and just change their value when the data scrolls? 有什么方法可以防止重叠,或保持标签和相应的网格线文具,并在数据滚动时仅更改其值?

Thank you for your help. 谢谢您的帮助。

我设置IsEndLabelVisible = false来解决此问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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