Skip to content

Bar Graph - How to Display Based on Non-Numerical Data #2358

Answered by tkonopka
OsBurman asked this question in Q&A
Discussion options

You must be logged in to vote

HeatMap can get you quite close to the screenshot look. Use props xOuterPadding and xInnerPadding to make the heat map grid appear like vertical bars. The color scheme could have type quantize with two steps. You might need to create a custom legend.

In comparison, using Bar would be more complicated. The data could have 12 keys 'Monday_complete', 'Monday_incomplete', etc. and the values would be 0/1. It would be your responsibility to ensure that values for each week add up to the same number. A stacked bar graph would then look like the screenshot. You'd have to do custom tick marks for the axes and ensure that the bar order (within each stack) matches your axes. The color scheme would …

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@OsBurman
Comment options

@tkonopka
Comment options

Answer selected by plouc
@plouc
Comment options

Comment options

You must be logged in to vote
1 reply
@tkonopka
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants