We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
v1.9.14-2
在开发插件时,使用VApexChart bar显示label时前端报错,图表显示有问题
前端报错 Uncaught (in promise) TypeError: s.toFixed is not a function,
报错代码 return window.Apex && (window.Apex.dataLabels = { formatter: function(a, {seriesIndex: n, w: i}) { const s = i.config.series[n]; return s.toFixed(s % 1 === 0 ? 0 : 1) } 报错时 s 为 Proxy(Object) {name: 'upload', data: Array(21)}
禁用label后恢复正常 'dataLabels': { 'enabled': False, },
插件get_page 返回图表格式 'component': 'VApexChart', 'props': { 'height': 300, 'options': { 'chart': { 'type': 'bar', }, 'title': { 'text': f'上传下载总和' }, 'labels':sites, #['1','2','3','4'] }, 'series': [ { 'name':'upload', 'data': ups, #[1,2,3,4] }, { 'name':'download', 'data': dls, #[1,2,3,4] } ], }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
确认
当前程序版本
v1.9.14-2
问题描述
在开发插件时,使用VApexChart bar显示label时前端报错,图表显示有问题
前端报错 Uncaught (in promise) TypeError: s.toFixed is not a function,
报错代码
return window.Apex && (window.Apex.dataLabels = {
formatter: function(a, {seriesIndex: n, w: i}) {
const s = i.config.series[n];
return s.toFixed(s % 1 === 0 ? 0 : 1)
}
报错时 s 为
Proxy(Object) {name: 'upload', data: Array(21)}
禁用label后恢复正常
'dataLabels': {
'enabled': False,
},
发生问题时系统日志和配置文件
The text was updated successfully, but these errors were encountered: