I prepare my own legend with checkboxes for echarts. When a checkbox is clicked, it invokes a special function to remove data from the chart. I remove or add this data from series and reload chart.
然而,图西人有像传票和选择等活动。 也许我能利用一些职能,或者也许会派行动来显示/介绍数据,而不是增加/消除数据?
I try to use dispatchAction, but it doesnt show/hide, it only start animations.
我采取这样的行动:
myChart.dispatchAction({
type: "legendToggleSelect",
name: id,
});
但是,仅仅开始道歉,而不是隐藏/how。