
Edit Filters and Controls Without Recreating Them
Blobby can update filters and controls in place rather than deleting and rebuilding them. The walkthrough covers values, labels, selection modes, defaults, chart connections, and top-N…
Transcript
This transcript is auto-generated. Names and product terms may be wrong.
Okay, I have a few things prepared to demonstrate the filters and controls. Previously, Blobby had difficulty understanding what the current controls and filters were set to. He couldn't interact with them directly under the hood. If you asked to update a filter or control, Blobby would actually delete the existing one and try to create a new one. This caused many problems: filters or controls that were moved around the page were reset, and previous settings were lost.
So this work is aimed at adding the ability to update filters and controls in place. The filters were already added a few days ago , but we'll go through them anyway. We can simply ask Blobby to change the creation date value to " last 30 days" instead of "last 90 days". So now we see data for the last 30 days.
All graphics have been updated. It works. Next, we'll rename the filter and slightly change its configuration from multiple selection to single selection. So now we see that we have this filter. It works the way a single-select filter should work, but again , edited in place. We can also configure which charts the filter applies to. The creation date applies to all charts.
And so we're just going to change that. Now we see that revenue by user status has been removed, as has revenue by traffic source. And then we can turn them back on if we want. Looks good. Another thing we can do is go into the date filter and see what the default value is: last 30 days. We can ask to change or, in this case, remove this default value .
That's it. The default value is now set, or rather, canceled. Now let's move on to the controls, which should look the same, it's the same. We'll rename the group by control to "split" and change it to buttons. Perfectly. Looks good, and we edit it again in place, so it uses the same IDs, without deleting and creating. We have this broken graph below.
Um... Oh, it's not broken anymore. Um... So we'll run this. He simply chose the wrong value . So we'll make sure this is fixed permanently. Or not. Live demonstrations, perfect as always. Now let's actually change the control. Um... let me scroll up. So in the breakdown we have to get an additional additional value and the selection is saved .
So, that's good. Now, since this control is n't connected to anything, let's add it to the chart. That's it. Users by traffic source are connected, and that's it. The last thing is, you know, changing the list of best products. This is a "Top N" control, so we can customize it. You know, let's make it a different value than 10, so we'll see an update in the interface, as well as an update in the chart or table.
So now we have more lines. And that's all. You can edit filters and controls directly.