Setting Width on a Column Series: Using dotNetCharting

痞子三分冷 提交于 2019-12-23 17:15:09

问题


I need to set a static width of a bar chart series using dotNetCharting. My Graph has three series collections of line, spline, and column type. I would just like to set a static width for all series of column type.

I've tried using:

myChart.DefaultAxis.StaticColumnWidth = 10;

But the .DefaultAxis property isn't valid in intellisense for the whole chart nor the Column series collection. Do the series have to be added with data first before setting this?

Also, I've tried adding properties in the series object, no luck.

Any ideas?


回答1:


series["PixelPointWidth"] = "your value for width";
  • part of chart series collection: a custom property



回答2:


chart1.Series["Series1"]["PixelPointWidth"] = "1";



来源:https://stackoverflow.com/questions/10435032/setting-width-on-a-column-series-using-dotnetcharting

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!