Skip to content

Multi-line facet strings #1053

@captain-yoshi

Description

@captain-yoshi

I can add manually newlines with Plot.text() but is there a way to achieve that using facets ? I just want to add a title to my plot ! Using the x facet gives the right position for the title, but maybe there are better ways.

Plot.plot({
  height: 600,
  grid: true,
  facet: {
    data: penguins,
    x: "I want a newline \n here",
    y: "species",
    marginRight: 80
  },
  ...
})

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