作成後に入力する必要があるチャートを実装しました。
ここに私が作成したオブジェクトの抜粋があります:
MyApp.views.chartPanel = new Ext.chart.Panel({
id: 'chartPanel',
title: 'Pie Chart',
items: {
cls: 'pie1',
theme: 'Demo',
store: null,
shadow: false,
animate: false,
insetPadding: 20,
legend: {
position: 'top'
},
.....
pass: function(id) {
MyApp.views.chartPanel.items.items[0].bindStore(getData(id));
}
パス関数が呼び出され、グラフが作成されますが、ユーザーがウィンドウをダブルクリックしてグラフをリセットした場合にのみ表示される凡例が表示されません。
凡例を正しく表示するにはどうすればよいですか?