0
작성한 후에 채워야하는 차트를 구현했습니다. 여기 Sencha Chart에서 범례를 표시 할 수 없습니다.
내가 만든 객체의 싹둑입니다 : 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));
}
패스 기능이 호출되고 차트가 채워집니다하지만 사용자가 창을 두 번 클릭 한 경우에만 i가 표시되는 전설을 볼 수 있으며, 차트를 다시 설정합니다.
전설을 올바르게 표시하려면 어떻게해야합니까?
series: [{
type: 'pie',
....
showInLegend: true,
label: {
field: 'name'
}
}]
: