Skip to content

Barplot width not consistent across facets #717

@jamesahoward

Description

@jamesahoward
using Dates, DataFramesMeta, GLMakie, AlgebraOfGraphics

df = DataFrame(
    A = [1, 2, 3, 1],
    B = [1, 1, 1, 1],
    C = [1, 2, 3, 3]
)

spec = data(df) * mapping(:A, :B, row=:C) * visual(BarPlot)
draw(spec)

Image

Issue can be resolved by manually setting the width argument within the layer definition.

spec = data(df) * mapping(:A, :B, row=:C) * visual(BarPlot, width=1)
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions