-
Notifications
You must be signed in to change notification settings - Fork 11.9k
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
Offset ignored when min and max axis values are set #5618
Comments
@nagix FYI since you've been working on some related issues |
can I get ,transparent doughnut chart truncate half of the chart using css with min and max limits with value Min value : 0 and Max value : 100 and value is 60 |
@shanwpf Did you ever get this figured out? I am having the exact same problem. |
@nwkeeley Nope, I ended up just rolling with it since the chart isn't a crucial part of my project. I suggest using another charting library if this bothers you. |
Thanks @shanwpf .. I can roll with it just like you..... - just something QA kicked back to me. For others in the future.... the bound: 'data' works really well.... but I needed to use the time.min/max I to shall roll with it for now. |
I no longer have access to the code I wrote. Maybe @nwkeeley can provide a test case. |
My implementation is a bit complex but let me see what I can put together to demonstrate the issue - might not be until tomorrow |
@simonbrunel https://codepen.io/anon/pen/EGBEBq Does this work as a repro? Uncommenting time.min/max on lines 31/32 should reproduce the issue. I'm having the same issue. Update: One workaround of sorts is to set the time to 12:00(pm), e.g. It looks like the X-axis is overlapped by the Y-axis? I don't know. I've updated my repro. |
Bar charts with a date x-axis does ignores
offset: true
whentime.min
andtime.max
are set.Expected Behavior
Offset should work even if
time.min
andtime.max
are set.Current Behavior
If I let Chart.js auto scale the graph, it works just fine. However, my project involves using a date range picker which sets
time.min
andtime.max
to restrict the range of the graph, which causes half of the first and last bars to be cut off as there is no offset.Auto scaling
With
time.min
andtime.max
Environment
The text was updated successfully, but these errors were encountered: