Value error while creating a stacked horizontal bar chart animation

Received following error while creating a stacked horizontal bar char animation:

ValueError:
Invalid element(s) received for the ‘data’ property of
Invalid elements include: [[Bar({
‘orientation’: ‘h’, ‘x’: [0.0, 0.0, 0.0], ‘y’: [Dummy_Back_0001, Dummy_Base_0001, Dummy_Legs_0001]
}), Bar({
‘orientation’: ‘h’, ‘x’: [0.0, 0.0, 0.0], ‘y’: [Dummy_Back_0001, Dummy_Base_0001, Dummy_Legs_0001]
}), Bar({
‘orientation’: ‘h’, ‘x’: [0.0, 0.0, 0.0], ‘y’: [Dummy_Back_0001, Dummy_Base_0001, Dummy_Legs_0001]
}), Bar({
‘orientation’: ‘h’, ‘x’: [0.0, 0.0, 0.0], ‘y’: [Dummy_Back_0001, Dummy_Base_0001, Dummy_Legs_0001]
}), Bar({
‘orientation’: ‘h’, ‘x’: [0.0, 0.0, 0.0], ‘y’: [Dummy_Back_0001, Dummy_Base_0001, Dummy_Legs_0001]
}), Bar({
‘orientation’: ‘h’, ‘x’: [0.0, 0.0, 0.0], ‘y’: [Dummy_Back_0001, Dummy_Base_0001, Dummy_Legs_0001]
})]]

can someone help me?

Hi @gsudhanshu,

The error message indicates that there is an extra list wrapped around your data list. For the data property of a figure, you want something like [go.Bar(...)], not [[go.Bar(...)]]

Hope that helps,
-Jon

Thanks Jon,

I was able to resolve the error and the chart animation is working.