-
Notifications
You must be signed in to change notification settings - Fork 33
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
tooltip formatter 使用外部变量的时候,tooltip 会卡死 #117
Comments
<RNEChartsPro
option={getChartsOptions(
units,
xData,
yData,
primaryColor,
primaryColor
)}
height={430}
webViewSettings={{
scrollEnabled: false,
}}
/> 这里的 |
确实有这个问题,目前的解决方法是将你需要使用的数据,放在params的data下面直接使用 |
@supervons 抱歉!之前更换了邮箱导致没有及时回复... const xData = ["00:00", "01:00", "02:00", "03:00", "04:00", "05:00", "06:00", "07:00", "08:00", "09:00", "10:00", "11:00", "12:00", "13:00", "14:00", "15:00", "16:00", "17:00", "18:00", "19:00", "20:00", "21:00", "22:00", "23:00"]
const yData = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0]]
const units = ['kWh']
const primaryColor = 'pink' |
@hejun041 你好,请问 “放在params的data下面直接使用”,具体是要传递什么 props 嘛 |
1.你可以参考formatterVariable这个参数 |
@hejun041 |
可以传对象 |
tooltip formatter 使用外部变量的时候,tooltip 会卡死
"react-native-echarts-pro": 1.9.1
The text was updated successfully, but these errors were encountered: