Open Misiu opened 4 years ago
Yes, great suggestion, fetching data can be slow so a loading indicator would be nice.
@kalkih should this be added to renderGraph function (https://github.com/kalkih/mini-graph-card/blob/master/src/main.js#L283)?
Yes that could be a good place to add it.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If this is still an active issue, please let us know!
Could be informative.
Still an active issue, got it! Removing stale label.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If this is still an active issue, please let us know!
Recently HA added loading state to graphs: https://github.com/home-assistant/frontend/pull/5448 I think it would be a good improvement to add similar functionality here. Now you see an empty card that will show graph after some time. Showing the loading indicator will show user that something is happening and he must wait a bit longer.
This is my current setup. As you can see the current value is displayed, but it need some time to load the graph.