Silverlight 5 でチャートを作成するのは初めてです。サードパーティを使用せずに Silverlight でチャートを作成しました。コードでチャートにシリーズを追加しました。
ColumnSeries series = new ColumnSeries();
PointCollection points = new PointCollection();
points.Add(new Point(issue.immediate, issue.Sequence));
series.ItemsSource = points;
series.IndependentValueBinding = new System.Windows.Data.Binding("Y");
series.DependentValueBinding = new System.Windows.Data.Binding("X");
chart1.Series.Add(series);
私の問題は、chart1.Series.Clear();を使用した後です。コマンドを実行すると、チャートがクリアされます。しかし、グラフに別のポイント コレクションを配置すると、グラフには以前の列シリーズのセットが含まれます。新しく追加されたシリーズがチャートの新しい値になることを期待しています。Series の .Clear および .Remove メソッドを試しましたが、何も機能しません。