Help fixing Graphs in PVPC Hourly Pricing Card

Hello all.

I’ve been developing and maintaining a card for displaying the electricity price for today and tomorrow according to the PVPC integration for a couple of years.

So far, I have managed to keep it working every time a Home Assistant update broke it, but I have reached a point where I don’t know how to proceed with the new eCharts changes.

As you can see in this branch, I have attempted everything from creating a chart from scratch using eCharts (first chart) to using and extending the ha-chart-base component (second and third charts).

In the first case, the chart works correctly and displays the MarkPoint and MarkArea options properly. However, being a pure eCharts chart, it lacks the styles and functionality that the rest of the Home Assistant charts have. In fact, it doesn’t even resize when the window size changes.

In the second and third cases, MarkArea and MarkPoint are not displayed, which means the card does not have all the functionality I want to include.

Could you please help me resolve these issues or provide me with guidance on why these two options do not work?

Thank you very much and best regards, Daniel Martín González

1 Like

In any case, it seems that this issue has been fixed in version 2.0.1.

Thank you, everyone.