问题
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