Having a graph on the dashboard start at midnight every day

Hi!

I have an entity (supplied by my utility’s integration) which provides me with a daily total of my energy consumption. I use the “sensor” card which shows me the daily progression and current total. All nice except that the chart also shows me the tailing end of the previous day. The only way I’ve found to manually limit the width of the chart is to specify the “hours” to show, but this solves nothing.

I’d like the chart to show data from midnight to midnight, with the chart progressing throughout the day, and not see yesterday’s data.

Is that possible? I like the look of the “sensor” card but I’m not set in using it absolutely.

check for apexcharts or ploty in HACS