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

Feature Request: Minimum bar size config option #4

Open
PaulWieland opened this issue Jan 31, 2018 · 3 comments
Open

Feature Request: Minimum bar size config option #4

PaulWieland opened this issue Jan 31, 2018 · 3 comments

Comments

@PaulWieland
Copy link

It would be nice if there was an option for this chart type to specify the minimum bar size in pixels. I have a 24 hour timeline and events that only last a minute or two do not show up at all.

The use case I have is to chart all of the events that occur in my house (motion detectors, doors open/close, lights on/off, etc) but for events that only last a few minutes, the bars render to small to even know they are there or to mouse over them.

@fanthos
Copy link
Owner

fanthos commented Feb 1, 2018

Do you mean the bar width?
You can use the resize feature from chartjs to resize the chart.

@PaulWieland
Copy link
Author

Yes the minimum bar width. Imagine what a 30 second event looks like on a 24 hour time scale (you can't see it at all). Would like to be able to force it to 10px or 20px so that its visible and also so you can hover over it to see its tooltip.

@fanthos
Copy link
Owner

fanthos commented Feb 1, 2018

Got it. This feature may added in future but currently no plan. You can change the code var width = end - x; to var width = Math.max(...) in updateElement function to workaround this issue.

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

2 participants