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

CSV should respect --cors and return cors headers #326

Closed
simonw opened this issue Jun 24, 2018 · 1 comment
Closed

CSV should respect --cors and return cors headers #326

simonw opened this issue Jun 24, 2018 · 1 comment
Labels

Comments

@simonw
Copy link
Owner

simonw commented Jun 24, 2018

Otherwise tools like Vega can't load data via CSV.

@simonw simonw closed this as completed in 64c2fea Jun 24, 2018
@simonw
Copy link
Owner Author

simonw commented Jun 24, 2018

Demo: go to https://vega.github.io/editor/ and paste in the following:

{
  "data": {
    "url": "https://fivethirtyeight.datasettes.com/fivethirtyeight/twitter-ratio%2Fsenators.csv?_size=max&_sort_desc=replies",
    "format": {
      "type": "csv"
    }
  },
  "mark": "bar",
  "encoding": {
    "x": {
      "field": "created_at",
      "type": "temporal"
    },
    "y": {
      "field": "replies",
      "type": "quantitative"
    },
    "color": {
      "field": "user",
      "type": "nominal"
    }
  }
}

2018-06-23 at 6 10 pm

@simonw simonw added the csv label Jun 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant