Openlayers ol-ext 给圆环图添加填充颜色

Openlayers ol-ext Add fill color to donut chart

我在 Openlayers 的 ol-ext 扩展中遇到了向圆环图添加填充背景的问题

知道如何实现吗?我已经尝试向新图表的图像添加填充,也尝试使用背景填充添加文本,但是一旦文本背景没有边框半径,它在甜甜圈圈内看起来就非常难看。

试试甜甜圈顶部带有较小圆圈的样式数组:

            style = [
              new ol.style.Style({
                image: new ol.style.Chart({
                  type: 'donut',
                  ...
                  ...
                })
              }),
              new ol.style.Style({
                image: new ol.style.Circle({
                  radius: ???,
                  fill: new ol.style.Fill({
                    color: ???
                  })
                })
              })
            ];