Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add mock using alignmentgroup and offsetgroup
  • Loading branch information
archmoj committed Dec 20, 2022
commit 918068dcbee0bb2a9e867f07be9fdb5230e99360
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
99 changes: 99 additions & 0 deletions test/image/mocks/zz-scatter-grouping-vs-defaults.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
{
"data": [
{
"type": "bar",
"y": [ 1, 2, 1 ],
"yaxis": "y2"
},
{
"type": "bar",
"y": [ 2, 1, 2 ]
},
{
"type": "bar",
"y": [ 1, 3, 0 ]
},
{
"type": "bar",
"y": [ 1, 2, 1 ],
"alignmentgroup": "top",
"hovertext": "alignmentgroup: top",
"xaxis": "x2",
"yaxis": "y2"
},
{
"type": "bar",
"y": [ 2, 1, 2 ],
"hovertext": "alignmentgroup: top<br>offsetgroup: 1",
"alignmentgroup": "bottom",
"offsetgroup": "1",
"xaxis": "x2"
},
{
"type": "bar",
"y": [ 1, 3, 0 ],
"hovertext": "alignmentgroup: top<br>offsetgroup: 2",
"alignmentgroup": "bottom",
"offsetgroup": "2",
"xaxis": "x2"
},
{
"type": "scatter",
"y": [ 1, 2, 1 ],
"yaxis": "y2"
},
{
"type": "scatter",
"y": [ 2, 1, 2 ]
},
{
"type": "scatter",
"y": [ 1, 3, 0 ]
},
{
"type": "scatter",
"y": [ 1, 2, 1 ],
"alignmentgroup": "top",
"hovertext": "alignmentgroup: top",
"xaxis": "x2",
"yaxis": "y2"
},
{
"type": "scatter",
"y": [ 2, 1, 2 ],
"hovertext": "alignmentgroup: top<br>offsetgroup: 1",
"alignmentgroup": "bottom",
"offsetgroup": "1",
"xaxis": "x2"
},
{
"type": "scatter",
"y": [ 1, 3, 0 ],
"hovertext": "alignmentgroup: top<br>offsetgroup: 2",
"alignmentgroup": "bottom",
"offsetgroup": "2",
"xaxis": "x2"
}
],
"layout": {
"scattermode": "group",
"showlegend": false,
"grid": {
"rows": 2,
"columns": 2,
"roworder": "bottom to top"
},
"colorway": [ "blue", "orange", "green" ],
"margin": { "t": 20 },
"xaxis": {
"title": {
"text": "no alignmentgroup<br>no offsetgroup"
}
},
"xaxis2": {
"title": {
"text": "with alignmentgroup<br>with offsetgroup"
}
}
}
}