What is a correct usage of extendData property to achieve adding data to existing graph instead of constantly updating it?

Hi @Emmanuelle, thanks for writing me back!

The thing is that this example I’ve linked generates this issue (I copy pasted it to make sure i didn’t made any typo). Maybe you could check this code on your side - I think it will generate also the same error.

Anyway, here’s the full trace:

#1:

Error: attribute x must be an array of length equal to indices array length

    at http://127.0.0.1:8050/_dash-component-suites/dash_core_components/async-plotlyjs.v1_10_0m1588696753.js:2:2300478

    at D (http://127.0.0.1:8050/_dash-component-suites/dash_core_components/async-plotlyjs.v1_10_0m1588696753.js:2:2300788)

    at Object.t [as extendTraces] (http://127.0.0.1:8050/_dash-component-suites/dash_core_components/async-plotlyjs.v1_10_0m1588696753.js:2:2327505)

    at http://127.0.0.1:8050/_dash-component-suites/dash_core_components/async-graph.v1_10_0m1588696753.js:1:13088

    at Array.forEach (<anonymous>)

    at t.value (http://127.0.0.1:8050/_dash-component-suites/dash_core_components/async-graph.v1_10_0m1588696753.js:1:12848)

    at t.value (http://127.0.0.1:8050/_dash-component-suites/dash_core_components/async-graph.v1_10_0m1588696753.js:1:15796)

    at callComponentWillReceiveProps (http://127.0.0.1:8050/_dash-component-suites/dash_renderer/react-dom@16.v1_4_1m1589641938.13.0.js:13133:16)

    at updateClassInstance (http://127.0.0.1:8050/_dash-component-suites/dash_renderer/react-dom@16.v1_4_1m1589641938.13.0.js:13335:9)

    at updateClassComponent (http://127.0.0.1:8050/_dash-component-suites/dash_renderer/react-dom@16.v1_4_1m1589641938.13.0.js:17266:22)

#2:

Error: attribute: x index: 0 must be an array

    at http://127.0.0.1:8050/_dash-component-suites/dash_core_components/async-plotlyjs.v1_10_0m1588696753.js:2:2301037

    at D (http://127.0.0.1:8050/_dash-component-suites/dash_core_components/async-plotlyjs.v1_10_0m1588696753.js:2:2301394)

    at Object.t [as extendTraces] (http://127.0.0.1:8050/_dash-component-suites/dash_core_components/async-plotlyjs.v1_10_0m1588696753.js:2:2327505)

    at http://127.0.0.1:8050/_dash-component-suites/dash_core_components/async-graph.v1_10_0m1588696753.js:1:13088

    at Array.forEach (<anonymous>)

    at t.value (http://127.0.0.1:8050/_dash-component-suites/dash_core_components/async-graph.v1_10_0m1588696753.js:1:12848)

    at t.value (http://127.0.0.1:8050/_dash-component-suites/dash_core_components/async-graph.v1_10_0m1588696753.js:1:15796)

    at callComponentWillReceiveProps (http://127.0.0.1:8050/_dash-component-suites/dash_renderer/react-dom@16.v1_4_1m1589641938.13.0.js:13133:16)

    at updateClassInstance (http://127.0.0.1:8050/_dash-component-suites/dash_renderer/react-dom@16.v1_4_1m1589641938.13.0.js:13335:9)

    at updateClassComponent (http://127.0.0.1:8050/_dash-component-suites/dash_renderer/react-dom@16.v1_4_1m1589641938.13.0.js:17266:22)