Skip to content

Instantly share code, notes, and snippets.

@dsternlicht
Created July 22, 2019 11:54
Show Gist options
  • Save dsternlicht/b9bb79e2b4e02c74b28f3e6980fbecfa to your computer and use it in GitHub Desktop.
Save dsternlicht/b9bb79e2b4e02c74b28f3e6980fbecfa to your computer and use it in GitHub Desktop.
A data object example being used in react-dynamic-charts
[
{
"name": "Round 1",
"values": [
{
"id": 1,
"label": "Test 1",
"value": 0,
"color": "red"
},
{
"id": 2,
"label": "Test 2",
"value": 0,
"color": ["yellow", "green"]
}
]
},
{
"name": "Round 2",
"values": [
{
"id": 1,
"label": "Test 1",
"value": 10,
"color": "red"
},
{
"id": 2,
"label": "Test 2",
"value": 5,
"color": ["yellow", "green"]
}
]
},
{
"name": "Round 3",
"values": [
{
"id": 1,
"label": "Test 1",
"value": 12,
"color": "red"
},
{
"id": 2,
"label": "Test 2",
"value": 21,
"color": ["yellow", "green"]
}
]
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment