【发布时间】:2021-02-21 06:06:53
【问题描述】:
我有这个jsfiddle 代码,其中我定义了一个自定义stock-tool 按钮,例如:
lang: {
stockTools: {
gui: {
customAnnotation: 'Custom action'
}
},
navigation: {
popup: {
customAnnotation: 'Action config'
}
}
},
stockTools: {
gui: {
enabled: true,
buttons: [ 'customAnnotation','customAnnotation','customAnnotation' ],
definitions: {
customAnnotation: {
className: 'highcharts-custom-annotation',
symbol: 'text.svg'
}
}
}
}
并且按钮的SVG 图标由symbol: 'text.svg' 行定义。该图标来自this link 中预定义的higcharts 图标。
我想知道,如何将SVG 图标设置为指向我自定义创建的SVG 图标?
【问题讨论】:
标签: javascript svg highcharts