No hassle graphing
POST
request to https://justgraph.up.railway.app/replace/<id>
.
The body should include your graph data.
Note: View chart.js docs for data format information.
The button below will POST some example data to a randomly generated key. After, your graph link should appear!
Here is the corresponding curl command:
curl --request POST \
--url https://justgraph.up.railway.app/replace/ \
--header 'Content-Type: application/json' \
--data '{
"type": "line",
"data": {"labels": ["Jan", "Feb", "Mar", "April", "May"],
"datasets": [{
"label": "Monthly values",
"data": [65, 59, 80, 90, 22]
}]},
"options": {
"responsive": true,
"plugins": {
"legend": {
"position": "top"
},
"title": {
"display": true,
"text": "My awesome chart"
}
}
}
}'
The request will respond with the generated webpage url where the graph is hosted.
Data for JustGraph is stored using the awesome BitFlip project. As a result, the same limits apply to data sent to JustGraph as the limits mentioned on the BitFlip website.