Skip to content
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

header: {"labelOrient": "bottom"} does not work on columns #7161

Closed
ChiqueCode opened this issue Jan 6, 2021 · 4 comments
Closed

header: {"labelOrient": "bottom"} does not work on columns #7161

ChiqueCode opened this issue Jan 6, 2021 · 4 comments
Labels
Area - Visual Encoding Bug 🐛 P2 Important Issues that should be fixed soon

Comments

@ChiqueCode
Copy link

ChiqueCode commented Jan 6, 2021

Hi, I came across the bug and was advised to report it. Here is the code:

vegalite({
  width: 50,
  data: { values: StackVega },
  mark: 'bar',
  encoding: {
    column: {
      field: "new_name",
      type: "nominal",
      spacing: 2,
      title: "Name",
      header: {"labelOrient": "bottom"}
    },
    y: {
      type: "quantitative",
      aggregate: "sum",
      field: "new_rate",
      title: "Rate",
      axis: { grid: false }
    },
    x: { type: "nominal", field: "stat", axis: { title: "" } },
    color: {
      type: "nominal",
      field: "stat",
      scale: { range: ["#675193", "#ca8861"] }
    }
  },
  config: {
    view: { stroke: "transparent" },
    axis: { domainWidth: 1 }
  }
})

I needed to move the name labels to the x-axis and header: {"labelOrient": "bottom"} didn't work.

@domoritz
Copy link
Member

domoritz commented Jan 6, 2021

Thanks for the bug report. Here is an example in the editor: Open the Chart in the Vega Editor.

@domoritz domoritz added Area - Visual Encoding P2 Important Issues that should be fixed soon labels Jan 6, 2021
@ChiqueCode
Copy link
Author

@domoritz Thank you for providing the example, however, this doesn't move the labels still. And if you check the code I posted, your example shows exactly what I have for the column already... This just doesn't work for whatever reason.

@jakevdp
Copy link
Contributor

jakevdp commented Jan 7, 2021

Possible duplicate of #6960; possibly already fixed by #7150

@domoritz
Copy link
Member

domoritz commented Jan 7, 2021

Indeed already fixed in master.

Screen Shot 2021-01-07 at 16 20 38

@domoritz domoritz closed this as completed Jan 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area - Visual Encoding Bug 🐛 P2 Important Issues that should be fixed soon
Projects
None yet
Development

No branches or pull requests

3 participants