Render pivot chart with new data

Hi,

is it possible to replace data in current pivot chart. Parse function adds new data but how to delete current. clearAll and remove does not work. It return "Cannot set property ‘clearAll’ of undefined " when typed $$(“pivotchartname”).clearAll(); or $$(“pivotchartname”).$$(“data”).clearAll();

Hello,

It seems that Pivot chart API lacks direct access to the UI object.

But you still can get to the chart object to clear its data as (not so beautiful):

$$("pivot").getChildViews()[1].getChildViews()[0].clearAll();

And to clear the Datastore of the Pivot component (not only the visual part as above) you should apply the following line:

$$("pivot").data.clearAll();