king
2021-06-05 5463821a7f9a9d31a1d4cd553e75652ed7fc8c54
src/tabviews/custom/components/chart/antv-scatter/index.jsx
@@ -348,13 +348,18 @@
      itemName: { style: { fill: plot.color } }
    })
    chart.tooltip({
      showTitle: false,
      showCrosshairs: true,
      crosshairs: {
        type: 'xy',
      }
    })
    if (plot.tooltip !== 'true') {
      chart.tooltip(false)
    } else {
      chart.tooltip({
        showTitle: false,
        showCrosshairs: true,
        crosshairs: {
          type: 'xy',
        }
      })
    }
    chart
      .point()
      .position(`${plot.Xaxis}*${plot.Yaxis}`)
@@ -369,7 +374,11 @@
      .style({
        fillOpacity: 0.85
      })
    chart.interaction('legend-highlight');
    if (plot.interaction && plot.interaction.length) {
      plot.interaction.forEach(t => {
        chart.interaction(t)
      })
    }
    chart.render()
  }