代码之家  ›  专栏  ›  技术社区  ›  immanuel

在Apexchart中突出显示烛台

  •  0
  • immanuel  · 技术社区  · 2 年前

    我在Angular组件中有一个烛台图,它异步地突出显示特定烛台的边界。。。我使用的是apexchart 3.40.0和ng apexchart 1.7.4……在我看来,我想实现一些边框较深的东西,比如:

                        strokeDashArray: 4, // Imposta un modello di tratteggio per la linea (opzionale)
                        borderColor: '#FF5733', // Colore del bordo per la linea
                        borderWidth: 2, // Spessore della linea
    

    你能帮帮我吗?

    目前,我正尝试在body中使用updateOptions方法来添加标记:

    {
       annotations: {
          points: [{
            x: input.x, // X-axis value where you want to highlight (timestamp)
            y: input.y[2],
            marker: {
              size: 6,
              fillColor: "#fff",
              strokeColor: "#2698FF",
              radius: 2
            }
          ]}
    }
    

    但当我将整个数组传递给y时,它什么也不做。

    0 回复  |  直到 2 年前
    推荐文章