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

Data order gets lost with unpivoting #62

Open
mkfreeman opened this issue Nov 15, 2024 · 0 comments
Open

Data order gets lost with unpivoting #62

mkfreeman opened this issue Nov 15, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@mkfreeman
Copy link
Collaborator

In this examle, the x order gets lost in the pivot to support multiple y columns:

new DuckPlot(ddb)
  .query(
    "SELECT *, monthname(date) as month, month(date) as monthNum from weather ORDER BY monthNum"
  )
  .table("weather")
  .x("month")
  .y(["temp_min", "temp_max"]) // two columns breaks the x order
  .fy("location")
  .options({
    width
  })
  .mark("line")
  .render()
@mkfreeman mkfreeman added the bug Something isn't working label Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant