Skip to content

Hover text do not show up if values does not exist in BOTH facet category #693

Open
@happyshows

Description

@happyshows

Hover text exists in blue block

image

Hover text does not exist in either green or torquise block
image

Can't share the source data but what's happening is something like below:
Facility,ProductSubFamily,Measure,Qty
A,x,Commit,0.2
A,y,Request,0.9
A,d,Commit,0.8
A,d,Request,0.5
A,e,Commit,0.7
A,e,Request,0.3
...

        ggplot(data = dat,aes(x=Measure ,y=Quantity,fill = ProductSubFamily)) +
        geom_bar(stat = 'identity')+
        facet_grid(.~Facility,  space = "free", labeller = label_value,switch = 'both')+
        theme_bw()+
        theme(
          panel.grid.major.x = element_blank(),
          panel.border = element_blank(),
          legend.position='bottom',
          legend.title=element_blank(),
          axis.text.x=element_text(angle=30, hjust=1)
        )+
        scale_y_continuous(labels = percent)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions