.highcharts-按钮-符号图像

时间:2018-10-24 11:10:50

标签: javascript css highcharts

我正在尝试将highcharts图形符号更改为图像。

exporting: {
    buttons: {
        contextButton: {
            symbol:'url(images/arrowdownwards.svg)',
            symbolX:19,
            symbolY:20
        }
    }
},

这一直有效,直到代码被编译,然后我的图像获得了另一个名称,然后它停止工作。

我想知道的是,是否有任何方法可以在该参数中以及如何传递css。

谢谢。

1 个答案:

答案 0 :(得分:0)

.highcharts-button-symbol {
  display: none
}

.highcharts-contextbutton text {
  font-family: 'Glyphicons Halflings';
}

  "exporting": {
    "buttons": {
      "contextButton": {
        "enabled": true,
                text: "\ue059",
        width: 20

      }
    }
  },

这有效