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.
我需要使用 dotNetCharting 设置条形图系列的静态宽度。My Graph 具有线型、样条线型和列型三个系列的集合。我只想为所有系列的列类型设置一个静态宽度。
我试过使用:
myChart.DefaultAxis.StaticColumnWidth = 10;
但是 .DefaultAxis 属性在智能感知中对于整个图表和Column 系列集合都无效。在设置之前,必须先添加数据系列吗?
另外,我尝试在系列对象中添加属性,但没有运气。
有任何想法吗?
series["PixelPointWidth"] = "your value for width";
chart1.Series["Series1"]["PixelPointWidth"] = "1";