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

brush experimental selection_span does not work #764

Open
argoon38 opened this issue Aug 26, 2024 · 1 comment
Open

brush experimental selection_span does not work #764

argoon38 opened this issue Aug 26, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@argoon38
Copy link

Checklist

  • [X ] I updated the card to the latest version available
  • [ X] I cleared the cache of my browser
  • [X ] I verified that I'm really running the lastest version in my browser console
  • [ X] I checked if there is another issue opened with the same problem : ther was one, but is stale for 2 years

Describe the bug
The selection_span does not working when the lovelace is loaded. It is impossible to select any range.
Surprisingly, it works if the lovelace is loaded before the graph is shown. It is a workaround : I encapsulated the graph inside a conditional card and the graph is not shown initially. Then it is correct when he condition becomes true.

To Reproduce
This is the configuration I used:

type: custom:apexcharts-card
header:
  show: true
  title: Précipitations (heure)
  show_states: false
series:
  - entity: sensor.pluviometre_precipitation
    type: column
    group_by:
      func: diff
      duration: 1h
      fill: zero
    show:
      in_brush: true
span:
  end: hour
experimental:
  brush: true
brush:
  selection_span: 1day
graph_span: 7day
apex_config:
  plotOptions:
    bar:
      columnWidth: 95%
update_interval: 5s

Screenshots
If the graph is visible when page loads :
Capture d’écran 2024-08-26 à 22 09 31

Instead of:
Capture d’écran 2024-08-26 à 22 09 54

Expected behavior
A clear and concise description of what you expected to happen.

Desktop (please complete the following information):

  • Browser chrome (mac or android), iphone
@argoon38 argoon38 added the bug Something isn't working label Aug 26, 2024
@wuppiwuppi
Copy link

I can confirm this:
windows - chrome
android-app

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

5 participants
@argoon38 @wuppiwuppi and others