慕妹3242003
调用myChart.dispatchAction方法就行了!$('#example-getting-started').multiselect({ onChange: function(option, checked, select) { var name = $(option).text(); myChart.dispatchAction({ type: 'legendToggleSelect', name: name }); }, buttonText: function(options, select) { return '显示分组'; },});multiselect是Bootstrap multiselect插件提供的方法