-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Draw bar group if there is text #3164
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
Changes from all commits
a460735
605c091
b787713
68e51bc
2dda651
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
"type":"bar" | ||
}, { | ||
"width":[0.4,0.6,0.8,1], | ||
"text":["Three",2,"inside text",0], | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hmm, I think we need to figure out how to handle these cases. If I put values in where you put There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I guess that the "zero" and " empty" text is showing up near the empty red bars is the new expected behavior. However, |
||
"text":["Three",2,"inside text",""], | ||
"textposition":"auto", | ||
"textfont":{"size":[10]}, | ||
"y":[3,2,1,0], | ||
|
@@ -23,7 +23,7 @@ | |
"x":[1,2,3,4], | ||
"type":"bar" | ||
}, { | ||
"text":[0,"outside text",-3,-2], | ||
"text":["","outside text",-3,-2], | ||
"textposition":"auto", | ||
"y":[0,-0.25,-3,-2], | ||
"x":[1,2,3,4], | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then we also need to remove the bar if it later disappears. Off your branch I can do:
Which looks great:

But then if I do:
The newly-removed bars are still there (with their text moved to the right place):
