Skip to content

Commit

Permalink
Adjusting positioning in the examples
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed Apr 14, 2016
1 parent eb5a417 commit e5fabf3
Showing 1 changed file with 72 additions and 58 deletions.
130 changes: 72 additions & 58 deletions caravel/data/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,64 +298,78 @@ def load_world_bank_health_n_pop():
if not dash:
dash = Dash()
js = textwrap.dedent("""\
[
{
"size_y": 2,
"size_x": 3,
"col": 1,
"slice_id": "1",
"row": 1
},
{
"size_y": 3,
"size_x": 3,
"col": 1,
"slice_id": "2",
"row": 3
},
{
"size_y": 8,
"size_x": 3,
"col": 10,
"slice_id": "3",
"row": 1
},
{
"size_y": 3,
"size_x": 6,
"col": 1,
"slice_id": "4",
"row": 6
},
{
"size_y": 5,
"size_x": 6,
"col": 4,
"slice_id": "5",
"row": 1
},
{
"size_y": 4,
"size_x": 6,
"col": 7,
"slice_id": "6",
"row": 9
},
{
"size_y": 3,
"size_x": 3,
"col": 7,
"slice_id": "7",
"row": 6
},
{
"size_y": 4,
"size_x": 6,
"col": 1,
"slice_id": "8",
"row": 9
}
]
[
{
"size_y": 2,
"size_x": 3,
"col": 10,
"slice_id": "22",
"row": 1
},
{
"size_y": 3,
"size_x": 3,
"col": 10,
"slice_id": "23",
"row": 3
},
{
"size_y": 8,
"size_x": 3,
"col": 1,
"slice_id": "24",
"row": 1
},
{
"size_y": 3,
"size_x": 6,
"col": 4,
"slice_id": "25",
"row": 6
},
{
"size_y": 5,
"size_x": 6,
"col": 4,
"slice_id": "26",
"row": 1
},
{
"size_y": 4,
"size_x": 6,
"col": 7,
"slice_id": "27",
"row": 9
},
{
"size_y": 3,
"size_x": 3,
"col": 10,
"slice_id": "28",
"row": 6
},
{
"size_y": 4,
"size_x": 6,
"col": 1,
"slice_id": "29",
"row": 9
},
{
"size_y": 4,
"size_x": 5,
"col": 8,
"slice_id": "30",
"row": 13
},
{
"size_y": 4,
"size_x": 7,
"col": 1,
"slice_id": "31",
"row": 13
}
]
""")
l = json.loads(js)
for i, pos in enumerate(l):
Expand Down

0 comments on commit e5fabf3

Please sign in to comment.