Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我通过以下方式创建新图表对象时:
ChartFX.WebForms.Chart theChart = new ChartFX.WebForms.Chart();
当我立即查看通过 Visual Studio 2005 中的断点创建后的行时,我注意到新创建的图表中有 3 行包含数据。这是一个错误吗?还是我需要调用特定的函数?图表的数据表不应该在创建时初始化为全 0 吗?
根据 ChartFX,这是设计使然。在声明图表对象后,您可以使用以下命令将其清除:
chart1.Data.Clear();