1

我使用 Apexcharts 注释,突然需要更改标签样式。

演示

我需要添加类似伪元素的东西来解决这个问题:

演示

annotations: {
    points: [{
        x: new Date("18 Nov 2019").getTime(),
        y: 100,
        marker: {
            size: 8,
            fillColor: '#ffffff',
            strokeColor: '#ffffff',
            radius: 2,
            cssClass: 'apexcharts-custom-class'
        },
        label: {
          borderColor: "#FF4560",
          offsetY: 0,
          style: {
            color: "#fff",
            background: "#FF4560"
          },

          text: "Point Annotation (XY)"
        }
    }]
},

剧本有可能吗?

4

0 回答 0