Skip to content

[Bug] Extrema not align with the bar related to the max value #184

@Gunth

Description

@Gunth

1. Is it related to Long Term Statistics (LTS)?

No

1a. If it is related to Long Term Statistics (LTS) then please attach your CSV file(s) of entities

I did

2. Your YAML Code

type: custom:statistics-graph-chart-card
card_header: Production by days
card_padding: 15px 20px 10px 10px
show_now_line: false
now_line_color: "#378ADD"
now_line_opacity: 1
now_line_width: 1
show_tooltip_total: false
show_legend: true
show_y2_axis: false
animate_graph: true
auto_scale_points: true
height: 200
graph_start: month
show_full_period: true
y_axis_decimals: 0
datetime_format: DD/MM
x_grid_style: dashed
y_grid_style: dashed
align_header: center
group_by: date
entities:
  - entity: sensor.solcast_pv_forecast_forecast_today
    statistic_id: null
    name: Forecast
    color: "#f39c12"
    graph_type: bar
    show_state: false
    show_line: false
    gradient: false
    aggregate_func: last
    show_trend_icon: false
  - entity: sensor.sma_current_day_yield
    statistic_id: null
    name: Production
    color: "#378ADD"
    graph_type: bar
    show_state: false
    legend_stats: []
    gradient: false
    show_trend_icon: false
    data_attribute: Yields
    data_time_field: Day
    data_value_field: Yield
    data_time_unit: day_of_month
    aggregate_func: last
    show_extrema: always
    show_extrema_min: false
    extrema_bg_opacity: 0.4
    extrema_bg_color: "#888888"
    extrema_show_timestamp: false
annotations:
  - type: band
    value: sensor.sma_daily_yield_expectation
    value_end: sensor.sma_daily_mean
    label: ""
    color: "#8f8f8f"
    show_values: false
  - type: threshold
    value: sensor.sma_current_month_avg
    label: Daily mean
    color: "#f8f7f7"

3. Bug Description

Hi,

For one of my chart the extrema tooltip containing the max value is not align with the bar related to the max value.

This is only related to this chart others are working fine, may be related because the chart is not completed (Show full periode enabled)

Image

Thanks,
G.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions