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

[Bug] updateSpec issue in common chart #3082

Closed
da730 opened this issue Aug 13, 2024 · 1 comment · May be fixed by YuvrajKaushal/one-apiSecure#5
Closed

[Bug] updateSpec issue in common chart #3082

da730 opened this issue Aug 13, 2024 · 1 comment · May be fixed by YuvrajKaushal/one-apiSecure#5
Assignees
Labels
bug Something isn't working

Comments

@da730
Copy link
Contributor

da730 commented Aug 13, 2024

Version

~1.11.9

Link to Minimal Reproduction

null

Steps to Reproduce

  1. use common chart with multiple dataset
  2. only use data id in series.data and make data.values undefined
  3. call updateSpec using the same spec as parameter
const spec= {
type:'common',
data:[
{
id: 'dataset1',
values:[{
...some data values
}]
}
],
series:{
data:{
id: 'dataset1' //only set data id, don't assign values
}
}
}

Current Behavior

This is a bug in updateDataViewInData:
image

image
image
data.values is undefind and caused an error in addVChartProperty in dataview
image

Expected Behavior

update the chart normally

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

@da730 da730 added the bug Something isn't working label Aug 13, 2024
@xile611 xile611 self-assigned this Aug 14, 2024
@xile611
Copy link
Contributor

xile611 commented Aug 20, 2024

@da730 报错的问题,下个版本(1.12.1)修复

不过不太建议上面的用法,可以在系列中直接通过 dataId 进行配置

参考文档: https://www.visactor.io/vchart/option/commonChart-series-line#dataId

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants