Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

自定义双y轴AATooltip #745

Closed
qz-wzf opened this issue Oct 14, 2019 · 3 comments
Closed

自定义双y轴AATooltip #745

qz-wzf opened this issue Oct 14, 2019 · 3 comments
Labels

Comments

@qz-wzf
Copy link

qz-wzf commented Oct 14, 2019

能否实现自定义tooltip头部OC拼接字符串以及分类颜色自定义
14_46_15__10_14_2019

@AAChartModel
Copy link
Owner

可以实现,AAChartKit 的 demo 中有很多关于如何自定义 AATooltip 的使用示例.下载运行最新 AAChartKit 的 demo查看学习即可.

@AAChartModel
Copy link
Owner

AAChartModel commented Oct 14, 2019

  • 简单情况下,使用以下三个属性即可
AAPropStatementAndPropSetFuncStatement(copy,   AATooltip, NSString *, headerFormat) 
AAPropStatementAndPropSetFuncStatement(copy,   AATooltip, NSString *, pointFormat) 
AAPropStatementAndPropSetFuncStatement(copy,   AATooltip, NSString *, footerFormat) 

在线 API 文档链接 https://api.highcharts.com.cn/highcharts#tooltip.headerFormat

@AAChartModel
Copy link
Owner

AAChartModel commented Oct 14, 2019

  • 复杂情况下,可使用 formatter 属性(JavaScript 函数字符串)来自定义 AATooltip
AAPropStatementAndPropSetFuncStatement(copy,   AATooltip, NSString *, formatter) 

在线 API 文档链接 https://api.highcharts.com.cn/highcharts#tooltip.formatter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants