私はコンピューターをスキャンしていますが、そのスケールは1.5、2、2.5のようにすることはできず、1、2、3、4のように整数にする必要があります。
私の現在のコードは
ICollection<KeyValuePair<String, int>> data = new Dictionary<String, int>();
data.Add(new KeyValuePair<string, int>(Protocol, protocolCount));
mycolseries = new ColumnSeries
{
ItemsSource = data,
Title = Protocol,
IndependentValuePath = "Key",
DependentValuePath = "Value",
};
mainChart.Series.Add(mycolseries);
依存値を「key」に変更すると、「newは呼び出しまたは要素で使用する必要があるか、初期化されていません」などの奇妙なエラーが発生します。