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
latest
none
const spec = { type: 'pie', data: [ { id: 'pieData', values: pieData } ], outerRadius: 0.8, innerRadius: 0.5, padAngle: 0.6, valueField: 'value', categoryField: 'type', // color: { // id: 'color', // type: 'linear', // range: ['#1664FF', '#B2CFFF', '#1AC6FF', '#94EFFF'], // domain: [ // { // dataId: 'pieData', // fields: ['value'] // } // ] // }, pie: { style: { cornerRadius: 10 // fill: { // scale: 'color', // field: 'value' // } } }, legends: { visible: true, orient: 'left' // data: (data, scale) => { // return data.map(datum => { // const pickDatum = pieData.find(pieDatum => pieDatum.type === datum.label); // datum.shape.fill = scale.scale(pickDatum?.value); // return datum; // }); // } }, label: { visible: true } }; const vchart = new VChart(spec, { dom: CONTAINER_ID }); vchart.renderAsync();
Then call
vchart.updateData('pieData', [ {type: "AAAA", value: 30}, {type: "BBBB", value: 10}
legend does not change
should change
- OS: - Browser: - Framework:
No response
The text was updated successfully, but these errors were encountered:
fix(vchart): fix the issue of legend does not update after updateData, …
5ed7a71
…fix #769
828a24c
kkxxkk2019
Successfully merging a pull request may close this issue.
Version
latest
Link to Minimal Reproduction
none
Steps to Reproduce
Then call
Current Behavior
legend does not change
Expected Behavior
should change
Environment
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: