Axis.Enabled属性似乎没有记录。 [英] Axis.Enabled Property doesn't appear to work as documented.

查看:126
本文介绍了Axis.Enabled属性似乎没有记录。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在DataVisChartControl.chm帮助文件中的Axis.Enabled属性的"备注"部分下,它指出了如果启用了轴,轴及其所有属性(勾选)无论是否用于绘制系列。"

在C#应用程序中,我在图表区域中有2个系列和主要X轴,主要Y轴,并且辅助Y轴启用为True,轴仍然表现得好像它们的Enabled属性设置为Auto,并且一旦数据不再添加到Series集合中就会消失。图表类型是折线图,我使用计时器来添加和删除数据点。

是否需要设置其他属性才能使轴始终启用?

Under the Remarks section of the Axis.Enabled Property in the DataVisChartControl.chm help file, it states that

"If an axis is enabled, the axis, along with all its attributes (tick marks, strip lines, labels, and so forth), will be displayed regardless of whether or not it is being used to plot a Series."

Yet in a C# app where I have 2 Series in a Chart Area and the Primary X-Axis, Primary Y-Axis, and Secondary Y-Axis enabled to True, the axes still behave as if they're Enabled property is set to Auto, and disappear once data is no longer added to the Series collections. The chart type is a Line Chart where I'm using a timer to add and remove data points.

Is there some other property that needs to be set in order for the axes to be constantly enabled ?

推荐答案

您仍然需要Series集合中的数据。如果系列为空,则需要提供自定义轴最小值和最大值。

Alex。
You still need the data in the Series collection. If series are empty you need to provide custom axis Minimum and Maximum values.

Alex.


这篇关于Axis.Enabled属性似乎没有记录。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆