ApexCharts vs mini-graph-card: Which is updated the fastest?

In the picture below I am comparing the output from a single sensor: Max brightness outside. This is a template sensor that is updated as long as the value any of it’s “real” sensors is updated.

The first graph is built on ApexCharts and the graph below is built on mini-graph-card. Both cards are very useful and fills different purposes in my lovelace UI. This is not an A vs B fanboy topic. :smiley:

Question: Why are these two graphs showing different state values? Focus on the numeric value in the upper left, never mind the curves. Is there any setting I’m unaware of?

ApexCharts always seems to be a few (sometimes more) seconds after the mini-graph-card. It is the same sensor and the cards are just beside each other. For real as well as in the code.

Im running HA 2023.7.3 (always waiting for the .3 befor I update) and in the dev.tols the sensor allways shows the same value as in the mini-graph-card.

I can’t tell you exactly why but…

Dev tools is correct if mini graph is matching it is also correct. That means Apex Charts is showing you either delayed data or otherwise processing that number for some reason.

Considering what apex is used for (heavyweight complex data display in chart form) not suprised. You will also find that if you load a lot of complex apex charts on one dashboard it can… Be less than responsive… :sunglasses:

I personally avoid Apex unless I have a specific need only it can provide. The lag makes it too heavy for my standard chart use. Why do you ask?

Just out of pure curiosity. :smiley:

It is obvious that Apex is slight delayed. If I wait a few seconds then they are showing the same value. For a while until some sensor changes it state.

Conclusion: For real time graphs, use mini-graph-card.

Thanks for the advice. I really like the ability to configure the Apex chart in so many ways.