ianByrne / HASS-ukho_tides

Home Assistant integration for tide information
MIT License
28 stars 5 forks source link

Apex charts example won't load #14

Closed Jleagle closed 1 year ago

Jleagle commented 1 year ago

When i copy and paste the apex charts code from the readme, it fails to load.

type: custom:apexcharts-card
graph_span: 2d
span:
  start: hour
  offset: '-5h'
now:
  show: true
  label: now
series:
  - entity: sensor.lee_on_solent_tide
    extend_to_end: false
    unit: m
    data_generator: |
      return entity.attributes.predictions.map((event) => {
        return [moment.utc(event[0]).local(), event[1]];
      });