Pivot - reloading data cause wrong values growth

Hello,

  1. I try to reload data in the Pivot component with loaded data as:
    $$(“pivot”).load(query);
    But nothing happens.

  2. After that the code was modified as
    $$(“pivot”).$$(“data”).clearAll();
    $$(“pivot”).load(query);

And it works. But each time calling same query
$$(“pivot”).$$(“data”).clearAll();
$$(“pivot”).load(query);
values in the pivot get growth, although they should not.

Please, help me to clear data correctly before loading.

Thank you.

Hello Mika,

Pivot data can be cleared in the following way:

$$("pivot").data.clearAll(); 
$$("pivot").load("../common/data.json");

Thank you so much Helga, it works like a charm :slight_smile: