8000 Set the maximum width of categorical bars & boxes to category unit - case of categoryarray by archmoj · Pull Request #5732 · plotly/plotly.js · GitHub
[go: up one dir, main page]

Skip to content

Set the maximum width of categorical bars & boxes to category unit - case of categoryarray #5732

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

Merged
merged 4 commits into from
Jun 17, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
set minDiff for category axes to one
  • Loading branch information
archmoj committed Jun 16, 2021
commit 6e6bfa693492867bd9a4c35d2ff75a6755fede8c
2 changes: 1 addition & 1 deletion src/traces/bar/sieve.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function Sieve(traces, opts) {

var type = (opts.posAxis || {}).type;
if(type === 'category' || type === 'multicategory') {
this.minDiff = Math.min(1, this.minDiff);
this.minDiff = 1;
}

this.binWidth = this.minDiff;
Expand Down
0