Skip to content

Commit

Permalink
add parcats + template mock
Browse files Browse the repository at this point in the history
  • Loading branch information
etpinard committed Jan 7, 2020
1 parent 6942b10 commit 6be7023
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
41 changes: 41 additions & 0 deletions test/image/mocks/parcats_colorscale_template.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"data": [
{
"type": "parcats",
"line": {
"color": [ 0, 1, 1, 0, 1 ],
"showscale": true
},
"dimensions": [
{
"label": "Hair",
"values": [ "Black", "Black", "Black", "Brown", "Brown", "Brown", "Red", "Brown" ]
},
{
"label": "Eye",
"values": [ "Brown", "Brown", "Brown", "Brown", "Brown", "Blue", "Blue", "Blue" ]
},
{
"label": "Sex",
"values": [ "Female", "Female", "Female", "Male", "Female", "Male", "Male", "Male" ]
}
]
}
],
"layout": {
"template": {
"data": {
"parcats": [
{
"line": {
"colorscale": [[0, "red"], [1, "blue"]],
"colorbar": {
"ypad": 100
}
}
}
]
}
}
}
}

0 comments on commit 6be7023

Please sign in to comment.