feature: [tooltip]
(1) Make component tooltip inherit cascade correct: itemOption.tooltip -> componentOption.tooltip -> globalOption.tooltip (previous incorrect cascade: itemOption.tooltip -> globalOption.tooltip (2) Enable trigger component tooltip by chart.dispatchAction({ type: 'showTip', legendIndex: 0, name: 'some' }); To make (2) happen, this commit migrate `ECElement['tooltip']` to ECData['tooltipConfig']['option'], and add other info in ECData['tooltipConfig']: { componentMainType componentIndex name } to locate a tooltipable component element by a payload.
Showing
想要评论请 注册 或 登录