• 1
    feature: [tooltip] · b9c7e9e5
    100pah 提交于
    (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.
    b9c7e9e5
LegendView.ts 21.8 KB