11

Visual Studio 2010 を使用して C# で Winforms アプリケーションを作成しています。通常のツールボックスのチャート コントロールを使用して、SQL データベースのデータを表示しています。ご覧のとおり、バーは非常に広いです。それを小さくして修正するためのプロパティまたは方法はありますか?

http://priv.hiphotos.baidu.com/album/s%3D308%3Bq%3D90/sign=131a1ec68bd4b31cf43c92bbbfed5642/d4628535e5dde711c9184673a7efce1b9c166168.jpg?psign=de6394777d1ed21b3ae15fd4ad4712a551da81cb3bdb1fb1

4

4 に答える 4

17

3 つの値をバインドしてdataPointCustomPropertiesを設定する小さな例PixelPointWidthを作成しました。

int[] liste = new int[] { 1, 2, 3 };//, 4, 5, 6, 7 };
chart1.Series["Series1"].Points.DataBind(liste, "sampleData", "count", "Tooltip=count");
// dataPointCustomProperties
chart1.Series["Series1"]["PixelPointWidth"] = "1";

このチャートになります

チャートバー幅 1px

于 2012-09-21T09:01:01.450 に答える