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

ios上更新数据导致柱形不显示, #119

Open
Lloeaf opened this issue Jan 5, 2024 · 1 comment
Open

ios上更新数据导致柱形不显示, #119

Lloeaf opened this issue Jan 5, 2024 · 1 comment

Comments

@Lloeaf
Copy link

Lloeaf commented Jan 5, 2024

let pieOption1 = {
grid: {
left: '19%', // 调整xAxis的宽度,可以根据实际情况调整具体数值
right: '10%' // 调整xAxis的宽度,可以根据实际情况调整具体数值
},
title: {
text: ${dataval.title} ${PluginStrings.unit},
subtext: dataval.subtext,
textStyle: {
color: DarkMode.getColorScheme() === 'dark' ? '#ffffff' : '#000000'
}
},
tooltip: {
trigger: "axis",
axisPointer: {
type: "shadow"
},
// formatter: function (params) {
// return ${params[0].name}: ${params[0].value} ${params[0].seriesName};
// }
},
xAxis: {
type: 'category',
data: dataval.xAxisdata,
nameLocation: 'start',
axisLabel: {
interval: dataval.xAxisdata.length <= 7 ? 0 : 'auto'
}
},
yAxis: {
type: 'value',
axisLabel: {
interval: 1
}
},
series: [
{
name: PluginStrings.unit,
data: dataval.seriesdata,
type: 'bar',
barWidth: "40%",
nameLocation: "start",
itemStyle: {
color: '#3398DB' // 将柱子颜色改为绿色
}
}
]
};
return <View style={{ height: 'auto', paddingTop: 20, marginLeft: SdkStyles.common.padding, width: Ratio.width - (SdkStyles.common.padding * 1),
alignItems: 'center', justifyContent: 'center' }}>

;

@Lloeaf Lloeaf changed the title ios上更新数据导致柱形不显示,报rror evaluating injected lavaSeript Thie is possibly due to anunsupported retunn typel Tiy adding true to the end of yourinectedJavaScript string Error Domain=WKErrorDornain Code-4"岁JavaScript导常" Userinfo(WkJavaScriptExceptionLinefumber=0WkJavaSciiptExceptionMessagem SyntaxError: Can't create duplicatevariable 'dispatchAction’, Wk.avaScriptExceptionColumnNumber=0NSLocalizedDescription=发了JavaScript再常 Stack Source ad ios上更新数据导致柱形不显示, Jan 5, 2024
@supervons
Copy link
Owner

dataval 参数方便提供一下吗?

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

No branches or pull requests

2 participants