Closed legendjslc closed 6 years ago
// tooltip属性(通常用于自定义提示信息, formatter方法参数为数据value和颜色color对象) spTooltipProps3: { formatter (val) { return当前数据为:${val.value} } } 按文档所说, formatter方法参数为数据value和颜色color对象。能不能再加上一个数据的索引值,这样就可以让tooltip显示更灵活,比如显示为:{某天}:{数据值}。
// tooltip属性(通常用于自定义提示信息, formatter方法参数为数据value和颜色color对象) spTooltipProps3: { formatter (val) { return
} }
谢谢你辛勤的开发。
最近会更新一版,会引入索引值,感谢建议。
刚刚版本已更新,formatter中的val已存在index属性即对应索引值,请更新版本后尝试,感谢使用。
// tooltip属性(通常用于自定义提示信息, formatter方法参数为数据value和颜色color对象) spTooltipProps3: { formatter (val) { return
当前数据为:} }
按文档所说, formatter方法参数为数据value和颜色color对象。能不能再加上一个数据的索引值,这样就可以让tooltip显示更灵活,比如显示为:{某天}:{数据值}。谢谢你辛勤的开发。