VChart icon indicating copy to clipboard operation
VChart copied to clipboard

[Bug] updateSpec issue in common chart

Open da730 opened this issue 1 year ago • 0 comments

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 avatar Aug 13 '24 06:08 da730