Related to the question Creating bar chart from point layer using QGIS Geometry Generator, I am using with success the expressions proposed by user Taras in Solution 2 and for user Babel.
The two proposed solutions are working well, but I am confronted the same problem in both solutions.
I note that the display of objects depends on the objects within the extent of the view. Thus, to see the whole graph, all point objects must be in extent view. In this screenshot, all the points within the view extent are shown and therefore the whole graph is displayed:
However, if I pan the map up (or any other direction) and hide some points (outside the map view extent), the graph is incomplete (some bars disappear):
I understand the cause of this effect, but is there a solution to prevent this? In other words, is it possible that the result of the Geometry Generator expression is kept in the view even if its original point object is outside the view extent?