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

Now line, invalid pos #704

Open
daimonkor opened this issue May 9, 2024 · 0 comments
Open

Now line, invalid pos #704

daimonkor opened this issue May 9, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@daimonkor
Copy link

I created chart

experimental:
  color_threshold: true
type: custom:apexcharts-card
update_interval: 5m
apex_config:
  chart:
    height: 350px
all_series_config:
  unit: ' kWh'
  opacity: 0.6
show:
  last_updated: true
header:
  title: Solar Forecast + Hourly PV Accumulated Energy
  show: true
  standard_format: true
  show_states: true
  colorize_states: true
graph_span: 16h
span:
  start: day
  offset: +4h
now:
  show: true
  label: Now
yaxis:
  - id: kwh
    min: 0
    apex_config:
      tickAmount: 5
  - id: header_only
    show: false
series:
  - entity: sensor.ph1800_custom_hourly_accumulated_power
    yaxis_id: kwh
    color: '#0D8EC9'
    type: column
    curve: smooth
    stroke_width: 1
    float_precision: 2
    group_by:
      func: max
      duration: 1h
    show:
      legend_value: false
      in_header: false
  - entity: sensor.solcast_pv_forecast_forecast_today
    yaxis_id: kwh
    type: line
    curve: smooth
    name: Today
    color: orange
    data_generator: |
      var today = entity.attributes.detailedForecast.map((start, index) => {
        return [new Date(start["period_start"]).getTime(), entity.attributes.detailedForecast[index]["pv_estimate"]];
      });
      var data = today
      return data;
    show:
      legend_value: false
      in_header: false
    stroke_width: 1
    float_precision: 2
    extend_to: false
  - entity: sensor.solcast_pv_forecast_forecast_today
    yaxis_id: header_only
    name: Today
    color: orange
    show:
      legend_value: true
      in_header: true
      in_chart: false
  - entity: sensor.solcast_pv_forecast_forecast_remaining_today
    yaxis_id: header_only
    name: Remaining
    color: orange
    show:
      legend_value: true
      in_header: true
      in_chart: false

Screenshot_2024-05-10-01-13-01-516_io homeassistant companion android

So Now line position is invalid. Please help.

@daimonkor daimonkor added the bug Something isn't working label May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant