向箱线图添加点(用于离群值)

Add dots to a boxplot chart (for outliers)

我想用 AmCharts4 制作类似 this one 的箱线图,但另外我想添加一些点来表示离群值。怎么走? (我不是要求异常值的识别,只是为了添加一些点的方式)。

我找到方法了:

var outliers = [{
    "date": "2019-08-01",
     y: 125
  }, {
    "date": "2019-08-01",
     y: 128
  }, {
    "date": "2019-08-02",
     y: 130
  }];

var bulletSeries = chart.series.push(new am4charts.LineSeries());
bulletSeries.strokeOpacity = 0;
bulletSeries.data = outliers;
bulletSeries.dataFields.dateX = "date";
bulletSeries.dataFields.valueY = "y";
var bullet = bulletSeries.bullets.push(new am4charts.CircleBullet());
bulletSeries.tooltipText = "{valueY.value}";