Skip to main content

Uploading Data

Now that we've successfully created a new chart, our next step is to define and upload data in the chart based on our chosen topic, U.S. meat consumption. Note that our data is in CSV (Comma-separated Values) format. Sample CSV

Docs Version Dropdown

Considering what’s being said, this is how the API request will look like:

curl -X 'PUT' \
'https://api.plotset.com/v1/chart/<Your chart id>/data' \
-H 'accept: application/json' \
-H 'Authorization: <Your API Key>' \
-H 'Content-Type: multipart/form-data' \
-F 'file=@/home/plotset/data.csv;type=text/csv'