Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apexcharts wont plot series #14

Open
jm-cook opened this issue Nov 25, 2024 · 0 comments
Open

Apexcharts wont plot series #14

jm-cook opened this issue Nov 25, 2024 · 0 comments

Comments

@jm-cook
Copy link

jm-cook commented Nov 25, 2024

If the series contains values with the text "NaN" then none of the line is plotted in an apex chart.
If you change the relevant line in api.py to :

     for datatype in tidedata:
             datadict[datatype] = self.findByTime(
                 tidedata.get(datatype), data["time"]
             ).get("value", None)

(ie None instead of "NaN") Then it will work.

See also my fork on https://github.com/jm-cook/ha-norwegiantide

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant