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] wordCloud chart call updateDataSync chart layout error #2605

Closed
fangsmile opened this issue Apr 28, 2024 · 0 comments · Fixed by #2607
Closed

[Bug] wordCloud chart call updateDataSync chart layout error #2605

fangsmile opened this issue Apr 28, 2024 · 0 comments · Fixed by #2607
Assignees
Labels
bug Something isn't working

Comments

@fangsmile
Copy link

Version

develop

Link to Minimal Reproduction

1

Steps to Reproduce

const spec = {
nameField: "Segment",
padding: 0,
seriesField: "Segment",
sortDataByAxis: true,
type: "wordCloud",
valueField: "Quantity",
data: {
id: 'baseData',
}
};
const vchart = new VChart(spec, { dom: CONTAINER_ID,mode: 'desktop-browser',
canvasControled: false, animation: false,
interactive: true,
autoFit: false });
vchart.renderSync();
vchart.updateDataSync('baseData',[
{
"Segment-Indicator": "Consumer-Quantity",
"Region": "Central",
"Category": "Furniture",
"Quantity": "16",
"Sub-Category": "Chairs",
"Order Year": "2015",
"Segment": "Consumer",
"Ship Mode": "First Class"
},
{
"Segment-Indicator": "Consumer-Quantity",
"Region": "Central",
"Category": "Furniture",
"Quantity": "4",
"Sub-Category": "Tables",
"Order Year": "2015",
"Segment": "Consumer",
"Ship Mode": "First Class"
},
{
"Segment-Indicator": "Corporate-Quantity",
"Region": "Central",
"Category": "Furniture",
"Quantity": "2",
"Sub-Category": "Bookcases",
"Order Year": "2015",
"Segment": "Corporate",
"Ship Mode": "First Class"
},
{
"Segment-Indicator": "Consumer-Quantity",
"Region": "Central",
"Category": "Furniture",
"Quantity": "16",
"Sub-Category": "Furnishings",
"Order Year": "2015",
"Segment": "Consumer",
"Ship Mode": "First Class"
},
{
"Segment-Indicator": "Home Office-Quantity",
"Region": "Central",
"Category": "Furniture",
"Quantity": "1",
"Sub-Category": "Tables",
"Order Year": "2015",
"Segment": "Home Office",
"Ship Mode": "First Class"
},
{
"Segment-Indicator": "Home Office-Quantity",
"Region": "Central",
"Category": "Furniture",
"Quantity": "2",
"Sub-Category": "Furnishings",
"Order Year": "2015",
"Segment": "Home Office",
"Ship Mode": "First Class"
},
{
"Segment-Indicator": "Consumer-Quantity",
"Region": "Central",
"Category": "Furniture",
"Quantity": "11",
"Sub-Category": "Bookcases",
"Order Year": "2015",
"Segment": "Consumer",
"Ship Mode": "First Class"
}
]);
// Just for the convenience of console debugging, DO NOT COPY!
window['vchart'] = vchart;

Current Behavior

img_v3_02ac_50572dfc-d17d-4863-ad35-93c16ca87c8g

Expected Behavior

render right

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

@fangsmile fangsmile added the bug Something isn't working label Apr 28, 2024
@skie1997 skie1997 self-assigned this Apr 28, 2024
@skie1997 skie1997 mentioned this issue Apr 28, 2024
20 tasks
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