code: function (tooltipModel, ecModel, api, payload) {
          var seriesIndex = payload.seriesIndex;
          var dataIndex = payload.dataIndex;
          var coordSysAxesInfo = ecModel.getComponent('axisPointer').coordSysAxesInfo;
  
          if (seriesIndex == null || dataIndex == null || coordSysAxesInfo == null) {
              return;
          }
  
          var seriesModel = ecModel.getSeriesByIndex(seriesIndex);
          if (!seriesModel) {
              return;
          }
  
          var data = seriesModel.getData();
          var tooltipModel = buildTooltipModel([
              data.getItemModel(dataIndex),
              seriesModel,
              (seriesModel.coordinateSystem || {}).model,
              tooltipModel
          ]);
  
          if (tooltipModel.get('trigger') !== 'axis') {
              return;
          }
  
          api.dispatchAction({
              type: 'updateAxisPointer',
              seriesIndex: seriesIndex,
              dataIndex: dataIndex,
              position: payload.position
          });
  
          return true;
      }
docs: Be compatible with previous design, that is, when tooltip.type is 'axis' and dispatchAction 'showTip' with seriesIndex and dataIndex will trigger axis pointer and tooltip.