HQChart实战教程26 - 自定义K线画图工具设置框 文本类
画图工具图标类
通过在K线上标记图标, 来突出这个数据.如下图是tradvingview的图标的画图工具.
hqchart内置了4个图标, 上下箭头,左右箭头,其他图标需要通过外部设置.
添加画图工具图标接口
//注册一个新图标 {Name:, Text: , Color:, Family:}
JSChart.RegisterDrawPictureIonFont=function(obj)
参数
Name:图标名字
Text:对应iconfont的名字
Color:颜色
Family:对应iconfont的family名字
Text和Famil直接在图标的css的问题里面找,见下图
部分代码
//注册4个自定义的图标<